Class FrobeniusNormComputer

java.lang.Object
com.irurueta.algebra.NormComputer
com.irurueta.algebra.FrobeniusNormComputer

public class FrobeniusNormComputer extends NormComputer
Class in charge of computing Frobenius norms of vectors and matrices.
  • Constructor Details

    • FrobeniusNormComputer

      public FrobeniusNormComputer()
      Constructor of this class.
  • Method Details

    • getNormType

      public NormType getNormType()
      Returns norm type being used by this class.
      Specified by:
      getNormType in class NormComputer
      Returns:
      Norm type being used by this class.
    • norm

      public static double norm(Matrix m)
      Computes norm of provided matrix.
      Parameters:
      m - matrix being used for norm computation.
      Returns:
      norm of provided matrix.
    • norm

      public static double norm(double[] array, Matrix jacobian) throws WrongSizeException
      Computes norm of provided array and stores the jacobian into provided instance.
      Parameters:
      array - array being used for norm computation.
      jacobian - instance where jacobian will be stored. Must be 1xN, where N is length of array.
      Returns:
      norm of provided vector.
      Throws:
      WrongSizeException - if provided jacobian is not 1xN, where N is length of array.
    • getNorm

      public double getNorm(Matrix m)
      Computes norm of provided matrix.
      Specified by:
      getNorm in class NormComputer
      Parameters:
      m - Matrix being used for norm computation.
      Returns:
      Norm of provided matrix.
    • norm

      public static double norm(double[] array)
      Computes norm of provided array.
      Parameters:
      array - array being used for norm computation.
      Returns:
      norm of provided vector.
    • getNorm

      public double getNorm(double[] array)
      Computes norm of provided array.
      Specified by:
      getNorm in class NormComputer
      Parameters:
      array - Array being used for norm computation.
      Returns:
      Norm of provided vector.