Lines Matching refs:m2
28 m2(rows, cols), in vectorwiseop_array() local
36 m2 = m1; in vectorwiseop_array()
37 m2.colwise() += colvec; in vectorwiseop_array()
38 VERIFY_IS_APPROX(m2, m1.colwise() + colvec); in vectorwiseop_array()
39 VERIFY_IS_APPROX(m2.col(c), m1.col(c) + colvec); in vectorwiseop_array()
41 VERIFY_RAISES_ASSERT(m2.colwise() += colvec.transpose()); in vectorwiseop_array()
44 m2 = m1; in vectorwiseop_array()
45 m2.rowwise() += rowvec; in vectorwiseop_array()
46 VERIFY_IS_APPROX(m2, m1.rowwise() + rowvec); in vectorwiseop_array()
47 VERIFY_IS_APPROX(m2.row(r), m1.row(r) + rowvec); in vectorwiseop_array()
49 VERIFY_RAISES_ASSERT(m2.rowwise() += rowvec.transpose()); in vectorwiseop_array()
54 m2 = m1; in vectorwiseop_array()
55 m2.colwise() -= colvec; in vectorwiseop_array()
56 VERIFY_IS_APPROX(m2, m1.colwise() - colvec); in vectorwiseop_array()
57 VERIFY_IS_APPROX(m2.col(c), m1.col(c) - colvec); in vectorwiseop_array()
59 VERIFY_RAISES_ASSERT(m2.colwise() -= colvec.transpose()); in vectorwiseop_array()
62 m2 = m1; in vectorwiseop_array()
63 m2.rowwise() -= rowvec; in vectorwiseop_array()
64 VERIFY_IS_APPROX(m2, m1.rowwise() - rowvec); in vectorwiseop_array()
65 VERIFY_IS_APPROX(m2.row(r), m1.row(r) - rowvec); in vectorwiseop_array()
67 VERIFY_RAISES_ASSERT(m2.rowwise() -= rowvec.transpose()); in vectorwiseop_array()
72 m2 = m1; in vectorwiseop_array()
73 m2.colwise() *= colvec; in vectorwiseop_array()
74 VERIFY_IS_APPROX(m2, m1.colwise() * colvec); in vectorwiseop_array()
75 VERIFY_IS_APPROX(m2.col(c), m1.col(c) * colvec); in vectorwiseop_array()
77 VERIFY_RAISES_ASSERT(m2.colwise() *= colvec.transpose()); in vectorwiseop_array()
80 m2 = m1; in vectorwiseop_array()
81 m2.rowwise() *= rowvec; in vectorwiseop_array()
82 VERIFY_IS_APPROX(m2, m1.rowwise() * rowvec); in vectorwiseop_array()
83 VERIFY_IS_APPROX(m2.row(r), m1.row(r) * rowvec); in vectorwiseop_array()
85 VERIFY_RAISES_ASSERT(m2.rowwise() *= rowvec.transpose()); in vectorwiseop_array()
90 m2 = m1; in vectorwiseop_array()
91 m2.colwise() /= colvec; in vectorwiseop_array()
92 VERIFY_IS_APPROX(m2, m1.colwise() / colvec); in vectorwiseop_array()
93 VERIFY_IS_APPROX(m2.col(c), m1.col(c) / colvec); in vectorwiseop_array()
95 VERIFY_RAISES_ASSERT(m2.colwise() /= colvec.transpose()); in vectorwiseop_array()
98 m2 = m1; in vectorwiseop_array()
99 m2.rowwise() /= rowvec; in vectorwiseop_array()
100 VERIFY_IS_APPROX(m2, m1.rowwise() / rowvec); in vectorwiseop_array()
101 VERIFY_IS_APPROX(m2.row(r), m1.row(r) / rowvec); in vectorwiseop_array()
103 VERIFY_RAISES_ASSERT(m2.rowwise() /= rowvec.transpose()); in vectorwiseop_array()
121 m2(rows, cols), in vectorwiseop_matrix() local
129 m2 = m1; in vectorwiseop_matrix()
130 m2.colwise() += colvec; in vectorwiseop_matrix()
131 VERIFY_IS_APPROX(m2, m1.colwise() + colvec); in vectorwiseop_matrix()
132 VERIFY_IS_APPROX(m2.col(c), m1.col(c) + colvec); in vectorwiseop_matrix()
134 VERIFY_RAISES_ASSERT(m2.colwise() += colvec.transpose()); in vectorwiseop_matrix()
137 m2 = m1; in vectorwiseop_matrix()
138 m2.rowwise() += rowvec; in vectorwiseop_matrix()
139 VERIFY_IS_APPROX(m2, m1.rowwise() + rowvec); in vectorwiseop_matrix()
140 VERIFY_IS_APPROX(m2.row(r), m1.row(r) + rowvec); in vectorwiseop_matrix()
142 VERIFY_RAISES_ASSERT(m2.rowwise() += rowvec.transpose()); in vectorwiseop_matrix()
147 m2 = m1; in vectorwiseop_matrix()
148 m2.colwise() -= colvec; in vectorwiseop_matrix()
149 VERIFY_IS_APPROX(m2, m1.colwise() - colvec); in vectorwiseop_matrix()
150 VERIFY_IS_APPROX(m2.col(c), m1.col(c) - colvec); in vectorwiseop_matrix()
152 VERIFY_RAISES_ASSERT(m2.colwise() -= colvec.transpose()); in vectorwiseop_matrix()
155 m2 = m1; in vectorwiseop_matrix()
156 m2.rowwise() -= rowvec; in vectorwiseop_matrix()
157 VERIFY_IS_APPROX(m2, m1.rowwise() - rowvec); in vectorwiseop_matrix()
158 VERIFY_IS_APPROX(m2.row(r), m1.row(r) - rowvec); in vectorwiseop_matrix()
160 VERIFY_RAISES_ASSERT(m2.rowwise() -= rowvec.transpose()); in vectorwiseop_matrix()