visad.matrix
Class JamaQRDecomposition
- java.lang.Object
-
- visad.ThingImpl
-
- visad.DataImpl
-
- visad.Tuple
-
- visad.matrix.JamaQRDecomposition
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Data, Thing, TupleIface
public class JamaQRDecomposition extends Tuple
JamaQRDecomposition is a VisAD wrapper for JAMA QRDecompositions. This class requires the JAMA package.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class visad.DataImpl
DataImpl.Syncher
-
-
Field Summary
-
Fields inherited from interface visad.Data
ABS, 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 Summary
Constructors Constructor and Description JamaQRDecomposition(JamaMatrix matrix)Construct a new JamaQRDecomposition from a JamaMatrix.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description JamaMatrixgetH()JamaMatrixgetQ()Get Qjava.lang.ObjectgetQRDecomposition()Return the associated JAMA QRDecomposition object.JamaMatrixgetR()Get RbooleanisFullRank()JamaMatrixsolve(JamaMatrix B)Solve A*X = B-
Methods inherited from class visad.Tuple
__getitem__, __len__, adjustSamplingError, binary, buildTupleType, clone, computeRanges, equals, getComponent, getComponents, getComponents, getDimension, getLength, getRealComponents, hashCode, isMissing, longString, makeTuple, unary
-
Methods inherited from class visad.DataImpl
__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, main, 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, toString, unary
-
Methods inherited from class visad.ThingImpl
addReference, removeReference
-
Methods inherited from interface visad.Data
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, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary
-
Methods inherited from interface visad.Thing
addReference, removeReference
-
-
-
-
Constructor Detail
-
JamaQRDecomposition
public JamaQRDecomposition(JamaMatrix matrix) throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
Construct a new JamaQRDecomposition from a JamaMatrix.- Throws:
VisADExceptionjava.rmi.RemoteExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetException
-
-
Method Detail
-
getQRDecomposition
public java.lang.Object getQRDecomposition()
Return the associated JAMA QRDecomposition object.
-
getQ
public JamaMatrix getQ() throws VisADException, java.rmi.RemoteException
Get Q- Returns:
- Q matrix
- Throws:
VisADExceptionjava.rmi.RemoteException
-
getR
public JamaMatrix getR() throws VisADException, java.rmi.RemoteException
Get R- Returns:
- R matrix
- Throws:
VisADExceptionjava.rmi.RemoteException
-
getH
public JamaMatrix getH() throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
- Throws:
VisADExceptionjava.rmi.RemoteExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetException
-
isFullRank
public boolean isFullRank() throws VisADException, java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException- Throws:
VisADExceptionjava.rmi.RemoteExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetException
-
solve
public JamaMatrix solve(JamaMatrix B) throws VisADException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
Solve A*X = B- Parameters:
B- right hand side- Returns:
- solution if A is square, least squares solution otherwise
- Throws:
VisADExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.reflect.InvocationTargetException
-
-
DMelt 3.0 © DataMelt by jWork.ORG