Class RealSparseNorms
java.lang.Object
org.flag4j.operations.sparse.coo.real.RealSparseNorms
This class contains low level implementations of norms for tensors, matrices and vector.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
matrixNormL2
(CooMatrix src) Computes the L2 norm of a matrix.static double
matrixNormLp
(CooMatrix src, double p) Computes the Lp norm of a matrix.static double
matrixNormLpq
(CooMatrix src, double p, double q) Computes the Lp, q norm of a matrix.
-
Constructor Details
-
RealSparseNorms
private RealSparseNorms()
-
-
Method Details
-
matrixNormL2
Computes the L2 norm of a matrix.- Parameters:
src
- Source matrix to compute norm of.- Returns:
- The L2 of the
src
matrix.
-
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
src
matrix.
-
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
src
matrix.
-