Next: , Previous: spsum, Up: Function Reference


22.6.0.44 spsumsq

— Loadable Function: y = spsumsq (x,dim)

Sum of squares of elements along dimension dim. If dim is omitted, it defaults to 1 (column-wise sum of squares). This function is equivalent to computing

          spsum (x .* spconj (x), dim)
     

but it uses less memory and avoids calling spconj if x is real.

     
     
See also: spprod, spsum.