Lines Matching refs:refM1
148 DenseMatrix refM1 = DenseMatrix::Zero(rows, cols); in sparse_basic() local
156 initSparse<Scalar>(density, refM1, m1); in sparse_basic()
166 VERIFY_IS_APPROX(m1*s1, refM1*s1); 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()
171 VERIFY_IS_APPROX(m4=m1/s1, refM1/s1); 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()
183 … VERIFY_IS_APPROX(( m1.template block<1,Dynamic>(r,0,1,m1.cols()).dot(rv)) , refM1.row(r).dot(rv)); in sparse_basic()
184 VERIFY_IS_APPROX(m1.row(r).dot(rv), refM1.row(r).dot(rv)); in sparse_basic()
185 VERIFY_IS_APPROX(m1.col(c).dot(cv), refM1.col(c).dot(cv)); in sparse_basic()
187 VERIFY_IS_APPROX(m1.conjugate(), refM1.conjugate()); in sparse_basic()
188 VERIFY_IS_APPROX(m1.real(), refM1.real()); in sparse_basic()
213 VERIFY_IS_APPROX(m1.sum(), refM1.sum()); in sparse_basic()
217 VERIFY_IS_APPROX(m1*=s1, refM1*=s1); in sparse_basic()
219 VERIFY_IS_APPROX(m1/=s1, refM1/=s1); 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()
229 VERIFY_RAISES_ASSERT( refM1 -= m1.innerVector(0) ); in sparse_basic()
230 VERIFY_RAISES_ASSERT( refM1 += m1.innerVector(0) ); in sparse_basic()
231 m1 = m4; refM1 = refM4; in sparse_basic()
235 VERIFY_IS_APPROX((m1 = -m1), (refM1 = -refM1)); in sparse_basic()
237 m1 = m4; refM1 = refM4; in sparse_basic()
238 VERIFY_IS_APPROX((m1 = m1.transpose()), (refM1 = refM1.transpose().eval())); in sparse_basic()
240 m1 = m4; refM1 = refM4; in sparse_basic()
241 VERIFY_IS_APPROX((m1 = -m1.transpose()), (refM1 = -refM1.transpose().eval())); in sparse_basic()
243 m1 = m4; refM1 = refM4; in sparse_basic()
244 VERIFY_IS_APPROX((m1 += -m1), (refM1 += -refM1)); in sparse_basic()
246 m1 = m4; refM1 = refM4; in sparse_basic()
254 refM1(it.row(), it.col()) += s1; in sparse_basic()
255 VERIFY_IS_APPROX(m1, refM1); in sparse_basic()
263 VERIFY_IS_EQUAL(mb1.template cast<int>().sum(), refM1.real().template cast<bool>().count()); in sparse_basic()
264 …VERIFY_IS_EQUAL((mb1 && mb2).template cast<int>().sum(), (refM1.real().template cast<bool>() && re… in sparse_basic()
265 …VERIFY_IS_EQUAL((mb1 || mb2).template cast<int>().sum(), (refM1.real().template cast<bool>() || re… in sparse_basic()
269 …VERIFY_IS_EQUAL(mb3.nonZeros(), (refM1.real().template cast<bool>() && refM2.real().template cast<… in sparse_basic()