commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Bloem (Created) (JIRA)" <>
Subject [jira] [Created] (MATH-719) Strange deprecations in API
Date Tue, 06 Dec 2011 17:07:48 GMT
Strange deprecations in API

                 Key: MATH-719
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 2.2, 2.1, 2.0
            Reporter: Peter Bloem
            Priority: Minor

Sorry if this doesn't belong here. I couldn't find any sort of mailing list or other feedback
mechanism on the website.

RealMatrix has some very odd deprecations. In particular inverse(), getDeterminant() and isSingular().
The last has the message:

bq. Deprecated. as of release 2.0, replaced by the boolean negation of new LUDecompositionImpl(m).getSolver().isNonSingular()

That's an implementation, not an interface. The whole point of having an interface is that

* I can query whether a matrix is singular withou having to know about LUDecompositions
* You guys can change the implementation of isSingular() if something better pops up without
us guys having to change our code.

I'm not using these methods now, because they're deprecated, but I've basically recreated
them in as static methods in a utility class. Wouldn't it be much better to just put code
from the deprecation message into the method and remove the deprecation?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message