|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.vecmath.GVector
javax.robotics.vecmath.RVector
javax.robotics.vecmath.DMatrix
public class DMatrix
Diagonal Matrix, a double precision, general, dynamically-resizable, one-dimensional vector class. Index numbering begins with zero.
| Constructor Summary | |
|---|---|
DMatrix(DMatrix diag)
Constructs a new diagonal matrix from another diagonal matrix. |
|
DMatrix(double... diag)
Constructs a new diagonal matrix from an array. |
|
DMatrix(int size)
Constructs a zero diagonal matrix size by size |
|
DMatrix(Matrix diag)
Constructs a new diagonal matrix from a diagonal of input matrix. |
|
DMatrix(RVector diag)
Constructs a new diagonal matrix from a vector. |
|
| Method Summary | |
|---|---|
void |
get(Matrix M)
Gets this diagonal matrix as generic matrix. |
void |
invert()
Invert diagonal matrix in place. |
Matrix |
mul(Matrix M)
Sets the value of return matrix to the result of multiplying this matrix with matrix M (this * M). |
| Methods inherited from class javax.robotics.vecmath.RVector |
|---|
add, addScale, append, append, append, get, mul, printf, printf, printf, printf, setValues, split, split, toString, toString |
| Methods inherited from class javax.vecmath.GVector |
|---|
add, add, angle, clone, dot, epsilonEquals, equals, equals, getElement, getSize, hashCode, interpolate, interpolate, interpolate, interpolate, LUDBackSolve, mul, mul, negate, norm, normalize, normalize, normSquared, scale, scale, scaleAdd, set, set, set, set, set, set, set, setElement, setSize, sub, sub, SVDBackSolve, zero |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DMatrix(int size)
size - the dimension of matrixpublic DMatrix(double... diag)
diag - the input array.public DMatrix(RVector diag)
diag - the input vector.public DMatrix(DMatrix diag)
diag - the input diagonal matrix.public DMatrix(Matrix diag)
diag - the input matrix.| Method Detail |
|---|
public void get(Matrix M)
M - the matrix to be copiedpublic Matrix mul(Matrix M)
M - the generic input matrix
public void invert()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||