Tensor, java.io.Serializable, java.lang.CloneableRotationTensor3Dpublic class Tensor3D extends java.lang.Object implements Tensor, java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
protected double |
xx |
|
protected double |
xy |
|
protected double |
xz |
|
protected double |
yx |
|
protected double |
yy |
|
protected double |
yz |
|
protected double |
zx |
|
protected double |
zy |
|
protected double |
zz |
| Constructor | Description |
|---|---|
Tensor3D() |
Default constructor sets all elements to zero.
|
Tensor3D(double[][] d) |
Constructs tensor with elements set by the given array.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
assignTo(double[] d) |
Fills the given array with the elements of this tensor.
|
void |
assignTo(double[][] d) |
Fills the given 2-dimensional array with the elements of this tensor.
|
void |
assignTo(Vector[] v) |
Assigns the tensor elements column-wise to the given vectors.
|
java.lang.Object |
clone() |
Support of implementation of Cloneable interface.
|
double |
component(int i,
int j) |
|
int |
D() |
|
void |
DE(Tensor t) |
"Divide equals" (/=) operation, element-by-element.
|
double |
determinant() |
Computes the determinant of the matrix represented by this tensor
|
void |
diagE(Vector v) |
Makes this a diagonal tensor with elements set by the given vector.
|
void |
E(double a) |
"Equals" operation, setting all elements of this tensor to the given value
|
void |
E(double[] d) |
|
void |
E(double[][] d) |
Sets the tensor elements using the elements of the array.
|
void |
E(Tensor u) |
"Equals" operation.
|
void |
E(Vector[] v) |
Fills the tensor column-wise with the given vectors.
|
boolean |
equals(Tensor t) |
Element-by-element comparison of tensors
|
void |
Ev1v2(Vector v1,
Vector v2) |
Sets this tensor equal to the dyadic or outer product of the given vectors.
|
void |
invert() |
Replaces this tensor with its inverse.
|
boolean |
isNaN() |
|
void |
map(IFunction f) |
Applies given function to each element of this tensor.
|
void |
ME(Tensor u) |
"Minus equals" (-=) operation, subtracting the elements of the given tensor from the
respective elements of this tensor.
|
void |
MEv1v2(Vector v1,
Vector v2) |
"Minus equals" (-=) operation with a dyad argument.
|
void |
PE(double a) |
"Plus equals" (+=) operation, adding the given value to each element of this tensor
|
void |
PE(int i,
int j,
double d) |
"Plus equals" (+=) operation, performed on a single element of this tensor.
|
void |
PE(Tensor u) |
"Plus equals" (+=) operation, adding the elements of the given tensor to the
respective elements of this tensor
|
void |
PEa1Tt1(double a1,
Tensor t1) |
"Plus equals" (+=) operation based on a scalar and tensor.
|
void |
PEv1v2(Vector v1,
Vector v2) |
"Plus equals" (+=) operation with a dyad argument.
|
void |
setComponent(int i,
int j,
double d) |
|
void |
TE(double a) |
"Times equals" (*=) operation, replaces each element of this tensor by its current value times the given scalar
|
void |
TE(Tensor t) |
"Times equals" (*=) operation, as matrix multiplication.
|
double[] |
toArray() |
Returns tensor in a new array, writing elements row-wise, i.e.: xx, xy, xz, yx, yy, yz, zx, zy, zz;
|
java.lang.String |
toString() |
|
double |
trace() |
|
void |
transform(Vector v) |
Applies the given tensor transformation to this vector, replacing its
elements with the transformed values.
|
void |
transpose() |
Performs a transpose operation on this tensor, replacing each element ab by its counterpart element ba
|
protected double xx
protected double xy
protected double xz
protected double yx
protected double yy
protected double yz
protected double zx
protected double zy
protected double zz
public Tensor3D()
public Tensor3D(double[][] d)
public double[] toArray()
public java.lang.Object clone()
public double component(int i,
int j)
public int D()
public void setComponent(int i,
int j,
double d)
setComponent in interface Tensori - "row" index of the component being setj - "column" index of the component being setd - value to which the component ai,j of this tensor is setpublic void E(Tensor u)
Tensorpublic void E(Vector[] v)
Tensorpublic void E(double[] d)
public void E(double[][] d)
Tensorpublic void diagE(Vector v)
Tensorpublic void assignTo(Vector[] v)
Tensorpublic void Ev1v2(Vector v1, Vector v2)
Tensorpublic void E(double a)
Tensorpublic void PE(double a)
Tensorpublic void PE(Tensor u)
Tensorpublic void PE(int i,
int j,
double d)
Tensorpublic void ME(Tensor u)
Tensorpublic double trace()
public void transpose()
Tensorpublic double determinant()
Tensordeterminant in interface Tensorpublic void invert()
Tensorpublic void PEv1v2(Vector v1, Vector v2)
Tensorpublic void MEv1v2(Vector v1, Vector v2)
Tensorpublic void PEa1Tt1(double a1,
Tensor t1)
Tensorpublic void TE(double a)
Tensorpublic void TE(Tensor t)
Tensorpublic void DE(Tensor t)
Tensorpublic void assignTo(double[] d)
Tensorpublic void assignTo(double[][] d)
Tensorpublic boolean isNaN()
public void map(IFunction f)
Tensorpublic void transform(Vector v)
Tensorpublic boolean equals(Tensor t)
Tensorpublic java.lang.String toString()
toString in class java.lang.Object