/** * Creates a new matrix initialized to the specified values. * The length of the given array must be 4 and the values in the same order than the above constructor. * * @param elements elements of the matrix. Column indices vary fastest. * @throws IllegalArgumentException if the given array does not have the expected length. * * @see #setElements(double[]) * @see Matrices#create(int, int, double[]) */ public Matrix2(final double[] elements) throws IllegalArgumentException { setElements(elements); }
/** * Creates a new matrix initialized to the specified values. * The length of the given array must be 4 and the values in the same order than the above constructor. * * @param elements elements of the matrix. Column indices vary fastest. * @throws IllegalArgumentException if the given array does not have the expected length. * * @see #setElements(double[]) * @see Matrices#create(int, int, double[]) */ public Matrix2(final double[] elements) throws IllegalArgumentException { setElements(elements); }