Difference between revisions of "Cheap norm.m"
m (Correct function page syntax from current Spinach source) |
m (Update function page text from current Spinach source) |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:cheap_norm.m}} __NOTOC__ | {{DISPLAYTITLE:cheap_norm.m}} __NOTOC__ | ||
| − | The cheapest | + | |
| + | 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== | ==Syntax== | ||
| Line 9: | Line 10: | ||
==Arguments== | ==Arguments== | ||
| − | 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 | ||
| + | estimator, defaults to 1 | ||
| + | |||
| + | itmax - optional maximum number of estimator iterations, | ||
| + | defaults to 5 | ||
==Outputs== | ==Outputs== | ||
| − | + | ||
| − | + | n - infinity-norm for GPU arrays, 1-norm for CPU arrays, | |
| + | and a lower-bound 1-norm estimate for polyadics | ||
==Notes== | ==Notes== | ||
| − | + | ||
| − | + | Some norms are vastly more expensive than others; this function uses the cheapest ones available. | |
==See also== | ==See also== | ||
Revision as of 14:19, 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