19 #ifndef matrix_util_INC
20 #define matrix_util_INC
24 #include <boost/numeric/ublas/matrix.hpp>
25 #include "boost/numeric/bindings/lapack/lapack.hpp"
26 #include "boost/numeric/bindings/lapack/geev.hpp"
28 using namespace boost::numeric;
33 void swapRows( ublas::matrix< value_type >& mat,
unsigned int r1,
unsigned int r2);
35 int reorderRows( ublas::matrix< value_type >& U,
int start,
int leftCol );
void swapRows(ublas::matrix< double > &mat, unsigned int r1, unsigned int r2)
Swap row r1 and r2.
void eliminateRowsBelow(ublas::matrix< double > &U, int start, int leftCol)
int reorderRows(ublas::matrix< double > &U, int start, int leftCol)
unsigned int rankUsingBoost(ublas::matrix< double > &U)