aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/bandmatrix.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-01-07 21:15:32 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-01-07 21:15:32 +0100
commitc5d7c9f0def693e77797e6e43cb1fd2e7f8ae2fd (patch)
tree3a6367ee5d64f9e9034831a84d2b4cf3c761263c /test/bandmatrix.cpp
parent82ec250a0f9abc11be71e8d0f92dc6f7284b91d0 (diff)
remove the Triangular suffix to Upper, Lower, UnitLower, etc,
and remove the respective bit flags
Diffstat (limited to 'test/bandmatrix.cpp')
-rw-r--r--test/bandmatrix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bandmatrix.cpp b/test/bandmatrix.cpp
index e243dffe5..dc54812b9 100644
--- a/test/bandmatrix.cpp
+++ b/test/bandmatrix.cpp
@@ -64,8 +64,8 @@ template<typename MatrixType> void bandmatrix(const MatrixType& _m)
int a = std::max(0,cols-d-supers);
int b = std::max(0,rows-d-subs);
if(a>0) dm1.block(0,d+supers,rows,a).setZero();
- dm1.block(0,supers+1,cols-supers-1-a,cols-supers-1-a).template triangularView<UpperTriangular>().setZero();
- dm1.block(subs+1,0,rows-subs-1-b,rows-subs-1-b).template triangularView<LowerTriangular>().setZero();
+ dm1.block(0,supers+1,cols-supers-1-a,cols-supers-1-a).template triangularView<Upper>().setZero();
+ dm1.block(subs+1,0,rows-subs-1-b,rows-subs-1-b).template triangularView<Lower>().setZero();
if(b>0) dm1.block(d+subs,0,b,cols).setZero();
//std::cerr << m.m_data << "\n\n" << m.toDense() << "\n\n" << dm1 << "\n\n";
VERIFY_IS_APPROX(dm1,m.toDenseMatrix());