|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJSci.physics.relativity.Tensor
JSci.physics.relativity.Rank4Tensor
public class Rank4Tensor
The Rank4Tensor class encapsulates 4th rank tensors.
| Field Summary | |
|---|---|
protected double[][][][] |
rank4
|
| Constructor Summary | |
|---|---|
Rank4Tensor()
Constructs a 4th rank tensor. |
|
| Method Summary | |
|---|---|
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. |
| 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[][][][] rank4
| Constructor Detail |
|---|
public Rank4Tensor()
| Method Detail |
|---|
public boolean equals(java.lang.Object a)
equals in class java.lang.Objecta - a 4th rank tensor
public double getComponent(int i,
int j,
int k,
int l)
i - 1st indexj - 2nd indexk - 3rd indexl - 4th index
DimensionException - 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 - value
DimensionException - 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||