19 #include <tensor/tensor.h>
23 double matrix_norminf(
const CTensor &m)
25 assert(m.rank() == 2);
28 size_t c = m.columns();
32 double *aux =
new double[r];
33 CTensor::const_iterator p = m.begin_const();
34 for (
size_t i = 0; i < r; i++, p++) {
37 for (
size_t j = 1; j < c; j++) {
38 for (
size_t i = 0; i < r; i++, p++) {
46 for (
size_t i = 0; i < r; i++) {