1 16 17 package org.apache.commons.math.linear; 18 19 27 public interface RealMatrix { 28 33 RealMatrix copy(); 34 35 42 RealMatrix add(RealMatrix m) throws IllegalArgumentException ; 43 44 51 RealMatrix subtract(RealMatrix m) throws IllegalArgumentException ; 52 53 59 RealMatrix scalarAdd(double d); 60 61 67 RealMatrix scalarMultiply(double d); 68 69 77 RealMatrix multiply(RealMatrix m) throws IllegalArgumentException ; 78 79 86 public RealMatrix preMultiply(RealMatrix m) throws IllegalArgumentException ; 87 88 93 double[][] getData(); 94 95 101 double getNorm(); 102 103 115 RealMatrix getSubMatrix(int startRow, int endRow, int startColumn, 116 int endColumn) throws MatrixIndexException; 117 118 128 RealMatrix getSubMatrix(int[] selectedRows, int[] selectedColumns) 129 throws MatrixIndexException; 130 131 139 RealMatrix getRowMatrix(int row) throws MatrixIndexException; 140 141 149 RealMatrix getColumnMatrix(int column) throws MatrixIndexException; 150 151 161 double[] getRow(int row) throws MatrixIndexException; 162 163 173 double[] getColumn(int col) throws MatrixIndexException; 174 175 190 double getEntry(int row, int column) throws MatrixIndexException; 191 192 197 RealMatrix transpose(); 198 199 205 RealMatrix inverse() throws InvalidMatrixException; 206 207 212 double getDeterminant(); 213 214 218 boolean isSquare(); 219 220 224 boolean isSingular(); 225 226 231 int getRowDimension(); 232 233 238 int getColumnDimension(); 239 240 246 double getTrace(); 247 248 255 double[] operate(double[] v) throws IllegalArgumentException ; 256 257 264 double[] preMultiply(double[] v) throws IllegalArgumentException ; 265 266 275 double[] solve(double[] b) throws IllegalArgumentException , InvalidMatrixException; 276 277 288 RealMatrix solve(RealMatrix b) throws IllegalArgumentException , InvalidMatrixException; 289 } 290 291 | Popular Tags |