[jira] [Created] (LANG-783) Documentation bug: StringUtils.split

2011-12-16 Thread Samuel Tardieu (Created) (JIRA)
Documentation bug: StringUtils.split


 Key: LANG-783
 URL: https://issues.apache.org/jira/browse/LANG-783
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Affects Versions: 3.1
Reporter: Samuel Tardieu
Priority: Trivial


The documentation for StringUtils.split(String, String, int) contains wrong 
strings:

StringUtils.split(ab de fg, null, 0)   = [ab, cd, ef]
StringUtils.split(ab   de fg, null, 0) = [ab, cd, ef]

This should read:

StringUtils.split(ab cd ef, null, 0)   = [ab, cd, ef]
StringUtils.split(ab   cd ef, null, 0) = [ab, cd, ef]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Resolved] (MATH-717) A varied class of Array2DRowRealMatrix is needed to contain float type instead of double.

2011-12-16 Thread Gilles (Resolved) (JIRA)

 [ 
https://issues.apache.org/jira/browse/MATH-717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gilles resolved MATH-717.
-

Resolution: Not A Problem

 A varied class of Array2DRowRealMatrix is needed to contain float type 
 instead of double.
 -

 Key: MATH-717
 URL: https://issues.apache.org/jira/browse/MATH-717
 Project: Commons Math
  Issue Type: Improvement
Affects Versions: 2.2
 Environment: All
Reporter: Dusan Ku
  Labels: features

 The current implementation of Array2DRowRealMatrix takes only double type as 
 its base element value in the matrix.
 However, the memory size of double is bigger than float, the downside of 
 which makes the matrix dimension quite limited, compared to float type as its 
 base element type. For small sized problem, this does not make such a big 
 difference, but for large problems, this limits the usability of this library 
 quite severely. In my case, I easily hit an error even after I increase the 
 memory option to 1G. This could have been much more enhanced just by using 
 'float[][]' instead of the current Array2DRowRealMatrix.
 Therefore, the solution I may suggest is to add another class similar to 
 Array2DRowRealMatrix containing float type for its matrix variable instead of 
 double. Of course, a better way is welcome as long as the needs can be 
 fulfilled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (MATH-726) Ridders derivative

2011-12-16 Thread Gilles (Created) (JIRA)
Ridders derivative
--

 Key: MATH-726
 URL: https://issues.apache.org/jira/browse/MATH-726
 Project: Commons Math
  Issue Type: New Feature
Reporter: Gilles
Assignee: Gilles
Priority: Minor
 Fix For: 3.0


Implementation of the numerical first derivative, as described in:
{noformat}
Accurate computation of F'(x) and F'(x) F''(x)
C. J. F. Ridders
Adv. Eng. Software, 1982, Vol 4, No. 2
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (MATH-726) Ridders derivative

2011-12-16 Thread Gilles (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/MATH-726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gilles updated MATH-726:


Attachment: RiddersFirstDerivative.java

Attached proposed implementation. OK to add?


 Ridders derivative
 --

 Key: MATH-726
 URL: https://issues.apache.org/jira/browse/MATH-726
 Project: Commons Math
  Issue Type: New Feature
Reporter: Gilles
Assignee: Gilles
Priority: Minor
  Labels: features
 Fix For: 3.0

 Attachments: RiddersFirstDerivative.java


 Implementation of the numerical first derivative, as described in:
 {noformat}
 Accurate computation of F'(x) and F'(x) F''(x)
 C. J. F. Ridders
 Adv. Eng. Software, 1982, Vol 4, No. 2
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (MATH-726) Ridders derivative

2011-12-16 Thread Luc Maisonobe (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/MATH-726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13170958#comment-13170958
 ] 

Luc Maisonobe commented on MATH-726:


If we want to implement derivatives, I would rather set up a top level 
interface and several implementations, including this one. We could for example 
import the definitions from Nabla core package 
([http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/core/])
 and the implementations of Nabla numerical package 
([http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/numerical/]).
 Of course, once imported these packages would be removed from Nabla itself and 
replaced by a dependency to Math.

 Ridders derivative
 --

 Key: MATH-726
 URL: https://issues.apache.org/jira/browse/MATH-726
 Project: Commons Math
  Issue Type: New Feature
Reporter: Gilles
Assignee: Gilles
Priority: Minor
  Labels: features
 Fix For: 3.0

 Attachments: RiddersFirstDerivative.java


 Implementation of the numerical first derivative, as described in:
 {noformat}
 Accurate computation of F'(x) and F'(x) F''(x)
 C. J. F. Ridders
 Adv. Eng. Software, 1982, Vol 4, No. 2
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (MATH-726) Ridders derivative

2011-12-16 Thread Gilles (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/MATH-726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13170977#comment-13170977
 ] 

Gilles commented on MATH-726:
-

The proposed code was modelled against the structure of solvers and optimizers 
classes (method derivative is the counterpart of solve and optimize, 
respectively).
What you propose seems to depart from this, but I cannot really judge because I 
don't know anything about nabla.

It may be the right way in the longer term... However, given the resources 
devoted to nabla, I don't think that it is wise to force Commons Math to fit 
the current design of nabla. I see well that nabla and CM could converge at 
the time of CM version 4.0. :)
But for v3.x it could be fine to provide the low-level bits (?).

But it can also be that I completely missed your point. If so, could you please 
post the code that would help me figure out what you propose?


 Ridders derivative
 --

 Key: MATH-726
 URL: https://issues.apache.org/jira/browse/MATH-726
 Project: Commons Math
  Issue Type: New Feature
Reporter: Gilles
Assignee: Gilles
Priority: Minor
  Labels: features
 Fix For: 3.0

 Attachments: RiddersFirstDerivative.java


 Implementation of the numerical first derivative, as described in:
 {noformat}
 Accurate computation of F'(x) and F'(x) F''(x)
 C. J. F. Ridders
 Adv. Eng. Software, 1982, Vol 4, No. 2
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (MATH-726) Ridders derivative

2011-12-16 Thread Phil Steitz (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/MATH-726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13171044#comment-13171044
 ] 

Phil Steitz commented on MATH-726:
--

+1 to moving the [nabla] numerics code into [math] and standardizing on the 
[nabla] API (which will become the [math] API that [nabla] will depend on). If 
the API is not to everyone's liking, we can change it.  The relevant classes 
are in o.a.c.nabla.numerical and o.a.c.nabla.core in the [nabla] sandbox svn, 
per Luc's links above.

Might be best to postpone this until post-3.0, as the package additions could 
be done in 3.1 without breaks; but I would personally be OK with a lift and 
load from [nabla] (along with the proposed Ridder's impl) for 3.0 if someone is 
willing to do the work.

 Ridders derivative
 --

 Key: MATH-726
 URL: https://issues.apache.org/jira/browse/MATH-726
 Project: Commons Math
  Issue Type: New Feature
Reporter: Gilles
Assignee: Gilles
Priority: Minor
  Labels: features
 Fix For: 3.0

 Attachments: RiddersFirstDerivative.java


 Implementation of the numerical first derivative, as described in:
 {noformat}
 Accurate computation of F'(x) and F'(x) F''(x)
 C. J. F. Ridders
 Adv. Eng. Software, 1982, Vol 4, No. 2
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (JEXL-124) Array parameters to methods don't work anymore

2011-12-16 Thread Sebb (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/JEXL-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13171366#comment-13171366
 ] 

Sebb commented on JEXL-124:
---

I've just uploaded a 2.1.1 SNAPSHOT build if you want to give that a try:

https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-jexl/2.1.1-SNAPSHOT/

 Array parameters to methods don't work anymore
 --

 Key: JEXL-124
 URL: https://issues.apache.org/jira/browse/JEXL-124
 Project: Commons JEXL
  Issue Type: Bug
Affects Versions: 2.1
Reporter: Jeff Schnitzer
Assignee: Henri Biestro
 Fix For: 2.1.1


 I have some code that worked in 2.0.1 and fails in 2.1.  It looks like this:
 ${tool.jsbuilder(['form2js', 'js2form', 'jquery.dirtyform'])}
 (it's being called from a cambridge template, but that doesn't matter).  The 
 jsbuilder() method simply takes a String[].
 Now it throws an exception, the exact nature of which is getting eaten by 
 something.  The error message looks like Could not execute the expression: 
 Error evaluating exception on line: 13, column: 15, expression: 
 tool.jsbuilder([... and then the parameters.
 Sorry about not making a nice test case out of this but I'm in a hurry and 
 reverting to 2.0.1 for now.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira