scalala / Scalala

Scalala has been superseded by dlwh/breeze. Scalala is a high performance numeric linear algebra library for Scala, with rich Matlab-like operators on vectors and matrices; a library of numerical routines; support for plotting.
http://groups.google.com/group/scalala
GNU Lesser General Public License v2.1
298 stars 30 forks source link

det() method is incorrect #21

Closed lancelet closed 13 years ago

lancelet commented 13 years ago

The det() method incorrectly interprets the output of the LU() method to count the number of swapped rows of the matrix. This can be illustrated with an example:

G = Matrix((-1.,1.,-1.),(1.,2.,3.),(3.,-10.,1.)) det(G) 8.0 The correct determinant is -8.0

A pull request to fix the problem will follow shortly.

dramage commented 13 years ago

Merged