public class Tensor
extends java.lang.Object
Constructor and Description |
---|
Tensor(double k11,
double k22,
double k33,
double k12,
double k23,
double k13,
Jama.Matrix correct1,
Jama.Matrix correct2)
Creates a tensor with the specified components and transformed using the
specified matrices.
|
Modifier and Type | Method and Description |
---|---|
static Tensor |
fromDirections(Vec3 k1,
Vec3 k2,
Vec3 k3)
Creates a tensor with the specified axes.
|
Vec3 |
getAxis(int axis)
Returns one of the tensor's three principal axes as a vector.
|
static java.util.List<java.lang.String> |
getEmptyFields()
Returns a list of empty strings equal in length to the number of
parameters.
|
static java.util.List<java.lang.String> |
getHeaders()
Returns the headers describing the parameters as a list of strings.
|
java.util.List<java.lang.String> |
toStrings()
Returns the principal directions as a list of strings.
|
java.lang.String |
toTensorComponentString()
Returns a string giving the components of the tensor, separated by
spaces.
|
public Tensor(double k11, double k22, double k33, double k12, double k23, double k13, Jama.Matrix correct1, Jama.Matrix correct2)
k11
- (1,1) componentk22
- (2,2) componentk33
- (3,3) componentk12
- (1,2) and (2,1) componentk23
- (2,3) and (3,2) componentk13
- (1,3) and (3,1) componentcorrect1
- first correction matrixcorrect2
- second correction matrixpublic java.lang.String toTensorComponentString()
public static Tensor fromDirections(Vec3 k1, Vec3 k2, Vec3 k3)
k1
- major axisk2
- intermediate axisk3
- minor axispublic Vec3 getAxis(int axis)
axis
- 0 for major axis, 1 for intermediate, and 2 for minorpublic java.util.List<java.lang.String> toStrings()
getHeaders()
.public static java.util.List<java.lang.String> getEmptyFields()
public static java.util.List<java.lang.String> getHeaders()