All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.physics.relativity.Rank3Tensor

java.lang.Object
   |
   +----JSci.physics.relativity.Tensor
           |
           +----JSci.physics.relativity.Rank3Tensor

public class Rank3Tensor
extends Tensor
The Rank3Tensor class encapsulates 3rd rank tensors.


Variable Index

 o rank3

Constructor Index

 o Rank3Tensor()
Constructs a 3rd rank tensor.

Method Index

 o add(Rank3Tensor)
Returns the addition of this tensor and another.
 o equals(Object)
Compares two tensors for equality.
 o getComponent(int, int, int)
Returns a component of this tensor.
 o setComponent(int, int, int, double)
Sets the value of a component of this tensor.
 o subtract(Rank3Tensor)
Returns the subtraction of this tensor by another.
 o tensorProduct(Rank1Tensor)
Returns the tensor product of this tensor and another.

Variables

 o rank3
 protected double rank3[][][]

Constructors

 o Rank3Tensor
 public Rank3Tensor()
Constructs a 3rd rank tensor.

Methods

 o equals
 public boolean equals(Object a)
Compares two tensors for equality.

Parameters:
a - a 3rd rank tensor
Overrides:
equals in class Object
 o getComponent
 public double getComponent(int i,
                            int j,
                            int k)
Returns a component of this tensor.

Parameters:
i - 1st index
j - 2nd index
k - 3rd index
Throws: DimensionException
If attempting to access an invalid component.
 o setComponent
 public void setComponent(int i,
                          int j,
                          int k,
                          double x)
Sets the value of a component of this tensor.

Parameters:
i - 1st index
j - 2nd index
k - 3rd index
x - value
Throws: DimensionException
If attempting to access an invalid component.
 o add
 public Rank3Tensor add(Rank3Tensor t)
Returns the addition of this tensor and another.

Parameters:
t - a 3rd rank tensor
 o subtract
 public Rank3Tensor subtract(Rank3Tensor t)
Returns the subtraction of this tensor by another.

Parameters:
t - a 3rd rank tensor
 o tensorProduct
 public Rank4Tensor tensorProduct(Rank1Tensor t)
Returns the tensor product of this tensor and another.

Parameters:
t - a 1st rank tensor

All Packages  Class Hierarchy  This Package  Previous  Next  Index