Lines Matching refs:dm1
25 DenseMatrixType dm1(rows,cols);
26 dm1.setZero();
29 dm1.diagonal().setConstant(123);
33 dm1.diagonal(i).setConstant(static_cast<RealScalar>(i));
38 dm1.diagonal(-i).setConstant(-static_cast<RealScalar>(i));
40 //std::cerr << m.m_data << "\n\n" << m.toDense() << "\n\n" << dm1 << "\n\n\n\n";
41 VERIFY_IS_APPROX(dm1,m.toDenseMatrix());
46 dm1.col(i).setConstant(static_cast<RealScalar>(i+1));
51 if(a>0) dm1.block(0,d+supers,rows,a).setZero();
52 dm1.block(0,supers+1,cols-supers-1-a,cols-supers-1-a).template triangularView<Upper>().setZero();
53 dm1.block(subs+1,0,rows-subs-1-b,rows-subs-1-b).template triangularView<Lower>().setZero();
54 if(b>0) dm1.block(d+subs,0,b,cols).setZero();
55 //std::cerr << m.m_data << "\n\n" << m.toDense() << "\n\n" << dm1 << "\n\n";
56 VERIFY_IS_APPROX(dm1,m.toDenseMatrix());