Class MatrixOperations

java.lang.Object
jgpml.covariancefunctions.MatrixOperations

public class MatrixOperations extends Object
Some useful operations defined over Matrices
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Jama.Matrix
    addValue(Jama.Matrix A, double val)
    Adds a value to each elemnts of the Matrix
    static Jama.Matrix
    asin(Jama.Matrix A)
    Computes the arcsin of the input Matrix (element by element)
    static Jama.Matrix
    diag(Jama.Matrix A)
    If the argument is a row or column Matrix it returns a new diagonal Matrix with the input as diagonal elements.
    static Jama.Matrix
    exp(Jama.Matrix A)
    Computes the exponential of the input Matrix
    static Jama.Matrix
    mean(Jama.Matrix A)
     
    static Jama.Matrix
    sqrt(Jama.Matrix A)
    Computes the square root of the input Matrix (element by element)
    static Jama.Matrix
    std(Jama.Matrix A)
     
    static Jama.Matrix
    sumRows(Jama.Matrix A)
    Sums across the rows of the Matrix and return the result as a single column MAtrix

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MatrixOperations

      public MatrixOperations()
  • Method Details

    • exp

      public static Jama.Matrix exp(Jama.Matrix A)
      Computes the exponential of the input Matrix
      Parameters:
      A - input Matrix
      Returns:
      exp(A) result
    • sumRows

      public static Jama.Matrix sumRows(Jama.Matrix A)
      Sums across the rows of the Matrix and return the result as a single column MAtrix
      Parameters:
      A - input Matrix
      Returns:
      result
    • addValue

      public static Jama.Matrix addValue(Jama.Matrix A, double val)
      Adds a value to each elemnts of the Matrix
      Parameters:
      A - Matrix
      val - value to be added
      Returns:
      result
    • asin

      public static Jama.Matrix asin(Jama.Matrix A)
      Computes the arcsin of the input Matrix (element by element)
      Parameters:
      A - input Matrix
      Returns:
      asin(A) result
    • sqrt

      public static Jama.Matrix sqrt(Jama.Matrix A)
      Computes the square root of the input Matrix (element by element)
      Parameters:
      A - input Matrix
      Returns:
      sqrt(A) result
    • diag

      public static Jama.Matrix diag(Jama.Matrix A)
      If the argument is a row or column Matrix it returns a new diagonal Matrix with the input as diagonal elements. If the argument is a Matrix it returns the diagonal elements as a single column Matrix Is a clone of the Matlab's function diag(A)
      Parameters:
      A - input Matrix
      Returns:
      diag(A) result
    • mean

      public static Jama.Matrix mean(Jama.Matrix A)
    • std

      public static Jama.Matrix std(Jama.Matrix A)