public static DoubleMatrix getInstance(int rows, double... values)
    {
        if (rows < 1)
        {
            throw new IllegalArgumentException("rows");
        }
        if (values.length % rows != 0)
        {
            throw new IllegalArgumentException("not full rows");
        }
        return new DoubleMatrix(rows, Arrays.copyOf(values, values.length));
    }
public static DoubleMatrix getInstance ( int rows , double ... values ) { if ( rows < 1 ) { throw new IllegalArgumentException ( "rows" ) ; } if ( values . length % rows != 0 ) { throw new IllegalArgumentException ( "not full rows" ) ; } return new DoubleMatrix ( rows , Arrays . copyOf ( values , values . length ) ) ; }
Returns new DoubleMatrix initialized to values.
<p>E.g. 2x2 matrix has A00, A01, A10, A11
@param rows Number of rows
@param values Values row by row
@return