public void setDouble(double value, long row, long column) { matrix.setQuick((int) row, (int) column, value); }
public void setDouble(double value, int row, int column) { matrix.setQuick(row, column, value); }
public void setDouble(double value, long row, long column) { matrix.setQuick((int) row, (int) column, value); }
public void setDouble(double value, int row, int column) { matrix.setQuick(row, column, value); }
public void run() { double[] tmp; for (int r = firstRow; r < lastRow; r++) { for (int c = 0; c < columns; c++) { tmp = getQuick(r, c); Im.setQuick(r, c, tmp[1]); } } } });
public void run() { double[] tmp; for (int r = firstRow; r < lastRow; r++) { for (int c = 0; c < columns; c++) { tmp = getQuick(r, c); R.setQuick(r, c, tmp[0]); } } } });
public void run() { double[] tmp; for (int r = firstRow; r < lastRow; r++) { for (int c = 0; c < columns; c++) { tmp = getQuick(r, c); R.setQuick(r, c, tmp[0]); } } } });
public void run() { double[] tmp; for (int r = firstRow; r < lastRow; r++) { for (int c = 0; c < columns; c++) { tmp = getQuick(r, c); Im.setQuick(r, c, tmp[1]); } } } });
public void run() { double[] tmp; for (int r = firstRow; r < lastRow; r++) { for (int c = 0; c < columns; c++) { tmp = getQuick(r, c); R.setQuick(r, c, tmp[0]); } } } });
public void run() { double[] tmp; for (int r = firstRow; r < lastRow; r++) { for (int c = 0; c < columns; c++) { tmp = getQuick(r, c); Im.setQuick(r, c, tmp[1]); } } } });
public double apply(int i, int j, double value) { dense.setQuick(i, j, getQuick(i, j)); return value; } });
public double apply(int i, int j, double value) { dense.setQuick(i, j, getQuick(i, j)); return value; } });
public void run() { double[] tmp; for (int r = firstRow; r < lastRow; r++) { for (int c = 0; c < columns; c++) { tmp = getQuick(r, c); R.setQuick(r, c, tmp[0]); } } } });
public void run() { double[] tmp; for (int r = firstRow; r < lastRow; r++) { for (int c = 0; c < columns; c++) { tmp = getQuick(r, c); Im.setQuick(r, c, tmp[1]); } } } });
public double apply(int i, int j, double value) { dense.setQuick(i, j, getQuick(i, j)); return value; } });
public double apply(int i, int j, double value) { dense.setQuick(i, j, getQuick(i, j)); return value; } });
for (int c = 0; c < columns; c++) { tmp = getQuick(r, c); R.setQuick(r, c, tmp[0]);
for (int c = 0; c < columns; c++) { tmp = getQuick(r, c); Im.setQuick(r, c, tmp[1]);
public ParallelColtDenseDoubleMatrix2D(Matrix source) { super(source.getRowCount(), source.getColumnCount()); if (source instanceof HasRowMajorDoubleArray2D) { final double[][] data = ((HasRowMajorDoubleArray2D) source).getRowMajorDoubleArray2D(); this.matrix = new cern.colt.matrix.tdouble.impl.DenseDoubleMatrix2D(data); } else if (source instanceof DenseDoubleMatrix2D) { this.matrix = new cern.colt.matrix.tdouble.impl.DenseDoubleMatrix2D((int) source.getRowCount(), (int) source.getColumnCount()); final DenseDoubleMatrix2D m2 = (DenseDoubleMatrix2D) source; for (int r = (int) source.getRowCount(); --r >= 0;) { for (int c = (int) source.getColumnCount(); --c >= 0;) { matrix.setQuick(r, c, m2.getDouble(r, c)); } } } else { this.matrix = new cern.colt.matrix.tdouble.impl.DenseDoubleMatrix2D((int) source.getRowCount(), (int) source.getColumnCount()); for (long[] c : source.availableCoordinates()) { setDouble(source.getAsDouble(c), c); } } if (source.getMetaData() != null) { setMetaData(source.getMetaData().clone()); } }
public ParallelColtDenseDoubleMatrix2D(Matrix source) { super(source.getRowCount(), source.getColumnCount()); if (source instanceof HasRowMajorDoubleArray2D) { final double[][] data = ((HasRowMajorDoubleArray2D) source).getRowMajorDoubleArray2D(); this.matrix = new cern.colt.matrix.tdouble.impl.DenseDoubleMatrix2D(data); } else if (source instanceof DenseDoubleMatrix2D) { this.matrix = new cern.colt.matrix.tdouble.impl.DenseDoubleMatrix2D((int) source.getRowCount(), (int) source.getColumnCount()); final DenseDoubleMatrix2D m2 = (DenseDoubleMatrix2D) source; for (int r = (int) source.getRowCount(); --r >= 0;) { for (int c = (int) source.getColumnCount(); --c >= 0;) { matrix.setQuick(r, c, m2.getDouble(r, c)); } } } else { this.matrix = new cern.colt.matrix.tdouble.impl.DenseDoubleMatrix2D((int) source.getRowCount(), (int) source.getColumnCount()); for (long[] c : source.availableCoordinates()) { setDouble(source.getAsDouble(c), c); } } if (source.getMetaData() != null) { setMetaData(source.getMetaData().clone()); } }