Class TensorInvert
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends AbstractDenseDoubleTensor<T>>
Tinv(AbstractDenseDoubleTensor<T> src, int numIndices) Computes the 'inverse' of a tensor.static CTensorDeprecated.static TensorDeprecated.
-
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
Iis 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- IfnumIndicesis 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
Iis 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- IfnumIndicesis not positive.
-
inv
Deprecated.Computes the 'inverse' of a tensor. That is, computes the tensor
X=this.tensorInv()such that is the 'identity' tensor for the tensor dot product operation.A tensor
Iis 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- IfnumIndicesis not positive.
-