Difference between revisions of "Cheap norm.m"
(Add NOTOC to Spinach function page header) |
m (Normalise preformatted blank lines in function documentation blocks) |
||
| Line 11: | Line 11: | ||
A - a matrix, or a polyadic representation thereof | A - a matrix, or a polyadic representation thereof | ||
| − | + | ||
t - optional number of probe columns in the polyadic norm | t - optional number of probe columns in the polyadic norm | ||
estimator, defaults to 1 | estimator, defaults to 1 | ||
| − | + | ||
itmax - optional maximum number of estimator iterations, | itmax - optional maximum number of estimator iterations, | ||
defaults to 5 | defaults to 5 | ||
Revision as of 16:40, 5 June 2026
The cheapest norm for various representations of matrices. CUDA stores matrices by rows, Matlab by columns, and polyadic objects can only multiply vectors, in which case Algorithm 2.4 from Higham and Tisseur's paper (https://doi.org/10.1137/S0895479899356080) is used.
Syntax
n=cheap_norm(A,t,itmax)
Arguments
A - a matrix, or a polyadic representation thereof
t - optional number of probe columns in the polyadic norm
estimator, defaults to 1
itmax - optional maximum number of estimator iterations,
defaults to 5
Outputs
n - infinity-norm for GPU arrays, 1-norm for CPU arrays,
and a lower-bound 1-norm estimate for polyadics
Notes
Some norms are vastly more expensive than others; this function uses the cheapest ones available.
See also
clean_up.m, frob_chop.m, hdot.m, mprealloc.m
Version 2.3, authors: Ilya Kuprov