Add support for sparse blueNorm

This commit is contained in:
Desire NUENTSA
2013-01-11 17:27:12 +01:00
parent 91b3b3aaab
commit 0f94e96342
3 changed files with 106 additions and 88 deletions

View File

@@ -90,6 +90,12 @@ SparseMatrixBase<Derived>::norm() const
return sqrt(squaredNorm());
}
template<typename Derived>
inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
SparseMatrixBase<Derived>::blueNorm() const
{
return internal::blueNorm_impl(*this);
}
} // end namespace Eigen
#endif // EIGEN_SPARSE_DOT_H