Home
last modified time | relevance | path

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

/external/eigen/test/
Dsparse_basic.cpp149 DenseMatrix refM2 = DenseMatrix::Zero(rows, cols); in sparse_basic() local
157 initSparse<Scalar>(density, refM2, m2); in sparse_basic()
167 VERIFY_IS_APPROX(m1+m2, refM1+refM2); in sparse_basic()
168 VERIFY_IS_APPROX(m1+m2+m3, refM1+refM2+refM3); in sparse_basic()
169 VERIFY_IS_APPROX(m3.cwiseProduct(m1+m2), refM3.cwiseProduct(refM1+refM2)); in sparse_basic()
170 VERIFY_IS_APPROX(m1*s1-m2, refM1*s1-refM2); in sparse_basic()
175 VERIFY_IS_APPROX(m1.innerVector(0).dot(refM2.row(0)), refM1.row(0).dot(refM2.row(0))); in sparse_basic()
177 VERIFY_IS_APPROX(m1.innerVector(0).dot(refM2.col(0)), refM1.col(0).dot(refM2.col(0))); in sparse_basic()
222 VERIFY_IS_APPROX(m1+=m2, refM1+=refM2); in sparse_basic()
223 VERIFY_IS_APPROX(m1-=m2, refM1-=refM2); in sparse_basic()
[all …]
Dsparse_product.cpp227 DenseMatrix refM2 = DenseMatrix::Zero(rows, cols); in sparse_product() local
234 initSparse<Scalar>(density, refM2, m2); in sparse_product()
236 VERIFY_IS_APPROX(m3=m2*d1, refM3=refM2*d1); in sparse_product()
237 VERIFY_IS_APPROX(m3=m2.transpose()*d2, refM3=refM2.transpose()*d2); in sparse_product()
238 VERIFY_IS_APPROX(m3=d2*m2, refM3=d2*refM2); in sparse_product()
239 VERIFY_IS_APPROX(m3=d1*m2.transpose(), refM3=d1*refM2.transpose()); in sparse_product()
245 VERIFY_IS_APPROX(m3=m2*v1.asDiagonal(), refM3=refM2*v1.asDiagonal()); in sparse_product()
246 VERIFY_IS_APPROX(m3=m2.transpose()*v2.asDiagonal(), refM3=refM2.transpose()*v2.asDiagonal()); in sparse_product()
247 VERIFY_IS_APPROX(m3=v2.asDiagonal()*m2, refM3=v2.asDiagonal()*refM2); in sparse_product()
248 VERIFY_IS_APPROX(m3=v1.asDiagonal()*m2.transpose(), refM3=v1.asDiagonal()*refM2.transpose()); in sparse_product()
[all …]