R/Vnorm.R

Defines functions Vnorm

Documented in Vnorm

Vnorm <-
function(X)
  {
### the norm function in matlab
##  returns the largest singular value of the matrix or vector
##  here we create a function to duplicate this bizare behavior    
    
    return( sqrt(sum(X^2)) )

  }

Try the PEIP package in your browser

Any scripts or data that you put into this service are public.

PEIP documentation built on Aug. 21, 2023, 9:10 a.m.