Home
last modified time | relevance | path

Searched refs:subMatrix (Results 1 – 10 of 10) sorted by relevance

/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DRealMatrixImpl.java316 public void setSubMatrix(final double[][] subMatrix, final int row, final int column) in setSubMatrix() argument
329 final int nRows = subMatrix.length; in setSubMatrix()
334 final int nCols = subMatrix[0].length; in setSubMatrix()
338 data = new double[subMatrix.length][nCols]; in setSubMatrix()
340 if (subMatrix[i].length != nCols) { in setSubMatrix()
343 nCols, subMatrix[i].length); in setSubMatrix()
345 System.arraycopy(subMatrix[i], 0, data[i + row], column, nCols); in setSubMatrix()
348 super.setSubMatrix(subMatrix, row, column); in setSubMatrix()
DArray2DRowRealMatrix.java315 public void setSubMatrix(final double[][] subMatrix, final int row, final int column) in setSubMatrix() argument
326 final int nRows = subMatrix.length; in setSubMatrix()
332 final int nCols = subMatrix[0].length; in setSubMatrix()
337 data = new double[subMatrix.length][nCols]; in setSubMatrix()
339 if (subMatrix[i].length != nCols) { in setSubMatrix()
341 LocalizedFormats.DIFFERENT_ROWS_LENGTHS, nCols, subMatrix[i].length); in setSubMatrix()
343 System.arraycopy(subMatrix[i], 0, data[i + row], column, nCols); in setSubMatrix()
346 super.setSubMatrix(subMatrix, row, column); in setSubMatrix()
DAbstractRealMatrix.java267 final RealMatrix subMatrix =
271 subMatrix.setEntry(i - startRow, j - startColumn, getEntry(i, j));
275 return subMatrix;
287 final RealMatrix subMatrix =
289 subMatrix.walkInOptimizedOrder(new DefaultRealMatrixChangingVisitor() {
299 return subMatrix;
373 public void setSubMatrix(final double[][] subMatrix, final int row, final int column)
376 final int nRows = subMatrix.length;
381 final int nCols = subMatrix[0].length;
387 if (subMatrix[r].length != nCols) {
[all …]
DArray2DRowFieldMatrix.java307 public void setSubMatrix(final T[][] subMatrix, final int row, final int column) in setSubMatrix() argument
318 final int nRows = subMatrix.length; in setSubMatrix()
324 final int nCols = subMatrix[0].length; in setSubMatrix()
329 data = buildArray(getField(), subMatrix.length, nCols); in setSubMatrix()
331 if (subMatrix[i].length != nCols) { in setSubMatrix()
333 LocalizedFormats.DIFFERENT_ROWS_LENGTHS, nCols, subMatrix[i].length); in setSubMatrix()
335 System.arraycopy(subMatrix[i], 0, data[i + row], column, nCols); in setSubMatrix()
338 super.setSubMatrix(subMatrix, row, column); in setSubMatrix()
DAbstractFieldMatrix.java293 final FieldMatrix<T> subMatrix = in getSubMatrix() local
297 subMatrix.setEntry(i - startRow, j - startColumn, getEntry(i, j)); in getSubMatrix()
301 return subMatrix; in getSubMatrix()
313 final FieldMatrix<T> subMatrix = in getSubMatrix() local
315 subMatrix.walkInOptimizedOrder(new DefaultFieldMatrixChangingVisitor<T>(field.getZero()) { in getSubMatrix()
325 return subMatrix; in getSubMatrix()
399 public void setSubMatrix(final T[][] subMatrix, final int row, final int column) in setSubMatrix() argument
402 final int nRows = subMatrix.length; in setSubMatrix()
407 final int nCols = subMatrix[0].length; in setSubMatrix()
413 if (subMatrix[r].length != nCols) { in setSubMatrix()
[all …]
DBigMatrixImpl.java700 public void setSubMatrix(BigDecimal[][] subMatrix, int row, int column) in setSubMatrix() argument
703 final int nRows = subMatrix.length; in setSubMatrix()
708 final int nCols = subMatrix[0].length; in setSubMatrix()
714 if (subMatrix[r].length != nCols) { in setSubMatrix()
717 nCols, subMatrix[r].length); in setSubMatrix()
733 System.arraycopy(subMatrix, 0, data, 0, subMatrix.length); in setSubMatrix()
741 System.arraycopy(subMatrix[i], 0, data[row + i], column, nCols); in setSubMatrix()
DRealMatrix.java214 void setSubMatrix(double[][] subMatrix, int row, int column) in setSubMatrix() argument
DFieldMatrix.java207 void setSubMatrix(T[][] subMatrix, int row, int column) in setSubMatrix() argument
DBlockRealMatrix.java835 public void setSubMatrix(final double[][] subMatrix, final int row, final int column) in setSubMatrix() argument
839 final int refLength = subMatrix[0].length; in setSubMatrix()
843 final int endRow = row + subMatrix.length - 1; in setSubMatrix()
846 for (final double[] subRow : subMatrix) { in setSubMatrix()
877 System.arraycopy(subMatrix[i - row], jStart - column, in setSubMatrix()
DBlockFieldMatrix.java809 public void setSubMatrix(final T[][] subMatrix, final int row, final int column) in setSubMatrix() argument
813 final int refLength = subMatrix[0].length; in setSubMatrix()
817 final int endRow = row + subMatrix.length - 1; in setSubMatrix()
820 for (final T[] subRow : subMatrix) { in setSubMatrix()
851 System.arraycopy(subMatrix[i - row], jStart - column, in setSubMatrix()