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