commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1355) Methods of MatrixUtils.createDiagonalMatrix should return an instance of DiagonalMatrix instead of RealMatrix.
Date Fri, 22 Apr 2016 01:34:12 GMT

    [ https://issues.apache.org/jira/browse/MATH-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15253141#comment-15253141
] 

Gilles commented on MATH-1355:
------------------------------

It turns out that class {{EigenDecomposition}} was assuming that the returned instance could
be made non-diagonal.  But with an instance that enforces the property of being "diagonal",
this results in an exception being thrown.

I'll add a new method in {{MatrixUtils}}:
{noformat}
public static RealMatrix createRealMatrixWithDiagonal(double[] diagonal) { ... }
{noformat}
that will return a dense matrix that is not a instance of {{DiagonalMatrix}} (so that setting
off-diagonal elements is allowed).


> Methods of MatrixUtils.createDiagonalMatrix should return an instance of DiagonalMatrix
instead of RealMatrix.
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MATH-1355
>                 URL: https://issues.apache.org/jira/browse/MATH-1355
>             Project: Commons Math
>          Issue Type: Wish
>            Reporter: Kazuhiro Koshino
>            Priority: Trivial
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message