1 16 17 package org.apache.commons.math.linear; 18 19 import java.math.BigDecimal ; 20 21 30 public interface BigMatrix { 31 32 37 BigMatrix copy(); 38 39 46 BigMatrix add(BigMatrix m) throws IllegalArgumentException ; 47 48 55 BigMatrix subtract(BigMatrix m) throws IllegalArgumentException ; 56 57 63 BigMatrix scalarAdd(BigDecimal d); 64 65 71 BigMatrix scalarMultiply(BigDecimal d); 72 73 81 BigMatrix multiply(BigMatrix m) throws IllegalArgumentException ; 82 83 90 public BigMatrix preMultiply(BigMatrix m) throws IllegalArgumentException ; 91 92 97 BigDecimal [][] getData(); 98 99 104 double [][] getDataAsDoubleArray(); 105 106 110 int getRoundingMode(); 111 112 118 BigDecimal getNorm(); 119 120 132 BigMatrix getSubMatrix(int startRow, int endRow, int startColumn, 133 int endColumn) throws MatrixIndexException; 134 135 145 BigMatrix getSubMatrix(int[] selectedRows, int[] selectedColumns) 146 throws MatrixIndexException; 147 148 156 BigMatrix getRowMatrix(int row) throws MatrixIndexException; 157 158 166 BigMatrix getColumnMatrix(int column) throws MatrixIndexException; 167 168 178 BigDecimal [] getRow(int row) throws MatrixIndexException; 179 180 191 double [] getRowAsDoubleArray(int row) throws MatrixIndexException; 192 193 203 BigDecimal [] getColumn(int col) throws MatrixIndexException; 204 205 216 double [] getColumnAsDoubleArray(int col) throws MatrixIndexException; 217 218 233 BigDecimal getEntry(int row, int column) throws MatrixIndexException; 234 235 250 double getEntryAsDouble(int row, int column) throws MatrixIndexException; 251 252 257 BigMatrix transpose(); 258 259 266 BigMatrix inverse() throws InvalidMatrixException; 267 268 275 BigDecimal getDeterminant() throws InvalidMatrixException; 276 277 281 boolean isSquare(); 282 283 287 boolean isSingular(); 288 289 294 int getRowDimension(); 295 296 301 int getColumnDimension(); 302 303 309 BigDecimal getTrace(); 310 311 318 BigDecimal [] operate(BigDecimal [] v) throws IllegalArgumentException ; 319 320 327 BigDecimal [] preMultiply(BigDecimal [] v) throws IllegalArgumentException ; 328 329 338 BigDecimal [] solve(BigDecimal [] b) throws IllegalArgumentException , InvalidMatrixException; 339 340 351 BigMatrix solve(BigMatrix b) throws IllegalArgumentException , InvalidMatrixException; 352 } 353 354 | Popular Tags |