/** * Creates a new matrix initialized to the specified values. * The length of the given array must be 1. * * @param elements elements of the matrix. * @throws IllegalArgumentException if the given array does not have the expected length. * * @see #setElements(double[]) * @see Matrices#create(int, int, double[]) */ public Matrix1(final double[] elements) throws IllegalArgumentException { setElements(elements); }
/** * Creates a new matrix initialized to the specified values. * The length of the given array must be 1. * * @param elements elements of the matrix. * @throws IllegalArgumentException if the given array does not have the expected length. * * @see #setElements(double[]) * @see Matrices#create(int, int, double[]) */ public Matrix1(final double[] elements) throws IllegalArgumentException { setElements(elements); }