|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<Double>
csli.util.math.matrix.AbstractMatrix
csli.util.math.matrix.ArrayMatrix
public class ArrayMatrix
Matrix implementation as a 2D array.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface csli.util.math.matrix.Matrix |
|---|
Matrix.SingularMatrixException |
| Constructor Summary | |
|---|---|
ArrayMatrix(double[][] data)
Create a Matrix from a 2D array. |
|
ArrayMatrix(int dim)
Create a square matrix of dimension dim, filled with zeros. |
|
ArrayMatrix(int m,
int n)
Create an m x n matrix filled with zeros. |
|
ArrayMatrix(int m,
int n,
double... args)
Create an m x n matrix from data given as arguments. |
|
ArrayMatrix(Matrix M)
Create a new ArrayMatrix by copying the contents of another matrix. |
|
| Method Summary | |
|---|---|
double |
get(int i,
int j)
|
static void |
main(String[] args)
Matrix test. |
int |
numCols()
|
int |
numRows()
|
void |
set(int i,
int j,
double val)
|
| Methods inherited from class csli.util.math.matrix.AbstractMatrix |
|---|
add, addIP, appendRight, cols, equals, fill, getCol, getRow, inverse, isIdentity, isZero, iterator, leftDivide, multiply, multiply, multiplyIP, ref, rows, rref, setCol, setDiag, setRow, size, submatrix, submatrix, subtract, subtractIP, toString, transpose |
| Methods inherited from class java.util.AbstractCollection |
|---|
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
add, addAll, clear, contains, containsAll, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public ArrayMatrix(double[][] data)
data - public ArrayMatrix(int dim)
dim -
public ArrayMatrix(int m,
int n)
m - n -
public ArrayMatrix(int m,
int n,
double... args)
m - n - args - public ArrayMatrix(Matrix M)
M - | Method Detail |
|---|
public double get(int i,
int j)
public void set(int i,
int j,
double val)
set in interface Matrixset in class AbstractMatrixpublic int numRows()
public int numCols()
public static void main(String[] args)
throws Matrix.SingularMatrixException
args -
Matrix.SingularMatrixException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||