|
|||||||||
| PREV CLASS NEXT CLASS | All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsci.physics.relativity.Tensor
jsci.physics.relativity.Rank2Tensor
public class Rank2Tensor
The Rank2Tensor class encapsulates 2nd rank tensors.
| Constructor Summary | |
|---|---|
Rank2Tensor()
Constructs a 2nd rank tensor. |
|
| Method Summary | |
|---|---|
Rank2Tensor |
add(Rank2Tensor t)
Returns the addition of this tensor and another. |
boolean |
equals(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 |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rank2Tensor()
| Method Detail |
|---|
public boolean equals(Object a)
equals in class Objecta - a 2nd rank tensor
public 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 | All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||