mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-17 18:09:55 +08:00
minor improvements in triangular stuff
This commit is contained in:
parent
88b551e89b
commit
eac3232095
@ -238,7 +238,7 @@ template<typename _MatrixType, unsigned int _Mode> class TriangularView
|
||||
DenseMatrixType toDenseMatrix() const
|
||||
{
|
||||
DenseMatrixType res(rows(), cols());
|
||||
res = *this;
|
||||
evalToLazy(res);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ template<typename MatrixType> void triangular_square(const MatrixType& m)
|
||||
|
||||
m1 = MatrixType::Random(rows, cols);
|
||||
for (int i=0; i<rows; ++i)
|
||||
while (ei_abs2(m1(i,i))<1e-3) m1(i,i) = ei_random<Scalar>();
|
||||
while (ei_abs2(m1(i,i))<1e-1) m1(i,i) = ei_random<Scalar>();
|
||||
|
||||
Transpose<MatrixType> trm4(m4);
|
||||
// test back and forward subsitution with a vector as the rhs
|
||||
|
Loading…
Reference in New Issue
Block a user