Class RealSparseNorms
java.lang.Object
org.flag4j.linalg.ops.sparse.coo.real.RealSparseNorms
This class contains low level implementations of norms for tensors, matrices and vector.
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublematrixNormL2(CooMatrix src) Computes the L2 norm of a matrix.static doublematrixNormLp(CooMatrix src, double p) Computes the Lp norm of a matrix.static doublematrixNormLpq(CooMatrix src, double p, double q) Computes the Lp, q norm of a matrix.
-
Method Details
-
matrixNormL2
Computes the L2 norm of a matrix.- Parameters:
src- Source matrix to compute norm of.- Returns:
- The L2 of the
srcmatrix.
-
matrixNormLp
Computes the Lp norm of a matrix.- Parameters:
src- Source matrix to compute norm of.p- Parameter for Lp norm- Returns:
- The Lp of the
srcmatrix.
-
matrixNormLpq
Computes the Lp, q norm of a matrix.- Parameters:
src- Source matrix to compute norm of.p- First parameter for Lp, q norm- Returns:
- The Lp, q of the
srcmatrix.
-