public class Rank3Tensor extends Tensor
| Modifier and Type | Field and Description |
|---|---|
protected double[][][] |
rank3 |
| Constructor and Description |
|---|
Rank3Tensor()
Constructs a 3rd rank tensor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public boolean equals(java.lang.Object a)
equals in class java.lang.Objecta - a 3rd rank tensorpublic double getComponent(int i,
int j,
int k)
i - 1st indexj - 2nd indexk - 3rd indexDimensionException - 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 - valueDimensionException - 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