Lines Matching refs:m1
27 ArrayType m1 = ArrayType::Random(rows, cols), in vectorwiseop_array() local
36 m2 = m1; 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()
42 VERIFY_RAISES_ASSERT(m1.colwise() + colvec.transpose()); in vectorwiseop_array()
44 m2 = m1; 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()
50 VERIFY_RAISES_ASSERT(m1.rowwise() + rowvec.transpose()); in vectorwiseop_array()
54 m2 = m1; 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()
60 VERIFY_RAISES_ASSERT(m1.colwise() - colvec.transpose()); in vectorwiseop_array()
62 m2 = m1; 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()
68 VERIFY_RAISES_ASSERT(m1.rowwise() - rowvec.transpose()); in vectorwiseop_array()
72 m2 = m1; 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()
78 VERIFY_RAISES_ASSERT(m1.colwise() * colvec.transpose()); in vectorwiseop_array()
80 m2 = m1; 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()
86 VERIFY_RAISES_ASSERT(m1.rowwise() * rowvec.transpose()); in vectorwiseop_array()
90 m2 = m1; 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()
96 VERIFY_RAISES_ASSERT(m1.colwise() / colvec.transpose()); in vectorwiseop_array()
98 m2 = m1; 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()
104 VERIFY_RAISES_ASSERT(m1.rowwise() / rowvec.transpose()); in vectorwiseop_array()
120 MatrixType m1 = MatrixType::Random(rows, cols), in vectorwiseop_matrix() local
129 m2 = m1; 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()
135 VERIFY_RAISES_ASSERT(m1.colwise() + colvec.transpose()); in vectorwiseop_matrix()
137 m2 = m1; 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()
143 VERIFY_RAISES_ASSERT(m1.rowwise() + rowvec.transpose()); in vectorwiseop_matrix()
147 m2 = m1; 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()
153 VERIFY_RAISES_ASSERT(m1.colwise() - colvec.transpose()); in vectorwiseop_matrix()
155 m2 = m1; 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()
161 VERIFY_RAISES_ASSERT(m1.rowwise() - rowvec.transpose()); in vectorwiseop_matrix()