/external/eigen/test/ |
D | sparse_product.cpp | 15 …static void run(SparseMatrixType& m2, SparseMatrixType& m4, DenseMatrix& refMat2, DenseMatrix& ref… in run() 18 …VERIFY_IS_APPROX(m4=m2.col(c)*refMat2.col(c1).transpose(), refMat4=refMat2.col(c)*refMat2.col(c1).… in run() 19 …VERIFY_IS_APPROX(m4=refMat2.col(c1)*m2.col(c).transpose(), refMat4=refMat2.col(c1)*refMat2.col(c).… in run() 24 …static void run(SparseMatrixType& m2, SparseMatrixType& m4, DenseMatrix& refMat2, DenseMatrix& ref… in run() 27 …ERIFY_IS_APPROX(m4=m2.row(r).transpose()*refMat2.col(c1).transpose(), refMat4=refMat2.row(r).trans… in run() 28 VERIFY_IS_APPROX(m4=refMat2.col(c1)*m2.row(r), refMat4=refMat2.col(c1)*refMat2.row(r)); in run() 55 DenseMatrix refMat2 = DenseMatrix::Zero(rows, depth); in sparse_product() local 72 initSparse(density, refMat2, m2); in sparse_product() 83 VERIFY_IS_APPROX(m4=m2*m3, refMat4=refMat2*refMat3); in sparse_product() 86 VERIFY_IS_APPROX(m4=m2*m3t.transpose(), refMat4=refMat2*refMat3t.transpose()); in sparse_product() [all …]
|
D | sparse_solvers.cpp | 49 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 …]
|
D | sparse_basic.cpp | 200 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic() local 202 initSparse<Scalar>(density, refMat2, m2); in sparse_basic() 203 VERIFY_IS_APPROX(m2.transpose().eval(), refMat2.transpose().eval()); in sparse_basic() 204 VERIFY_IS_APPROX(m2.transpose(), refMat2.transpose()); in sparse_basic() 206 VERIFY_IS_APPROX(SparseMatrixType(m2.adjoint()), refMat2.adjoint()); in sparse_basic() 211 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic() local 213 initSparse<Scalar>(density, refMat2, m2); in sparse_basic() 217 VERIFY_IS_APPROX(m2.innerVector(j0), refMat2.row(j0)); in sparse_basic() 219 VERIFY_IS_APPROX(m2.innerVector(j0), refMat2.col(j0)); in sparse_basic() 222 VERIFY_IS_APPROX(m2.innerVector(j0)+m2.innerVector(j1), refMat2.row(j0)+refMat2.row(j1)); in sparse_basic() [all …]
|
/external/eigen/test/eigen2/ |
D | eigen2_sparse_solvers.cpp | 49 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 marked<LowerTriangular>().solveTriangular(vec2), in sparse_solvers() 57 …initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeLowerTriangular, &zeroCoords, &nonze… in sparse_solvers() 58 VERIFY_IS_APPROX(refMat2.template marked<LowerTriangular>().transpose().solveTriangular(vec2), in sparse_solvers() 62 …initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonze… in sparse_solvers() 63 VERIFY_IS_APPROX(refMat2.template marked<UpperTriangular>().solveTriangular(vec2), in sparse_solvers() 67 …initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonze… in sparse_solvers() 68 VERIFY_IS_APPROX(refMat2.template marked<UpperTriangular>().transpose().solveTriangular(vec2), in sparse_solvers() 76 DenseMatrix refMat2(rows, cols); in sparse_solvers() local [all …]
|
D | eigen2_sparse_product.cpp | 25 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_product() local 32 initSparse<Scalar>(density, refMat2, m2); in sparse_product() 35 VERIFY_IS_APPROX(m4=m2*m3, refMat4=refMat2*refMat3); in sparse_product() 36 VERIFY_IS_APPROX(m4=m2.transpose()*m3, refMat4=refMat2.transpose()*refMat3); in sparse_product() 37 …VERIFY_IS_APPROX(m4=m2.transpose()*m3.transpose(), refMat4=refMat2.transpose()*refMat3.transpose()… in sparse_product() 38 VERIFY_IS_APPROX(m4=m2*m3.transpose(), refMat4=refMat2*refMat3.transpose()); in sparse_product() 41 VERIFY_IS_APPROX(dm4=m2*refMat3, refMat4=refMat2*refMat3); in sparse_product() 42 VERIFY_IS_APPROX(dm4=m2*refMat3.transpose(), refMat4=refMat2*refMat3.transpose()); in sparse_product() 43 VERIFY_IS_APPROX(dm4=m2.transpose()*refMat3, refMat4=refMat2.transpose()*refMat3); in sparse_product() 44 …VERIFY_IS_APPROX(dm4=m2.transpose()*refMat3.transpose(), refMat4=refMat2.transpose()*refMat3.trans… in sparse_product() [all …]
|
D | eigen2_sparse_basic.cpp | 236 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic() local 238 initSparse<Scalar>(density, refMat2, m2); in sparse_basic() 241 VERIFY_IS_APPROX(m2.innerVector(j0), refMat2.col(j0)); in sparse_basic() 242 VERIFY_IS_APPROX(m2.innerVector(j0)+m2.innerVector(j1), refMat2.col(j0)+refMat2.col(j1)); in sparse_basic() 250 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic() local 252 initSparse<Scalar>(density, refMat2, m2); in sparse_basic() 256 VERIFY_IS_APPROX(m2.innerVectors(j0,n0), refMat2.block(0,j0,rows,n0)); in sparse_basic() 258 refMat2.block(0,j0,rows,n0)+refMat2.block(0,j1,rows,n0)); in sparse_basic() 265 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic() local 267 initSparse<Scalar>(density, refMat2, m2); in sparse_basic() [all …]
|