|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object no.uib.cipr.matrix.AbstractMatrix no.uib.cipr.matrix.DenseMatrix no.uib.cipr.matrix.AGDenseMatrix
public class AGDenseMatrix
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface no.uib.cipr.matrix.Matrix |
---|
no.uib.cipr.matrix.Matrix.Norm |
Field Summary |
---|
Fields inherited from class no.uib.cipr.matrix.AbstractMatrix |
---|
numColumns, numRows |
Constructor Summary | |
---|---|
AGDenseMatrix()
|
|
AGDenseMatrix(double[][] values)
|
|
AGDenseMatrix(int numRows,
int numColumns)
|
|
AGDenseMatrix(int numRows,
int numColumns,
double[] indata)
Creates new matrix from existing array. |
|
AGDenseMatrix(no.uib.cipr.matrix.Matrix A)
|
|
AGDenseMatrix(Matrix A,
boolean deep)
|
|
AGDenseMatrix(Matrix m,
int ni,
int nj)
Create a new matrix by tiling the input matrix. |
|
AGDenseMatrix(no.uib.cipr.matrix.io.MatrixVectorReader r)
|
|
AGDenseMatrix(no.uib.cipr.matrix.Vector x)
|
|
AGDenseMatrix(no.uib.cipr.matrix.Vector v,
int ni,
int nj)
Create a new matrix by tiling a vector. |
Method Summary | |
---|---|
Matrix |
add(double a)
|
AGDenseMatrix |
append(double d)
append double value. |
AGDenseMatrix |
append(Matrix mm)
Append the matrix as new rows onto the existing matrix. |
AGDenseMatrix |
append(no.uib.cipr.matrix.Vector mm)
Append the matrix as new rows onto the existing matrix. |
void |
appendCol(AGDenseMatrix r)
|
double |
asScalar()
|
no.uib.cipr.matrix.DenseVector |
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.DenseVector |
asVector(int istart,
int iend)
return a copy of the data as a vector. |
Matrix |
delCol(int k)
Delete column k from the matrix. |
Matrix |
delRow(int del)
|
double |
det()
Return the determinant. |
Matrix |
divide(Matrix b,
Matrix c)
C= A/B where the division is elementwise. |
static Matrix |
identity(int ncentres)
Return a square identity matrix. |
int |
insert(no.uib.cipr.matrix.DenseMatrix m)
|
int |
insert(no.uib.cipr.matrix.DenseMatrix m,
int position)
|
int |
insert(no.uib.cipr.matrix.DenseVector vector,
int inpos)
|
Matrix |
inv()
Computes the inverse of the matrix. |
Matrix |
ones()
|
Matrix |
pow(double i)
Return a matrix with elements raised to the power. |
static AGDenseMatrix |
repeatColumn(no.uib.cipr.matrix.Vector v,
int n)
|
static AGDenseMatrix |
repeatRow(no.uib.cipr.matrix.Vector v,
int n)
|
AGDenseMatrix |
reshape(int irow,
int icol)
Reshapes the matrix to have the new size. |
AGDenseMatrix |
selectCols(int[] cols,
int ncols)
|
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)
slice an array - indices are 0 based. |
no.uib.cipr.matrix.Vector |
sliceCol(int colstart)
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. |
Matrix |
slicem(int idx,
boolean dorow)
|
no.uib.cipr.matrix.Vector |
sliceRow(int idx)
returns a row as a vector. |
Matrix |
sliceRowM(int k)
returns a row as a matrix. |
no.uib.cipr.matrix.Vector |
slicev(int idx,
boolean dorow)
Return a single column or row of the matrix |
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 class no.uib.cipr.matrix.DenseMatrix |
---|
copy, multAdd, multAdd, rank1, solve, solve, transABmultAdd, transAmultAdd, transBmultAdd, transMultAdd, transSolve, transSolve |
Methods inherited from class no.uib.cipr.matrix.AbstractMatrix |
---|
add, add, check, checkMultAdd, checkMultAdd, checkRank1, checkRank1, checkRank2, checkRank2, checkSize, checkSolve, checkSolve, checkTransABmultAdd, checkTransAmultAdd, checkTransBmultAdd, checkTransMultAdd, checkTranspose, checkTranspose, checkTransRank1, checkTransRank2, isSquare, iterator, max, max, mult, mult, mult, mult, multAdd, multAdd, norm, norm1, normF, normInf, numColumns, numRows, rank1, rank1, rank1, rank1, rank1, rank2, rank2, rank2, rank2, scale, set, toString, transABmult, transABmult, transABmultAdd, transAmult, transAmult, transAmultAdd, transBmult, transBmult, transBmultAdd, transMult, transMult, transMultAdd, transpose, transpose, transRank1, transRank1, transRank2, transRank2 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
Constructor Detail |
---|
public AGDenseMatrix(no.uib.cipr.matrix.io.MatrixVectorReader r) throws java.io.IOException
r
-
java.io.IOException
public AGDenseMatrix(no.uib.cipr.matrix.Vector x)
x
- public AGDenseMatrix(double[][] values)
values
- public AGDenseMatrix()
public AGDenseMatrix(int numRows, int numColumns)
numRows
- numColumns
- public AGDenseMatrix(Matrix A, boolean deep)
A
- deep
- public AGDenseMatrix(no.uib.cipr.matrix.Matrix A)
A
- public AGDenseMatrix(no.uib.cipr.matrix.Vector v, int ni, int nj)
v
- ni
- nj
- public AGDenseMatrix(Matrix m, int ni, int nj)
m
- ni
- nj
- public AGDenseMatrix(int numRows, int numColumns, double[] indata)
numRows
- numColumns
- indata
- Method Detail |
---|
public static AGDenseMatrix repeatColumn(no.uib.cipr.matrix.Vector v, int n)
public static AGDenseMatrix repeatRow(no.uib.cipr.matrix.Vector v, int n)
public Matrix slice(int rowstart, int rowend, int colstart, int colend)
Matrix
public 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.
public Matrix slicem(int idx, boolean dorow)
public no.uib.cipr.matrix.Vector sum(int dim)
Matrix
dim
- the dimension along which to sum 1=sum the columns 2 = sum the rows
public static Matrix identity(int ncentres)
ncentres
-
public Matrix pow(double i)
Matrix
public Matrix sliceCol(int colstart, int ncols)
Matrix
public no.uib.cipr.matrix.Vector sliceCol(int colstart)
Matrix
public Matrix ones()
public AGDenseMatrix reshape(int irow, int icol)
Matrix
public no.uib.cipr.matrix.DenseVector asVector()
Matrix
public no.uib.cipr.matrix.DenseVector asVector(int istart, int iend)
Matrix
public no.uib.cipr.matrix.Vector asVector(int istart)
Matrix
public double det()
Matrix.det()
public double trace()
Matrix
public Matrix inv()
Matrix
public Matrix divide(Matrix b, Matrix c)
b
- c
-
public no.uib.cipr.matrix.Vector sliceRow(int idx)
Matrix.sliceRow(int)
public Matrix add(double a)
public Matrix sliceRowM(int k)
Matrix.sliceRowM(int)
public int insert(no.uib.cipr.matrix.DenseMatrix m)
public int insert(no.uib.cipr.matrix.DenseMatrix m, int position)
public int insert(no.uib.cipr.matrix.DenseVector vector, int inpos)
public AGDenseMatrix append(Matrix mm)
Matrix
public double asScalar()
public AGDenseMatrix append(no.uib.cipr.matrix.Vector mm)
Matrix
public void appendCol(AGDenseMatrix r)
public Matrix setColumn(int idx, no.uib.cipr.matrix.Vector v)
Matrix
public Matrix setColumn(int idx, Matrix v)
Matrix
public AGDenseMatrix append(double d)
Matrix
public Matrix setRow(int k, Matrix m)
public Matrix setRow(int k, no.uib.cipr.matrix.Vector v)
public AGDenseMatrix selectCols(int[] cols, int ncols)
public Matrix delCol(int k)
Matrix
public Matrix delRow(int del)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |