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