Class RealSparseNorms

java.lang.Object
org.flag4j.linalg.ops.sparse.coo.real.RealSparseNorms

public final class RealSparseNorms extends Object
This class contains low level implementations of norms for tensors, matrices and vector.
  • Method Details

    • matrixNormL2

      public static double matrixNormL2(CooMatrix src)
      Computes the L2 norm of a matrix.
      Parameters:
      src - Source matrix to compute norm of.
      Returns:
      The L2 of the src matrix.
    • matrixNormLp

      public static double matrixNormLp(CooMatrix src, double p)
      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

      public static double matrixNormLpq(CooMatrix src, double p, double q)
      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.