Home
last modified time | relevance | path

Searched refs:refMat2 (Results 1 – 4 of 4) sorted by relevance

/external/eigen/test/
Dsparse_block.cpp123 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()
[all …]
Dsparse_solvers.cpp49 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_solvers() local
52 …initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeLowerTriangular, &zeroCoords, &nonze… in sparse_solvers()
53 VERIFY_IS_APPROX(refMat2.template triangularView<Lower>().solve(vec2), in sparse_solvers()
57 …initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonze… in sparse_solvers()
58 VERIFY_IS_APPROX(refMat2.template triangularView<Upper>().solve(vec2), in sparse_solvers()
60 VERIFY_IS_APPROX(refMat2.conjugate().template triangularView<Upper>().solve(vec2), in sparse_solvers()
66 VERIFY_IS_APPROX(refMat2.conjugate().template triangularView<Upper>().solve(vec2), in sparse_solvers()
71 …initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeLowerTriangular, &zeroCoords, &nonze… in sparse_solvers()
72 VERIFY_IS_APPROX(refMat2.transpose().template triangularView<Upper>().solve(vec2), in sparse_solvers()
76 …initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonze… in sparse_solvers()
[all …]
Dsparse_product.cpp52 DenseMatrix refMat2 = DenseMatrix::Zero(rows, depth); in sparse_product() local
69 initSparse(density, refMat2, m2); in sparse_product()
80 VERIFY_IS_APPROX(m4=m2*m3, refMat4=refMat2*refMat3); in sparse_product()
83 VERIFY_IS_APPROX(m4=m2*m3t.transpose(), refMat4=refMat2*refMat3t.transpose()); in sparse_product()
85 VERIFY_IS_APPROX(m4 = m2*m3/s1, refMat4 = refMat2*refMat3/s1); in sparse_product()
86 VERIFY_IS_APPROX(m4 = m2*m3*s1, refMat4 = refMat2*refMat3*s1); in sparse_product()
87 VERIFY_IS_APPROX(m4 = s2*m2*m3*s1, refMat4 = s2*refMat2*refMat3*s1); in sparse_product()
88 VERIFY_IS_APPROX(m4 = (m2+m2)*m3, refMat4 = (refMat2+refMat2)*refMat3); in sparse_product()
89 VERIFY_IS_APPROX(m4 = m2*m3.leftCols(cols/2), refMat4 = refMat2*refMat3.leftCols(cols/2)); in sparse_product()
90 …VERIFY_IS_APPROX(m4 = m2*(m3+m3).leftCols(cols/2), refMat4 = refMat2*(refMat3+refMat3).leftCols(co… in sparse_product()
[all …]
Dsparse_basic.cpp276 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_basic() local
278 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()
306 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_basic() local
308 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()
309 VERIFY_IS_APPROX(m2.transpose().eval(), refMat2.transpose().eval()); in sparse_basic()
310 VERIFY_IS_APPROX(m2.transpose(), refMat2.transpose()); in sparse_basic()
312 VERIFY_IS_APPROX(SparseMatrixType(m2.adjoint()), refMat2.adjoint()); in sparse_basic()
396 DenseMatrix refMat2(rows, cols), refMat3(rows, cols); in sparse_basic() local
398 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()
403 VERIFY_IS_APPROX(mapMat2+mapMat3, refMat2+refMat3); in sparse_basic()
[all …]