commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikkel Meyer Andersen <m...@mikl.dk>
Subject [MATH] Matrix hierarchy reorganization
Date Mon, 21 Feb 2011 12:52:49 GMT
Dear community,

I've started on implementing Kalman filter and have once again run
into a structural challenge in regards to matrix hierarchy (as with
https://issues.apache.org/jira/browse/MATH-435 and
https://issues.apache.org/jira/browse/MATH-437 ).

We have two base types of matrices: RealMatrix and FieldMatrix, both
extending AnyMatrix. Both RealMatrix and FieldMatrix have a lot of the
same functionality, e.g. add, subtract, scalarAdd, scalarMultiply,
multiply, preMultiply etc.

I think it would be beneficial to try to move these standard matrix
methods to AnyMatrix, or at least introduce a new intermediate
AnyAlgebraicMatrix (or similar). It would be natural in several
aspects to just require an AnyAlgebraicMatrix, e.g. with Kalman filter
or repeated squaring, instead of forcing the user to use either
RealMatrix or FieldMatrix (or implement almost similar code for both).

What do you think about such a reorganization of the matrix hierarchy?

Cheers, Mikkel.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message