public class Rank4Tensor extends Tensor
| Modifier and Type | Field and Description |
|---|---|
protected double[][][][] |
rank4 |
| Constructor and Description |
|---|
Rank4Tensor()
Constructs a 4th rank tensor.
|
| Modifier and Type | Method and Description |
|---|---|
Rank4Tensor |
add(Rank4Tensor 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,
int l)
Returns a component of this tensor.
|
void |
setComponent(int i,
int j,
int k,
int l,
double x)
Sets the value of a component of this tensor.
|
Rank4Tensor |
subtract(Rank4Tensor t)
Returns the subtraction of this tensor by another.
|
public boolean equals(java.lang.Object a)
equals in class java.lang.Objecta - a 4th rank tensorpublic double getComponent(int i,
int j,
int k,
int l)
i - 1st indexj - 2nd indexk - 3rd indexl - 4th indexDimensionException - If attempting to access an invalid component.public void setComponent(int i,
int j,
int k,
int l,
double x)
i - 1st indexj - 2nd indexk - 3rd indexl - 4th indexx - valueDimensionException - If attempting to access an invalid component.public Rank4Tensor add(Rank4Tensor t)
t - a 4th rank tensorpublic Rank4Tensor subtract(Rank4Tensor t)
t - a 4th rank tensor