Class TensorInvert
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends AbstractDenseDoubleTensor<T>>
Tinv
(AbstractDenseDoubleTensor<T> src, int numIndices) Computes the 'inverse' of a tensor.static CTensor
Deprecated.static Tensor
Deprecated.
-
Method Details
-
inv
Deprecated.Computes the 'inverse' of a tensor. That is, computes the tensor
X=this.tensorInv()
such thatsrc.tensorDot(X, numIndices)
is the 'identity' tensor for the tensor dot product operation.A tensor
I
is the identity for a tensor dot product ifsrc.tensorDot(I, numIndices).equals(this)
.- Parameters:
src
- Tensor to compute inverse of.numIndices
- The number of first numIndices which are involved in the inverse sum.- Returns:
- The 'inverse' of this tensor as defined in the above sense.
- Throws:
IllegalArgumentException
- IfnumIndices
is not positive.
-
inv
public static <T extends AbstractDenseDoubleTensor<T>> T inv(AbstractDenseDoubleTensor<T> src, int numIndices) Computes the 'inverse' of a tensor. That is, computes the tensor
X=this.tensorInv()
such thatsrc.tensorDot(X, numIndices)
is the 'identity' tensor for the tensor dot product operation.A tensor
I
is the identity for a tensor dot product ifsrc.tensorDot(I, numIndices).equals(this)
.- Parameters:
src
- Tensor to compute inverse of.numIndices
- The number of first numIndices which are involved in the inverse sum.- Returns:
- The 'inverse' of this tensor as defined in the above sense.
- Throws:
IllegalArgumentException
- IfnumIndices
is not positive.
-
inv
Deprecated.Computes the 'inverse' of a tensor. That is, computes the tensor
X=this.tensorInv()
such thatsrc.tensorDot(X, numIndices)
is the 'identity' tensor for the tensor dot product operation.A tensor
I
is the identity for a tensor dot product ifsrc.tensorDot(I, numIndices).equals(this)
.- Parameters:
src
- Tensor to compute inverse of.numIndices
- The number of first numIndices which are involved in the inverse sum.- Returns:
- The 'inverse' of this tensor as defined in the above sense.
- Throws:
IllegalArgumentException
- IfnumIndices
is not positive.
-