Searched defs:lpNorm (Results 1 - 3 of 3) sorted by relevance
/external/eigen/test/eigen2/ |
H A D | eigen2_array.cpp | 107 template<typename VectorType> void lpNorm(const VectorType& v) function 111 VERIFY_IS_APPROX(u.template lpNorm<Infinity>(), u.cwise().abs().maxCoeff()); 112 VERIFY_IS_APPROX(u.template lpNorm<1>(), u.cwise().abs().sum()); 113 VERIFY_IS_APPROX(u.template lpNorm<2>(), ei_sqrt(u.cwise().abs().cwise().square().sum())); 114 VERIFY_IS_APPROX(ei_pow(u.template lpNorm<5>(), typename VectorType::RealScalar(5)), u.cwise().abs().cwise().pow(5).sum()); 135 CALL_SUBTEST_1( lpNorm(Matrix<float, 1, 1>()) ); 136 CALL_SUBTEST_2( lpNorm(Vector2f()) ); 137 CALL_SUBTEST_3( lpNorm(Vector3d()) ); 138 CALL_SUBTEST_4( lpNorm(Vector4f()) ); 139 CALL_SUBTEST_5( lpNorm(VectorX [all...] |
/external/eigen/Eigen/src/Core/ |
H A D | Dot.h | 212 MatrixBase<Derived>::lpNorm() const function in class:Eigen::MatrixBase
|
/external/eigen/test/ |
H A D | array_for_matrix.cpp | 133 template<typename VectorType> void lpNorm(const VectorType& v) function 138 VERIFY_IS_APPROX(u.template lpNorm<Infinity>(), u.cwiseAbs().maxCoeff()); 139 VERIFY_IS_APPROX(u.template lpNorm<1>(), u.cwiseAbs().sum()); 140 VERIFY_IS_APPROX(u.template lpNorm<2>(), sqrt(u.array().abs().square().sum())); 141 VERIFY_IS_APPROX(numext::pow(u.template lpNorm<5>(), typename VectorType::RealScalar(5)), u.array().abs().pow(5).sum()); 240 CALL_SUBTEST_1( lpNorm(Matrix<float, 1, 1>()) ); 241 CALL_SUBTEST_2( lpNorm(Vector2f()) ); 242 CALL_SUBTEST_7( lpNorm(Vector3d()) ); 243 CALL_SUBTEST_8( lpNorm(Vector4f()) ); 244 CALL_SUBTEST_5( lpNorm(VectorX [all...] |
Completed in 256 milliseconds