Home
last modified time | relevance | path

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

/external/eigen/test/eigen2/
Deigen2_sparse_basic.cpp203 DenseMatrix refM2 = DenseMatrix::Zero(rows, rows); in sparse_basic() local
211 initSparse<Scalar>(density, refM2, m2); in sparse_basic()
215 VERIFY_IS_APPROX(m1+m2, refM1+refM2); in sparse_basic()
216 VERIFY_IS_APPROX(m1+m2+m3, refM1+refM2+refM3); in sparse_basic()
217 VERIFY_IS_APPROX(m3.cwise()*(m1+m2), refM3.cwise()*(refM1+refM2)); in sparse_basic()
218 VERIFY_IS_APPROX(m1*s1-m2, refM1*s1-refM2); in sparse_basic()
223 VERIFY_IS_APPROX(m1+=m2, refM1+=refM2); in sparse_basic()
224 VERIFY_IS_APPROX(m1-=m2, refM1-=refM2); in sparse_basic()
226 VERIFY_IS_APPROX(m1.col(0).eigen2_dot(refM2.row(0)), refM1.col(0).eigen2_dot(refM2.row(0))); in sparse_basic()
275 DenseMatrix refM2(rows, rows); in sparse_basic() local
[all …]
Deigen2_sparse_product.cpp58 DenseMatrix refM2 = DenseMatrix::Zero(rows, rows); in sparse_product() local
63 initSparse<Scalar>(density, refM2, m2); in sparse_product()
65 VERIFY_IS_APPROX(m3=m2*d1, refM3=refM2*d1); in sparse_product()
66 VERIFY_IS_APPROX(m3=m2.transpose()*d1, refM3=refM2.transpose()*d1); in sparse_product()
67 VERIFY_IS_APPROX(m3=d1*m2, refM3=d1*refM2); in sparse_product()
68 VERIFY_IS_APPROX(m3=d1*m2.transpose(), refM3=d1 * refM2.transpose()); in sparse_product()
/external/eigen/test/
Dsparse_product.cpp144 DenseMatrix refM2 = DenseMatrix::Zero(rows, cols); in sparse_product() local
151 initSparse<Scalar>(density, refM2, m2); in sparse_product()
153 VERIFY_IS_APPROX(m3=m2*d1, refM3=refM2*d1); in sparse_product()
154 VERIFY_IS_APPROX(m3=m2.transpose()*d2, refM3=refM2.transpose()*d2); in sparse_product()
155 VERIFY_IS_APPROX(m3=d2*m2, refM3=d2*refM2); in sparse_product()
156 VERIFY_IS_APPROX(m3=d1*m2.transpose(), refM3=d1*refM2.transpose()); in sparse_product()
161 VERIFY_IS_APPROX(m3=m2*v1.asDiagonal(), refM3=refM2*v1.asDiagonal()); in sparse_product()
162 VERIFY_IS_APPROX(m3=m2.transpose()*v2.asDiagonal(), refM3=refM2.transpose()*v2.asDiagonal()); in sparse_product()
163 VERIFY_IS_APPROX(m3=v2.asDiagonal()*m2, refM3=v2.asDiagonal()*refM2); in sparse_product()
164 VERIFY_IS_APPROX(m3=v1.asDiagonal()*m2.transpose(), refM3=v1.asDiagonal()*refM2.transpose()); in sparse_product()
[all …]
Dsparse_basic.cpp275 DenseMatrix refM2 = DenseMatrix::Zero(rows, rows); in sparse_basic() local
283 initSparse<Scalar>(density, refM2, m2); in sparse_basic()
287 VERIFY_IS_APPROX(m1+m2, refM1+refM2); in sparse_basic()
288 VERIFY_IS_APPROX(m1+m2+m3, refM1+refM2+refM3); in sparse_basic()
289 VERIFY_IS_APPROX(m3.cwiseProduct(m1+m2), refM3.cwiseProduct(refM1+refM2)); in sparse_basic()
290 VERIFY_IS_APPROX(m1*s1-m2, refM1*s1-refM2); in sparse_basic()
295 VERIFY_IS_APPROX(m1+=m2, refM1+=refM2); in sparse_basic()
296 VERIFY_IS_APPROX(m1-=m2, refM1-=refM2); in sparse_basic()
299 VERIFY_IS_APPROX(m1.innerVector(0).dot(refM2.row(0)), refM1.row(0).dot(refM2.row(0))); in sparse_basic()
301 VERIFY_IS_APPROX(m1.innerVector(0).dot(refM2.row(0)), refM1.col(0).dot(refM2.row(0))); in sparse_basic()
[all …]