• Home
  • Raw
  • Download

Lines Matching refs:refMat2

123     DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols);  in sparse_block()  local
125 initSparse<Scalar>(density, refMat2, m2); in sparse_block()
131 VERIFY_IS_APPROX(m2.innerVector(j0), innervec(refMat2,j0)); in sparse_block()
132 …VERIFY_IS_APPROX(m2.innerVector(j0)+m2.innerVector(j1), innervec(refMat2,j0)+innervec(refMat2,j1)); in sparse_block()
135 innervec(refMat2,j0) *= Scalar(2); in sparse_block()
136 VERIFY_IS_APPROX(m2, refMat2); in sparse_block()
139 refMat2.row(r0) *= Scalar(3); in sparse_block()
140 VERIFY_IS_APPROX(m2, refMat2); in sparse_block()
143 refMat2.col(c0) *= Scalar(4); in sparse_block()
144 VERIFY_IS_APPROX(m2, refMat2); in sparse_block()
147 refMat2.row(r0) /= Scalar(3); in sparse_block()
148 VERIFY_IS_APPROX(m2, refMat2); in sparse_block()
151 refMat2.col(c0) /= Scalar(4); in sparse_block()
152 VERIFY_IS_APPROX(m2, refMat2); in sparse_block()
155 VERIFY_IS_APPROX(v1 = m2.col(c0) * 4, refMat2.col(c0)*4); in sparse_block()
156 VERIFY_IS_APPROX(v1 = m2.row(r0) * 4, refMat2.row(r0).transpose()*4); in sparse_block()
186 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_block() local
188 initSparse<Scalar>(density, refMat2, m2); in sparse_block()
194 VERIFY_IS_APPROX(m2.innerVectors(j0,n0), refMat2.block(j0,0,n0,cols)); in sparse_block()
196 VERIFY_IS_APPROX(m2.innerVectors(j0,n0), refMat2.block(0,j0,rows,n0)); in sparse_block()
199 refMat2.middleRows(j0,n0)+refMat2.middleRows(j1,n0)); in sparse_block()
202 refMat2.block(0,j0,rows,n0)+refMat2.block(0,j1,rows,n0)); in sparse_block()
204 VERIFY_IS_APPROX(m2, refMat2); in sparse_block()
210 refMat2.middleRows(j0,n0) = (refMat2.middleRows(j0,n0) + refMat2.middleRows(j1,n0)).eval(); in sparse_block()
212 refMat2.middleCols(j0,n0) = (refMat2.middleCols(j0,n0) + refMat2.middleCols(j1,n0)).eval(); in sparse_block()
214 VERIFY_IS_APPROX(m2, refMat2); in sparse_block()
219 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_block() local
221 initSparse<Scalar>(density, refMat2, m2); in sparse_block()
226 VERIFY_IS_APPROX(m2.block(j0,0,n0,cols), refMat2.block(j0,0,n0,cols)); in sparse_block()
228 VERIFY_IS_APPROX(m2.block(0,j0,rows,n0), refMat2.block(0,j0,rows,n0)); in sparse_block()
232 refMat2.block(j0,0,n0,cols)+refMat2.block(j1,0,n0,cols)); in sparse_block()
235 refMat2.block(0,j0,rows,n0)+refMat2.block(0,j1,rows,n0)); in sparse_block()
240 refMat2.row(i) = refMat2.row(i) * s1; in sparse_block()
241 VERIFY_IS_APPROX(m2,refMat2); in sparse_block()
244 refMat2.col(i) = refMat2.col(i) * s1; in sparse_block()
245 VERIFY_IS_APPROX(m2,refMat2); in sparse_block()
253 VERIFY_IS_APPROX(DenseVector(m2.col(c0)), refMat2.col(c0)); in sparse_block()
254 VERIFY_IS_APPROX(m2.col(c0), refMat2.col(c0)); in sparse_block()
256 VERIFY_IS_APPROX(RowDenseVector(m2.row(r0)), refMat2.row(r0)); in sparse_block()
257 VERIFY_IS_APPROX(m2.row(r0), refMat2.row(r0)); in sparse_block()
259 VERIFY_IS_APPROX(m2.block(r0,c0,r1,c1), refMat2.block(r0,c0,r1,c1)); in sparse_block()
260 VERIFY_IS_APPROX((2*m2).block(r0,c0,r1,c1), (2*refMat2).block(r0,c0,r1,c1)); in sparse_block()
264 VERIFY_IS_APPROX(m2, refMat2); in sparse_block()
275 refMat3.row(o1) = refMat2.row(o2); in sparse_block()
280 refMat3.col(o1) = refMat2.col(o2); in sparse_block()