|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.physics.relativity.Tensor JSci.physics.relativity.Rank3Tensor
The Rank3Tensor class encapsulates 3rd rank tensors.
Field Summary | |
protected double[][][] |
rank3
|
Constructor Summary | |
Rank3Tensor()
Constructs a 3rd rank tensor. |
Method Summary | |
Rank3Tensor |
add(Rank3Tensor t)
Returns the addition of this tensor and another. |
boolean |
equals(java.lang.Object a)
Compares two tensors for equality. |
double |
getComponent(int i,
int j,
int k)
Returns a component of this tensor. |
void |
setComponent(int i,
int j,
int k,
double x)
Sets the value of a component of this tensor. |
Rank3Tensor |
subtract(Rank3Tensor t)
Returns the subtraction of this tensor by another. |
Rank4Tensor |
tensorProduct(Rank1Tensor t)
Returns the tensor product of this tensor and another. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double[][][] rank3
Constructor Detail |
public Rank3Tensor()
Method Detail |
public boolean equals(java.lang.Object a)
a
- a 3rd rank tensorpublic double getComponent(int i, int j, int k)
i
- 1st indexj
- 2nd indexk
- 3rd index
DimensionException
- If attempting to access an invalid component.public void setComponent(int i, int j, int k, double x)
i
- 1st indexj
- 2nd indexk
- 3rd indexx
- value
DimensionException
- If attempting to access an invalid component.public Rank3Tensor add(Rank3Tensor t)
t
- a 3rd rank tensorpublic Rank3Tensor subtract(Rank3Tensor t)
t
- a 3rd rank tensorpublic Rank4Tensor tensorProduct(Rank1Tensor t)
t
- a 1st rank tensor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |