SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.matrix.doubles.matrixtype.dense
Class DenseMatrixUtils

java.lang.Object
  extended by com.numericalmethod.suanshu.matrix.doubles.matrixtype.dense.DenseMatrixUtils

public class DenseMatrixUtils
extends java.lang.Object


Constructor Summary
DenseMatrixUtils()
           
 
Method Summary
static double[] to1DArray(DenseMatrix A)
          Get all matrix entries in the form of a 1D double[] array.
static double[][] to2DArray(DenseMatrix A)
          Get all matrix entries in the form of a 2D double[][] array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DenseMatrixUtils

public DenseMatrixUtils()
Method Detail

to1DArray

public static double[] to1DArray(DenseMatrix A)
Get all matrix entries in the form of a 1D double[] array.

Returns:
all matrix entries as a double[] which is an independent copy

to2DArray

public static double[][] to2DArray(DenseMatrix A)
Get all matrix entries in the form of a 2D double[][] array.

Returns:
all matrix entries as a double[][] which is an independent copy

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.