Lines Matching refs:raw
197 Scalar raw[4]; in fixedSizeMatrixConstruction() local
199 raw[k] = internal::random<Scalar>(); in fixedSizeMatrixConstruction()
202 Matrix<Scalar,4,1> m(raw); in fixedSizeMatrixConstruction()
203 Array<Scalar,4,1> a(raw); in fixedSizeMatrixConstruction()
204 for(int k=0; k<4; ++k) VERIFY(m(k) == raw[k]); in fixedSizeMatrixConstruction()
205 for(int k=0; k<4; ++k) VERIFY(a(k) == raw[k]); in fixedSizeMatrixConstruction()
206 VERIFY_IS_EQUAL(m,(Matrix<Scalar,4,1>(raw[0],raw[1],raw[2],raw[3]))); in fixedSizeMatrixConstruction()
207 VERIFY((a==(Array<Scalar,4,1>(raw[0],raw[1],raw[2],raw[3]))).all()); in fixedSizeMatrixConstruction()
210 Matrix<Scalar,3,1> m(raw); in fixedSizeMatrixConstruction()
211 Array<Scalar,3,1> a(raw); in fixedSizeMatrixConstruction()
212 for(int k=0; k<3; ++k) VERIFY(m(k) == raw[k]); in fixedSizeMatrixConstruction()
213 for(int k=0; k<3; ++k) VERIFY(a(k) == raw[k]); in fixedSizeMatrixConstruction()
214 VERIFY_IS_EQUAL(m,(Matrix<Scalar,3,1>(raw[0],raw[1],raw[2]))); in fixedSizeMatrixConstruction()
215 VERIFY((a==Array<Scalar,3,1>(raw[0],raw[1],raw[2])).all()); in fixedSizeMatrixConstruction()
218 Matrix<Scalar,2,1> m(raw), m2( (DenseIndex(raw[0])), (DenseIndex(raw[1])) ); in fixedSizeMatrixConstruction()
219 Array<Scalar,2,1> a(raw), a2( (DenseIndex(raw[0])), (DenseIndex(raw[1])) ); in fixedSizeMatrixConstruction()
220 for(int k=0; k<2; ++k) VERIFY(m(k) == raw[k]); in fixedSizeMatrixConstruction()
221 for(int k=0; k<2; ++k) VERIFY(a(k) == raw[k]); in fixedSizeMatrixConstruction()
222 VERIFY_IS_EQUAL(m,(Matrix<Scalar,2,1>(raw[0],raw[1]))); in fixedSizeMatrixConstruction()
223 VERIFY((a==Array<Scalar,2,1>(raw[0],raw[1])).all()); in fixedSizeMatrixConstruction()
224 for(int k=0; k<2; ++k) VERIFY(m2(k) == DenseIndex(raw[k])); in fixedSizeMatrixConstruction()
225 for(int k=0; k<2; ++k) VERIFY(a2(k) == DenseIndex(raw[k])); in fixedSizeMatrixConstruction()
228 Matrix<Scalar,1,2> m(raw), in fixedSizeMatrixConstruction()
229 m2( (DenseIndex(raw[0])), (DenseIndex(raw[1])) ), in fixedSizeMatrixConstruction()
230 m3( (int(raw[0])), (int(raw[1])) ), in fixedSizeMatrixConstruction()
231 m4( (float(raw[0])), (float(raw[1])) ); in fixedSizeMatrixConstruction()
232 Array<Scalar,1,2> a(raw), a2( (DenseIndex(raw[0])), (DenseIndex(raw[1])) ); in fixedSizeMatrixConstruction()
233 for(int k=0; k<2; ++k) VERIFY(m(k) == raw[k]); in fixedSizeMatrixConstruction()
234 for(int k=0; k<2; ++k) VERIFY(a(k) == raw[k]); in fixedSizeMatrixConstruction()
235 VERIFY_IS_EQUAL(m,(Matrix<Scalar,1,2>(raw[0],raw[1]))); in fixedSizeMatrixConstruction()
236 VERIFY((a==Array<Scalar,1,2>(raw[0],raw[1])).all()); in fixedSizeMatrixConstruction()
237 for(int k=0; k<2; ++k) VERIFY(m2(k) == DenseIndex(raw[k])); in fixedSizeMatrixConstruction()
238 for(int k=0; k<2; ++k) VERIFY(a2(k) == DenseIndex(raw[k])); in fixedSizeMatrixConstruction()
239 for(int k=0; k<2; ++k) VERIFY(m3(k) == int(raw[k])); in fixedSizeMatrixConstruction()
240 for(int k=0; k<2; ++k) VERIFY((m4(k)) == Scalar(float(raw[k]))); in fixedSizeMatrixConstruction()
243 Matrix<Scalar,1,1> m(raw), m1(raw[0]), m2( (DenseIndex(raw[0])) ), m3( (int(raw[0])) ); in fixedSizeMatrixConstruction()
244 Array<Scalar,1,1> a(raw), a1(raw[0]), a2( (DenseIndex(raw[0])) ); in fixedSizeMatrixConstruction()
245 VERIFY(m(0) == raw[0]); in fixedSizeMatrixConstruction()
246 VERIFY(a(0) == raw[0]); in fixedSizeMatrixConstruction()
247 VERIFY(m1(0) == raw[0]); in fixedSizeMatrixConstruction()
248 VERIFY(a1(0) == raw[0]); in fixedSizeMatrixConstruction()
249 VERIFY(m2(0) == DenseIndex(raw[0])); in fixedSizeMatrixConstruction()
250 VERIFY(a2(0) == DenseIndex(raw[0])); in fixedSizeMatrixConstruction()
251 VERIFY(m3(0) == int(raw[0])); in fixedSizeMatrixConstruction()
252 VERIFY_IS_EQUAL(m,(Matrix<Scalar,1,1>(raw[0]))); in fixedSizeMatrixConstruction()
253 VERIFY((a==Array<Scalar,1,1>(raw[0])).all()); in fixedSizeMatrixConstruction()