Difference between revisions of "Cheap norm.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
(sync with Spinach main f053e432: t/itmax lines per head header, stray blank lines removed)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:cheap_norm.m}} __NOTOC__
 
{{DISPLAYTITLE:cheap_norm.m}} __NOTOC__
−
The cheapest possible 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.1 from Hager's paper (https://doi.org/10.1137/S0895479899356080) is used with Higham's extension to the complex case.
+
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==
  
−
     n=cheap_norm(A)
+
     n=cheap_norm(A,t,itmax)
  
−
==Arguments==
+
==Parameters==
  
−
     A - a matrix, or a polyadic representation thereof
+
     A     - a matrix, or a polyadic representation thereof
 +
 +
    t    - (optional) number of probe columns in the poly-
 +
            adic norm estimator, defaults to 1
 +
 +
    itmax - (optional) maximum number of estimator iterati-
 +
            ons, defaults to 5
  
 
==Outputs==
 
==Outputs==
  
−
      n - infinity-norm for GPU arrays, 1-norm for CPU arrays,
+
    n - infinity-norm for GPU arrays, 1-norm for CPU arrays,
−
          and Hager's upper bound on 1-norm for polyadics
+
        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.
+
 
−
# In very rare cases, Hager's algorithm stagnates. If this happens, drop us a note and we will implement Higham's more recent work.
+
Some norms are vastly more expensive than others; this function uses the cheapest ones available.
  
 
==See also==
 
==See also==
−
[[clean_up.m]], [[frob_chop.m]], [[hdot.m]], [[mprealloc.m]]
+
[[clean_up.m]], [[frob_chop.m]], [[hdot.m]], [[mprealloc.m]], [[acomm.m]], [[arnoldi.m]], [[atranspose.m]], [[aux_mat.m]], [[binpack.m]], [[cheb_coeff.m]], [[dirdiff.m]], [[eigenfields.m]], [[expdrop.m]], [[expmint.m]], [[expmint2.m]], [[fftdiff.m]], [[fourdif.m]], [[fourlap.m]], [[gaussfun.m]], [[herm_spline.m]], [[jacobianest.m]], [[keep_rank.m]], [[krondelta.m]], [[kronm_new.m]], [[logfactorial.m]], [[lorentzcon.m]], [[lorentzfun.m]], [[md5_hash.m]], [[remncomm.m]], [[remtrace.m]], [[rspert.m]], [[rspt_eig.m]], [[snormpdf.m]], [[svd_shrink.m]], [[tikhoind.m]], [[tikhonov.m]], [[trapdiff.m]], [[unit_oper.m]], [[unit_state.m]], [[vvpert.m]], [[Kernel_utilities]]
  
 
''Version 2.3, authors: [[Ilya Kuprov]]''
 
''Version 2.3, authors: [[Ilya Kuprov]]''

Latest revision as of 05:33, 30 August 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)

Parameters

    A     - a matrix, or a polyadic representation thereof

    t     - (optional) number of probe columns in the poly-
            adic norm estimator, defaults to 1

    itmax - (optional) maximum number of estimator iterati-
            ons, 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, acomm.m, arnoldi.m, atranspose.m, aux_mat.m, binpack.m, cheb_coeff.m, dirdiff.m, eigenfields.m, expdrop.m, expmint.m, expmint2.m, fftdiff.m, fourdif.m, fourlap.m, gaussfun.m, herm_spline.m, jacobianest.m, keep_rank.m, krondelta.m, kronm_new.m, logfactorial.m, lorentzcon.m, lorentzfun.m, md5_hash.m, remncomm.m, remtrace.m, rspert.m, rspt_eig.m, snormpdf.m, svd_shrink.m, tikhoind.m, tikhonov.m, trapdiff.m, unit_oper.m, unit_state.m, vvpert.m, Kernel_utilities

Version 2.3, authors: Ilya Kuprov