commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Sterijevski <gsterijev...@gmail.com>
Subject Fwd: (MATH-608) Remove methods from RealMatrix Interface
Date Fri, 01 Jul 2011 23:47:35 GMT
No sure if this went through originally, sorry if this causes a duplicate to
occur.

-Greg

---------- Forwarded message ----------
From: Greg Sterijevski <gsterijevski@gmail.com>
Date: Fri, Jul 1, 2011 at 6:45 PM
Subject: Re: (MATH-608) Remove methods from RealMatrix Interface
To: Commons Developers List <dev@commons.apache.org>, dev@commons.apache.or


Hi Gilles,

There is no magic which will remove the elemental complexity of these
things. However, the complexity would be concentrated in the operator
classes, where it probably should be. Furthermore, the type matching would
be handled by compiler. Finally, the multiplication routines would grow as a
need for those operations arises.

You are correct that moving these operations to an external class would
expose details of data storage and break encapsulation. However, this is
done consistently throughout math commons-look at the principal components
class. The SVD  class asks for a reference to the data array (if memory
serves me).

 -Greg

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message