Re: [boost] 2D Matrix

From: Jason Kraftcheck <kraftche@cae.wisc.edu>
The TVMET library seems to define implementations of every libm function for matrices (sin, pow, etc.). It implements them by applying the equivalent scalar function to each matrix element. This kind of stuff results in a lot of noise in the library, is unlikely to be very useful, and the theoretical meaning of these operations is dubious. For example, mathematically, pow( M, 3 ) for a matrix M means M * M * M, which is not the same as cubing each element of M.
Worse still, there is a mathematical definition for exp(M), sin(M), etc., involving power series expansion, which is used from time to time. So defining it differently in a library is quite misleading. It's sometimes useful to apply a function to every element of a matrix, but this should be done via an analog of for_each (IMO). - James Jones Administrative Data Mgmt. Webmaster 375 Raritan Center Pkwy, Suite A Data Architect Edison, NJ 08837
participants (1)
-
james.jonesīŧ firstinvestors.com