Add linfNorm overload for maxNorm
Hi Klaus,
I hope things are going well with you. I really like the additions of the norms (I know this was quite a while back!) but was wondering if you could add an linfNorm
overload for maxNorm
since in a lot of physics and PDE communities it is referred to as the linfNorm
and so from a user perspective it would make code easier to read. Thanks in advance!
Best regards,
Nils
Comments (5)
-
-
-
assigned issue to
-
assigned issue to
-
- changed status to open
-
reporter Hi Klaus!
Thanks for the super fast reply and this and for the great library. We really appreciate it!
Best regards,
Nils
-
- changed status to resolved
Summary
The feature has been implemented, tested, optimized, and documented as required. It is immediately available via cloning the Blaze repository and will be officially released in Blaze 3.6.
linfNorm()
The
linfNorm()
function computes the infinity norm of the given dense or sparse vector or dense or sparse matrix:blaze::DynamicVector<double> a; blaze::CompressedVector<double> b; // ... Resizing and initialization const double linf1 = linfNorm( a ); const double linf2 = linfNorm( b );
blaze::DynamicMatrix<double> A; blaze::CompressedMatrix<double> B; // ... Resizing and initialization const double linf1 = linfNorm( A ); const double linf2 = linfNorm( B );
- Log in to comment
Hi Nils!
That is a request that I can gladly fulfill. With the next push you will get an
linfNorm()
function for dense and sparse vectors and dense and sparse matrices.Best regards,
Klaus!