Class MatrixUtil


  • public final class MatrixUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Jama.Matrix createVector​(java.util.List<java.lang.Double> values)
      converts a list of doubles to a jama - matrix with one column.
      static Jama.Matrix sqrtByElements​(Jama.Matrix matrix)
      creates a new matrix that contains the square-roots of the elements of the input matrix.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createVector

        public static Jama.Matrix createVector​(java.util.List<java.lang.Double> values)
        converts a list of doubles to a jama - matrix with one column.
        Parameters:
        values - the list of values
        Returns:
        a matrix containing the values.
      • sqrtByElements

        public static Jama.Matrix sqrtByElements​(Jama.Matrix matrix)
        creates a new matrix that contains the square-roots of the elements of the input matrix.
        Parameters:
        matrix - the matrix of whose elements to take the input values
        Returns:
        a matrix containing the square-roots of the elements of the input matrix.