|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Matrix
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface no.uib.cipr.matrix.Matrix |
|---|
no.uib.cipr.matrix.Matrix.Norm |
| Method Summary | |
|---|---|
Matrix |
add(double a)
|
AGDenseMatrix |
append(double d)
append double value. |
AGDenseMatrix |
append(Matrix m)
Append the matrix as new rows onto the existing matrix. |
AGDenseMatrix |
append(no.uib.cipr.matrix.Vector m)
Append the matrix as new rows onto the existing matrix. |
double |
asScalar()
|
no.uib.cipr.matrix.Vector |
asVector()
return a copy of the data as a vector. |
no.uib.cipr.matrix.Vector |
asVector(int istart)
return a copy of the data as a vector. |
no.uib.cipr.matrix.Vector |
asVector(int istart,
int idend)
return a copy of the data as a vector. |
Matrix |
delCol(int k)
Delete column k from the matrix. |
Matrix |
delRow(int k)
|
double |
det()
Return the determinant of the matrix. |
Matrix |
divide(Matrix b,
Matrix c)
C= A/B where the division is elementwise. |
Matrix |
inv()
Computes the inverse of the matrix. |
Matrix |
ones()
|
Matrix |
pow(double i)
Return a matrix with elements raised to the power. |
Matrix |
reshape(int irow,
int icol)
Reshapes the matrix to have the new size. |
Matrix |
setColumn(int idx,
Matrix v)
Set a complete column in the matrix to the value given. |
Matrix |
setColumn(int idx,
no.uib.cipr.matrix.Vector v)
Set a complete column in the matrix to the value given. |
Matrix |
setRow(int k,
Matrix m)
|
Matrix |
setRow(int k,
no.uib.cipr.matrix.Vector v)
|
Matrix |
slice(int rowstart,
int rowend,
int colstart,
int colend)
Deprecated. too complex - use slicev(int, boolean) or sliceCol(int, int) instead. |
no.uib.cipr.matrix.Vector |
sliceCol(int col)
Returns a new Matrix consisting of only the specified column. |
Matrix |
sliceCol(int colstart,
int ncols)
Returns a new Matrix consisting of only the specified columns. |
no.uib.cipr.matrix.Vector |
sliceRow(int idx)
Returns a Vector of the row. |
Matrix |
sliceRowM(int k)
Returns a matrix consisting of only the row. |
no.uib.cipr.matrix.Vector |
slicev(int idx,
boolean dorow)
Deprecated. use sliceRow or SliceCol instead. |
no.uib.cipr.matrix.Vector |
sum(int dim)
Return the sum of a matrix along a dimension. |
double |
trace()
Produce the trace of the matrix. |
| Methods inherited from interface no.uib.cipr.matrix.Matrix |
|---|
add, add, add, copy, get, isSquare, mult, mult, mult, mult, multAdd, multAdd, multAdd, multAdd, norm, numColumns, numRows, rank1, rank1, rank1, rank1, rank1, rank1, rank2, rank2, rank2, rank2, scale, set, set, set, solve, solve, transABmult, transABmult, transABmultAdd, transABmultAdd, transAmult, transAmult, transAmultAdd, transAmultAdd, transBmult, transBmult, transBmultAdd, transBmultAdd, transMult, transMult, transMultAdd, transMultAdd, transpose, transpose, transRank1, transRank1, transRank2, transRank2, transSolve, transSolve, zero |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
Matrix slice(int rowstart,
int rowend,
int colstart,
int colend)
slicev(int, boolean) or sliceCol(int, int) instead.
rowstart - rowend - colstart - colend -
no.uib.cipr.matrix.Vector sum(int dim)
dim - the dimension along which to sum 1=sum the columns 2 = sum the rows
Matrix pow(double i)
i -
no.uib.cipr.matrix.Vector slicev(int idx,
boolean dorow)
idx - the 0 based index of the row or column to return;dorow - if true return a row - if false return a column.
no.uib.cipr.matrix.Vector sliceRow(int idx)
idx -
Matrix sliceRowM(int k)
k -
Matrix sliceCol(int colstart,
int ncols)
colstart - ncols -
no.uib.cipr.matrix.Vector sliceCol(int col)
colstart - ncols -
Matrix ones()
Matrix reshape(int irow,
int icol)
irow -
no.uib.cipr.matrix.Vector asVector()
no.uib.cipr.matrix.Vector asVector(int istart,
int idend)
no.uib.cipr.matrix.Vector asVector(int istart)
istart -
double det()
double trace()
Matrix inv()
Matrix divide(Matrix b,
Matrix c)
b - c -
Matrix add(double a)
Matrix setColumn(int idx,
no.uib.cipr.matrix.Vector v)
idx - v -
Matrix setColumn(int idx,
Matrix v)
idx - v -
AGDenseMatrix append(Matrix m)
m -
AGDenseMatrix append(no.uib.cipr.matrix.Vector m)
m -
double asScalar()
AGDenseMatrix append(double d)
d -
Matrix setRow(int k,
Matrix m)
Matrix setRow(int k,
no.uib.cipr.matrix.Vector v)
Matrix delCol(int k)
k -
Matrix delRow(int k)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||