javamatrixjama

How do i print the columns of a JAMA matrix?


I use the JAMA.matrix package..how do i print the columns of a matrix


Solution

  • You can invoke the getArray() method on the matrix to get a double[][] representing the elements.
    Then you can loop through that array to display whatever columns/rows/elements you want.

    See the API for more methods.