frobenius_norm(A)
return Frobenius-Norm of Matrix A.
Details: mtl::matrix::frobenius_norm
For example:
#include <iostream> #include <boost/numeric/mtl/mtl.hpp> int main(int, char**) { using namespace mtl; const unsigned n= 10; dense2D<float, matrix::parameters<col_major> > B(n, n); matrix::hessian_setup(B, 1.0); std::cout << "one_norm(B) is " << one_norm(B)<< "\n"; std::cout << "infinity_norm(B) is " << infinity_norm(B)<< "\n"; std::cout << "frobenius_norm(B) is " << frobenius_norm(B)<< "\n"; return 0; }
Return to Overview Table of Content
frobenius_norm(A) -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine
-- Gen. with
rev. 7542
on Sat Aug 11 2012 by doxygen 1.7.6.1 -- © 2010 by SimuNova UG.