Lines Matching full:vectortype
13 template<typename VectorType,
16 VectorType **points,
18 typename VectorType::Scalar noiseAmplitude)
20 typedef typename VectorType::Scalar Scalar;
34 VectorType& cur_point = *(points[i]);
37 cur_point = VectorType::Random(size)/*.normalized()*/;
47 *(points[i]) += noiseAmplitude * VectorType::Random(size);
50 template<typename VectorType>
52 VectorType **points,
53 const VectorType& original,
54 typename VectorType::Scalar tolerance)
58 VectorType result(size);
60 typename VectorType::Scalar error = (result - original).norm() / original.norm();
64 template<typename VectorType,
67 VectorType **points,
69 typename VectorType::Scalar tolerance)
75 typename VectorType::Scalar error = (result.coeffs() - original.coeffs()).norm() / original.coeffs().norm();