/** * Sets single real array element. * * @param value - element value * @param index - column-packed vector index */ public void setReal(T value, int index) { set( real, value, index ); } /**
/** * Sets single real array element. * * @param value - element value * @param index - column-packed vector index */ public void setReal(T value, int index) { set( real, value, index ); } /**
/** * <a href="http://math.nist.gov/javanumerics/jama/">Jama</a> [math.nist.gov] style: * construct a 2D real matrix from a one-dimensional packed array * * @param name - array name * @param type - array type * @param vals - One-dimensional array of doubles, packed by columns (ala Fortran). * @param m - Number of rows */ public MLNumericArray(String name, int type, T[] vals, int m) { this(name, new int[]{m, vals.length / m}, type, 0); //fill the array for (int i = 0; i < vals.length; i++) { set(vals[i], i); } }
/** * <a href="http://math.nist.gov/javanumerics/jama/">Jama</a> [math.nist.gov] style: * construct a 2D real matrix from a one-dimensional packed array * * @param name - array name * @param type - array type * @param vals - One-dimensional array of doubles, packed by columns (ala Fortran). * @param m - Number of rows */ public MLNumericArray(String name, int type, T[] vals, int m) { this(name, new int[]{m, vals.length / m}, type, 0); //fill the array for (int i = 0; i < vals.length; i++) { set(vals[i], i); } }
/** * <a href="http://math.nist.gov/javanumerics/jama/">Jama</a> [math.nist.gov] style: * construct a 2D real matrix from a one-dimensional packed array * * @param name - array name * @param type - array type * @param vals - One-dimensional array of doubles, packed by columns (ala Fortran). * @param m - Number of rows */ public MLNumericArray(String name, int type, T[] vals, int m ) { this(name, new int[] { m, vals.length/m }, type, 0); //fill the array for ( int i = 0; i < vals.length; i++ ) { set( vals[i], i ); } } /**
/** * <a href="http://math.nist.gov/javanumerics/jama/">Jama</a> [math.nist.gov] style: * construct a 2D real matrix from a one-dimensional packed array * * @param name - array name * @param type - array type * @param vals - One-dimensional array of doubles, packed by columns (ala Fortran). * @param m - Number of rows */ public MLNumericArray(String name, int type, T[] vals, int m ) { this(name, new int[] { m, vals.length/m }, type, 0); //fill the array for ( int i = 0; i < vals.length; i++ ) { set( vals[i], i ); } } /**
/** * <a href="http://math.nist.gov/javanumerics/jama/">Jama</a> [math.nist.gov] style: * construct a 2D real matrix from a one-dimensional packed array * * @param name - array name * @param type - array type * @param vals - One-dimensional array of doubles, packed by columns (ala Fortran). * @param m - Number of rows */ public MLNumericArray(String name, int type, T[] vals, int m ) { this(name, new int[] { m, vals.length/m }, type, 0); //fill the array for ( int i = 0; i < vals.length; i++ ) { set( vals[i], i ); } } /**
/** Sets the value at the given index for non-complex arrays. */ public void set(T value, int... indices) { set(value, getIndex(indices)); }
/** Sets the value at the given index for non-complex arrays. */ public void set(T value, int m, int n) { set(value, getIndex(m, n)); }
/** Sets the value at the given index for non-complex arrays. */ public void set(T value, int m, int n) { set(value, getIndex(m, n)); }
/** Sets the value at the given index for non-complex arrays. */ public void set(T value, int... indices) { set(value, getIndex(indices)); }
/** * Sets single real array element. * * @param value - element value * @param index - column-packed vector index */ public void setImaginary(T value, int index) { if ( isComplex() ) { set(imaginary, value, index); } } /**
/** * Sets single real array element. * * @param value - element value * @param index - column-packed vector index */ public void setImaginary(T value, int index) { if ( isComplex() ) { set(imaginary, value, index); } } /**