The general norm funtion is to compute largest singular value for vector.
double ocmath_norm( double * pData, uint nSize )
The largest singular value in vector. But if nSize < 1, return NANUM
EX1
int ocmath_norm_ex1() { vector x(10); x.Data(1,10);//Generate data UINT nSize = x.GetSize();//get the size of data double svd = ocmath_norm(x, nSize); printf("The largest svd is %g\n",svd); return 1; }
ocmath_norm2
origin.h