Skip to content
Snippets Groups Projects
Commit eba07052 authored by Nicolas Mansard's avatar Nicolas Mansard
Browse files

Corrected a bug in debug mode.

parent a900c35d
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,9 @@ namespace Eigen ...@@ -40,9 +40,9 @@ namespace Eigen
template< typename D > template< typename D >
void solveInPlace( MatrixBase<D>& Gp ) void solveInPlace( MatrixBase<D>& Gp )
{ {
const int r = rank(), m=cols(), n=rows(); const int r = rank(), n=rows();
assert( r==m ); assert( r==cols() );
assert( Gp.rows() == m ); // TODO: if not proper size, resize. assert( Gp.rows() == cols() ); // TODO: if not proper size, resize.
VectorXd workspace( Gp.rows() ); // Size of Gtp number of rows. VectorXd workspace( Gp.rows() ); // Size of Gtp number of rows.
/* P2*P1*P0 ... */ /* P2*P1*P0 ... */
...@@ -80,8 +80,8 @@ namespace Eigen ...@@ -80,8 +80,8 @@ namespace Eigen
/* r is the rank, nxm the size of the original matrix (ie whose transpose /* r is the rank, nxm the size of the original matrix (ie whose transpose
* has been decomposed. n is the number of cols of the original matrix, * has been decomposed. n is the number of cols of the original matrix,
* thus number of rows of the transpose we want to inverse. */ * thus number of rows of the transpose we want to inverse. */
const int r = rank(), n=cols(), m=rows(); const int r = rank(), m=rows();
assert( r==n ); assert( r==cols() );
assert( Gtp.rows() == m ); // TODO: if not proper size, resize. assert( Gtp.rows() == m ); // TODO: if not proper size, resize.
/* G E = Q R :: E' G' = L Q', with L=R' /* G E = Q R :: E' G' = L Q', with L=R'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment