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