public class JamaMatrix extends FlatField
DataImpl.SyncherRangeCoordinateSystem, RangeCoordinateSystems, RangeUnits, TupleDimensionABS, ACOS, ACOS_DEGREES, ADD, ASIN, ASIN_DEGREES, ATAN, ATAN_DEGREES, ATAN2, ATAN2_DEGREES, CEIL, COS, COS_DEGREES, DEGREES_TO_RADIANS, DEPENDENT, DIVIDE, EXP, FLOOR, INDEPENDENT, INV_ATAN2, INV_ATAN2_DEGREES, INV_DIVIDE, INV_POW, INV_REMAINDER, INV_SUBTRACT, LOG, MAX, MIN, MULTIPLY, NEAREST_NEIGHBOR, NEGATE, NO_ERRORS, NOP, POW, RADIANS_TO_DEGREES, REMAINDER, RINT, ROUND, SIN, SIN_DEGREES, SQRT, SUBTRACT, TAN, TAN_DEGREES, WEIGHTED_AVERAGE| Constructor and Description |
|---|
JamaMatrix(double[][] entries)
Construct a new JamaMatrix from the given matrix entries.
|
JamaMatrix(int rows,
int cols)
Construct a new JamaMatrix from the given matrix dimensions.
|
JamaMatrix(java.lang.Object matrix)
Construct a new JamaMatrix from the given JAMA Matrix.
|
JamaMatrix(java.lang.Object matrix,
CoordinateSystem range_coord_sys,
CoordinateSystem[] range_coord_syses,
Set[] range_sets,
Unit[] units)
Construct a new JamaMatrix from the specified JAMA Matrix,
coordinate systems, range sets and units.
|
JamaMatrix(java.lang.Object matrix,
FunctionType type,
Gridded2DSet domain_set)
Construct a new JamaMatrix from the given JAMA Matrix,
MathType and domain set.
|
JamaMatrix(java.lang.Object matrix,
FunctionType type,
Gridded2DSet domain_set,
CoordinateSystem range_coord_sys,
CoordinateSystem[] range_coord_syses,
Set[] range_sets,
Unit[] units)
Construct a new JamaMatrix from the specified JAMA Matrix, MathType,
domain set, coordinate systems, range sets and units.
|
| Modifier and Type | Method and Description |
|---|---|
JamaMatrix |
arrayLeftDivide(JamaMatrix B)
Element-by-element left division, C = A.
|
JamaMatrix |
arrayLeftDivideEquals(JamaMatrix B)
Element-by-element left division in place, A = A.
|
JamaMatrix |
arrayRightDivide(JamaMatrix B)
Element-by-element right division, C = A.
|
JamaMatrix |
arrayRightDivideEquals(JamaMatrix B)
Element-by-element right division in place, A = A.
|
JamaMatrix |
arrayTimes(JamaMatrix B)
Element-by-element multiplication, C = A.
|
JamaMatrix |
arrayTimesEquals(JamaMatrix B)
Element-by-element multiplication in place, A = A.
|
JamaCholeskyDecomposition |
chol() |
double |
cond()
Matrix condition (2 norm).
|
static JamaMatrix |
convertToMatrix(FlatField field)
Attempt to convert the given VisAD FlatField to a VisAD JamaMatrix
Data object.
|
double |
det()
Matrix determinant.
|
JamaEigenvalueDecomposition |
eig() |
double |
get(int i,
int j)
Get a single element.
|
int |
getColumnDimension()
Get column dimension.
|
java.lang.Object |
getMatrix()
Return the associated JAMA Matrix object.
|
JamaMatrix |
getMatrix(int[] r,
int[] c)
Get a submatrix.
|
JamaMatrix |
getMatrix(int[] r,
int j0,
int j1)
Get a submatrix.
|
JamaMatrix |
getMatrix(int i0,
int i1,
int[] c)
Get a submatrix.
|
JamaMatrix |
getMatrix(int i0,
int i1,
int j0,
int j1)
Get a submatrix.
|
int |
getRowDimension()
Get row dimension.
|
static JamaMatrix |
identity(int m,
int n)
Generate identity matrix.
|
JamaMatrix |
inverse()
Matrix inverse or pseudoinverse.
|
JamaLUDecomposition |
lu() |
static void |
main(java.lang.String[] args)
Test the JamaMatrix class.
|
JamaMatrix |
minus(JamaMatrix B)
C = A - B
|
JamaMatrix |
minusEquals(JamaMatrix B)
A = A - B
|
double |
norm1()
One norm.
|
double |
norm2()
Two norm.
|
double |
normF()
Frobenius norm.
|
double |
normInf()
Infinity norm.
|
JamaMatrix |
plus(JamaMatrix B)
C = A + B
|
JamaMatrix |
plusEquals(JamaMatrix B)
A = A + B
|
void |
print(int w,
int d)
Print the matrix to stdout.
|
void |
print(java.text.NumberFormat format,
int width)
Print the matrix to stdout.
|
void |
print(java.io.PrintWriter output,
int w,
int d)
Print the matrix to the output stream.
|
void |
print(java.io.PrintWriter output,
java.text.NumberFormat format,
int width)
Print the matrix to the output stream.
|
JamaQRDecomposition |
qr() |
static JamaMatrix |
random(int m,
int n)
Generate matrix with random elements.
|
int |
rank()
Matrix rank.
|
static JamaMatrix |
read(java.io.BufferedReader input)
Read a matrix from a stream.
|
void |
set(int i,
int j,
double s)
Set a single element.
|
void |
setMatrix(double[][] entries)
Set this matrix's samples to correspond to the given entries.
|
void |
setMatrix(int[] r,
int[] c,
JamaMatrix X)
Set a submatrix.
|
void |
setMatrix(int[] r,
int j0,
int j1,
JamaMatrix X)
Set a submatrix.
|
void |
setMatrix(int i0,
int i1,
int[] c,
JamaMatrix X)
Set a submatrix.
|
void |
setMatrix(int i0,
int i1,
int j0,
int j1,
JamaMatrix X)
Set a submatrix.
|
void |
setMatrix(java.lang.Object matrix)
Set this matrix's samples to correspond to those of the given
JAMA Matrix.
|
JamaMatrix |
solve(JamaMatrix B)
Solve A*X = B
|
JamaMatrix |
solveTranspose(JamaMatrix B)
Solve X*A = B, which is also A'*X' = B'
|
JamaSingularValueDecomposition |
svd() |
JamaMatrix |
times(double s)
Multiply a matrix by a scalar, C = s*A
|
JamaMatrix |
times(JamaMatrix B)
Linear algebraic matrix multiplication, A * B
|
JamaMatrix |
timesEquals(double s)
Multiply a matrix by a scalar in place, A = s*A
|
double |
trace()
Matrix trace.
|
JamaMatrix |
transpose()
Matrix transpose.
|
JamaMatrix |
uminus()
Unary minus.
|
adjustSamplingError, binary, clearMissing, clone, cloneDouble, cloneDouble, cloneFloat, cloneFloat, computeRanges, convertToField, derivative, derivative, derivative, derivative, derivative, equals, extract, extract, fillField, getDefaultRangeUnits, getFloats, getFloats, getRangeCoordinateSystem, getRangeCoordinateSystem, getRangeDimension, getRangeErrors, getRangeSets, getRangeUnits, getSample, getSample, getStringValues, getValues, getValues, getValues, grabBytes, isFlatField, isMissing, longString, makeField, makeField1, makeField2, makeRational, makeRational, nullRanges, pr, resample, resampleDouble, setRangeErrors, setSample, setSample, setSamples, setSamples, setSamples, setSamples, setSamples, setSamples, setSamples, setSamples, setSamples, toString, unary, unpackFloats, unpackFloats, unpackFloats, unpackOneFloatRangeComp, unpackOneFloatRangeComp, unpackOneRangeComp, unpackOneRangeComp, unpackValues, unpackValues, unpackValues__getitem__, __len__, __setitem__, __setitem__, combine, combine, combine, combine, combine, domainEnumeration, domainFactor, domainFactor, domainMultiply, domainMultiply, domainMultiply, domainMultiply, extract, extract, getDomainCoordinateSystem, getDomainSet, getDomainUnits, getLength, setSample, setSample, setSample, setSamples__getitem__, __getitem__, evaluate, evaluate, evaluate, evaluate, getDomainDimension, resample__add__, __add__, __div__, __div__, __mod__, __mod__, __mul__, __mul__, __neg__, __pow__, __pow__, __radd__, __rdiv__, __rmod__, __rmul__, __rpow__, __rsub__, __sub__, __sub__, abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, longString, max, max, min, min, multiply, multiply, negate, negate, notifyReferences, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unaryaddReference, removeReferencefinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdomainEnumeration, domainFactor, domainMultiply, domainMultiply, getDomainSet, getLength, setSample, setSampleevaluate, evaluate, evaluate, evaluate, getDomainCoordinateSystem, getDomainDimension, getDomainUnits, resampleabs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, longString, max, max, min, min, multiply, multiply, negate, negate, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unaryaddReference, removeReferencepublic JamaMatrix(int rows,
int cols)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix(double[][] entries)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix(java.lang.Object matrix)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix(java.lang.Object matrix,
FunctionType type,
Gridded2DSet domain_set)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix(java.lang.Object matrix,
CoordinateSystem range_coord_sys,
CoordinateSystem[] range_coord_syses,
Set[] range_sets,
Unit[] units)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix(java.lang.Object matrix,
FunctionType type,
Gridded2DSet domain_set,
CoordinateSystem range_coord_sys,
CoordinateSystem[] range_coord_syses,
Set[] range_sets,
Unit[] units)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic static JamaMatrix convertToMatrix(FlatField field) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic static void main(java.lang.String[] args)
throws VisADException,
java.rmi.RemoteException
VisADExceptionjava.rmi.RemoteExceptionpublic java.lang.Object getMatrix()
public void setMatrix(java.lang.Object matrix)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic void setMatrix(double[][] entries)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic int getRowDimension()
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic int getColumnDimension()
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic double get(int i,
int j)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
i - Row indexj - Column indexjava.lang.ArrayIndexOutOfBoundsExceptionVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix getMatrix(int i0, int i1, int j0, int j1) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
i0 - Initial row indexi1 - Final row indexj0 - Initial column indexj1 - Final column indexjava.lang.ArrayIndexOutOfBoundsException - Submatrix indicesVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix getMatrix(int[] r, int[] c) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
r - Array of row indicesc - Array of column indicesjava.lang.ArrayIndexOutOfBoundsException - Submatrix indicesVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix getMatrix(int i0, int i1, int[] c) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
i0 - Initial row indexi1 - Final row indexc - Array of column indicesjava.lang.ArrayIndexOutOfBoundsException - Submatrix indicesVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix getMatrix(int[] r, int j0, int j1) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
r - Array of row indicesj0 - Initial column indexj1 - Final column indexjava.lang.ArrayIndexOutOfBoundsException - Submatrix indicesVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic void set(int i,
int j,
double s)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
i - Row indexj - Column indexs - A(i,j)java.lang.ArrayIndexOutOfBoundsExceptionVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic void setMatrix(int i0,
int i1,
int j0,
int j1,
JamaMatrix X)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
i0 - Initial row indexi1 - Final row indexj0 - Initial column indexj1 - Final column indexX - A(i0:i1,j0:j1)java.lang.ArrayIndexOutOfBoundsException - Submatrix indicesVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic void setMatrix(int[] r,
int[] c,
JamaMatrix X)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
r - Array of row indicesc - Array of column indicesX - A(r(:),c(:))java.lang.ArrayIndexOutOfBoundsException - Submatrix indicesVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic void setMatrix(int[] r,
int j0,
int j1,
JamaMatrix X)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
r - Array of row indicesj0 - Initial column indexj1 - Final column indexX - A(r(:),j0:j1)java.lang.ArrayIndexOutOfBoundsException - Submatrix indicesVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic void setMatrix(int i0,
int i1,
int[] c,
JamaMatrix X)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
i0 - Initial row indexi1 - Final row indexc - Array of column indicesX - A(i0:i1,c(:))java.lang.ArrayIndexOutOfBoundsException - Submatrix indicesVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix transpose() throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic double norm1()
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic double norm2()
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic double normInf()
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic double normF()
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix uminus() throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix plus(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix plusEquals(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix minus(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix minusEquals(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix arrayTimes(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix arrayTimesEquals(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix arrayRightDivide(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix arrayRightDivideEquals(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix arrayLeftDivide(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix arrayLeftDivideEquals(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix times(double s) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
s - scalarVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix timesEquals(double s) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
s - scalarVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix times(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - another matrixjava.lang.IllegalArgumentException - Matrix inner dimensions must agreeVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix solve(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - right hand sideVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix solveTranspose(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
B - right hand sideVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaMatrix inverse() throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic double det()
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic int rank()
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic double cond()
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic double trace()
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic static JamaMatrix random(int m, int n) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
m - Number of rowsn - Number of columsVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic static JamaMatrix identity(int m, int n) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
m - Number of rowsn - Number of columsVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic void print(int w,
int d)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
w - Column widthd - Number of digits after the decimalVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic void print(java.io.PrintWriter output,
int w,
int d)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
output - Output streamw - Column widthd - Number of digits after the decimalVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic void print(java.text.NumberFormat format,
int width)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
format - Formatting object for individual elementswidth - Field width for each columnVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic void print(java.io.PrintWriter output,
java.text.NumberFormat format,
int width)
throws VisADException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException
output - the output streamformat - A formatting object to format the matrix elementswidth - Column widthVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic static JamaMatrix read(java.io.BufferedReader input) throws java.io.IOException, VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
input - the input streamjava.io.IOExceptionVisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaCholeskyDecomposition chol() throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
VisADExceptionjava.rmi.RemoteExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaEigenvalueDecomposition eig() throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
VisADExceptionjava.rmi.RemoteExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaLUDecomposition lu() throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
VisADExceptionjava.rmi.RemoteExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaQRDecomposition qr() throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
VisADExceptionjava.rmi.RemoteExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetExceptionpublic JamaSingularValueDecomposition svd() throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
VisADExceptionjava.rmi.RemoteExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetException