Home | History | Annotate | Download | only in test

Lines Matching defs:scalar

16   typedef typename MatrixType::Scalar Scalar;
17 Scalar zero = static_cast<Scalar>(0);
39 typedef typename internal::traits<VectorType>::Scalar Scalar;
43 Scalar high = internal::random<Scalar>(-500,500);
44 Scalar low = (size == 1 ? high : internal::random<Scalar>(-500,500));
47 const Scalar step = ((size == 1) ? 1 : (high-low)/(size-1));
64 VERIFY( (MatrixXd(RowVectorXd::LinSpaced(3, 0, 1)) - RowVector3d(0, 0.5, 1)).norm() < std::numeric_limits<Scalar>::epsilon() );
79 Matrix<Scalar,Dynamic,1> row_vector(size);
80 Matrix<Scalar,1,Dynamic> col_vector(size);
83 VERIFY( row_vector.isApprox(col_vector.transpose(), NumTraits<Scalar>::epsilon()));
85 Matrix<Scalar,Dynamic,1> size_changer(size+50);
89 typedef Matrix<Scalar,1,1> ScalarMatrix;
90 ScalarMatrix scalar;
91 scalar.setLinSpaced(1,low,high);
92 VERIFY_IS_APPROX( scalar, ScalarMatrix::Constant(high) );