/external/eigen/test/eigen2/ |
sparse.h | 46 Matrix<Scalar,Dynamic,Dynamic>& refMat, 52 sparseMat.startFill(int(refMat.rows()*refMat.cols()*density)); 53 for(int j=0; j<refMat.cols(); j++) 55 for(int i=0; i<refMat.rows(); i++) 81 refMat(i,j) = v; 89 Matrix<Scalar,Dynamic,Dynamic>& refMat, 95 sparseMat.startFill(int(refMat.rows()*refMat.cols()*density)); 96 for(int j=0; j<refMat.cols(); j++ [all...] |
eigen2_sparse_solvers.cpp | 14 Matrix<Scalar,Dynamic,Dynamic>& refMat, 17 Matrix<Scalar,Dynamic,Dynamic> aux(refMat.rows(),refMat.cols()); 18 initSparse(density,refMat,sparseMat); 19 refMat = refMat * refMat.adjoint(); 23 refMat += aux * aux.adjoint(); 28 if (refMat(i,j)!=Scalar(0)) 29 sparseMat.fill(i,j) = refMat(i,j) [all...] |
eigen2_sparse_basic.cpp | 59 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); 65 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); 77 VERIFY_IS_APPROX(m, refMat); 80 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); 82 VERIFY_IS_APPROX(m, refMat); 92 // VERIFY_IS_APPROX(m.block(i,j,h,w), refMat.block(i,j,h,w)); 95 VERIFY_IS_APPROX(m.block(i,j,h,w).col(c), refMat.block(i,j,h,w).col(c)); 98 // VERIFY_IS_APPROX(m.block(i,j,h,w).col(c).coeff(r), refMat.block(i,j,h,w).col(c).coeff(r)); 103 // VERIFY_IS_APPROX(m.block(i,j,h,w).row(r), refMat.block(i,j,h,w).row(r)); 106 // VERIFY_IS_APPROX(m.block(i,j,h,w).row(r).coeff(c), refMat.block(i,j,h,w).row(r).coeff(c)) [all...] |
/external/eigen/unsupported/test/ |
sparse_extra.cpp | 65 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); 70 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); 82 VERIFY_IS_APPROX(m, refMat); 85 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); 87 VERIFY_IS_APPROX(m, refMat); 92 // VERIFY_IS_NOT_APPROX(m, refMat); 98 // w->coeffRef(remaining[i].x(),remaining[i].y()) = refMat.coeff(remaining[i].x(),remaining[i].y()); 103 // VERIFY_IS_APPROX(m, refMat); 105 VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdMapTraits> >(m,refMat,nonzeroCoords) )); 107 VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdUnorderedMapTraits> >(m,refMat,nonzeroCoords) )) [all...] |
/external/eigen/test/ |
sparse.h | 58 Matrix<Scalar,Dynamic,Dynamic,Opt1>& refMat, 66 //sparseMat.reserve(int(refMat.rows()*refMat.cols()*density)); 67 sparseMat.reserve(VectorXi::Constant(IsRowMajor ? refMat.rows() : refMat.cols(), int((1.5*density)*(IsRowMajor?refMat.cols():refMat.rows())))); 102 refMat(ai,aj) = v; 110 Matrix<Scalar,Dynamic,Dynamic, Opt1>& refMat, 118 sparseMat.reserve(int(refMat.rows()*refMat.cols()*density)) [all...] |
sparse_solvers.cpp | 14 Matrix<Scalar,Dynamic,Dynamic>& refMat, 17 Matrix<Scalar,Dynamic,Dynamic> aux(refMat.rows(),refMat.cols()); 18 initSparse(density,refMat,sparseMat); 19 refMat = refMat * refMat.adjoint(); 23 refMat += aux * aux.adjoint(); 28 if (refMat(i,j)!=Scalar(0)) 29 sparseMat.insert(i,j) = refMat(i,j) [all...] |
sparse_basic.cpp | 28 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); 34 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); 46 VERIFY_IS_APPROX(m, refMat); 49 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); 51 VERIFY_IS_APPROX(m, refMat); 61 // VERIFY_IS_APPROX(m.block(i,j,h,w), refMat.block(i,j,h,w)); 64 VERIFY_IS_APPROX(m.block(i,j,h,w).col(c), refMat.block(i,j,h,w).col(c)); 67 // VERIFY_IS_APPROX(m.block(i,j,h,w).col(c).coeff(r), refMat.block(i,j,h,w).col(c).coeff(r)); 72 // VERIFY_IS_APPROX(m.block(i,j,h,w).row(r), refMat.block(i,j,h,w).row(r)); 75 // VERIFY_IS_APPROX(m.block(i,j,h,w).row(r).coeff(c), refMat.block(i,j,h,w).row(r).coeff(c)) [all...] |