IntTensor
Default BufferedTensor implementation for Int values
Functions
Transforms StructureND of Double to DoubleTensor. Zero copy if possible, but is not guaranteed
Create a mutable copy of given StructureND.
Computes the determinant of a square matrix input, or of each square matrix in a batched input. For more information: https://pytorch.org/docs/stable/linalg.html#torch.linalg.det
Matrix product of two tensors.
Compares element-wise two tensors. Comparison of two Double values occurs with 1e-5
precision.
Compares element-wise two tensors with a specified precision.
Compares element-wise two int tensors
Returns the tensor at index i For more information: https://pytorch.org/cppdocs/notes/tensor_indexing.html
Computes the multiplicative inverse matrix of a square matrix input, or of each square matrix in a batched input. Given a square matrix A
, return the matrix AInv
satisfying A dot AInv == AInv dot A == eye(a.shape[0])
. For more information: https://pytorch.org/docs/stable/linalg.html#torch.linalg.inv
Applies the transform function to each element of the tensor and returns the resulting modified tensor.
Applies the transform function to each element of the tensor and returns the resulting modified tensor.
Broadcasting Matrix product of two tensors.
Each element of the tensor arg is subtracted from each element of this tensor. The resulting tensor is returned.
Subtracts the scalar arg from each element of this tensor and returns a new resulting tensor.
Each element of the tensor arg is subtracted from each element of this tensor. The resulting tensor is returned.
Subtracts the scalar arg from each element of this tensor and returns a new resulting tensor.
Each element of the tensor arg is subtracted from each element of this tensor. The resulting tensor is returned.
Each element of the tensor arg is subtracted from each element of this tensor.
Subtracts the scalar value from each element of this tensor.
Each element of the tensor arg is subtracted from each element of this tensor.
Subtracts the scalar value from each element of this tensor.
Each element of the tensor arg is subtracted from each element of this tensor.
Each element of the tensor arg is added to each element of this tensor. The resulting tensor is returned.
Adds the scalar arg to each element of this tensor and returns a new resulting tensor.
Each element of the tensor arg is added to each element of this tensor. The resulting tensor is returned.
Adds the scalar arg to each element of this tensor and returns a new resulting tensor.
Each element of the tensor arg is added to each element of this tensor. The resulting tensor is returned.
Each element of the tensor arg is added to each element of this tensor.
Adds the scalar value to each element of this tensor.
Each element of the tensor arg is added to each element of this tensor.
Adds the scalar value to each element of this tensor.
Each element of the tensor arg is added to each element of this tensor.
Builds tensor from rows of the input tensor.
Each element of the tensor arg is multiplied by each element of this tensor. The resulting tensor is returned.
Multiplies the scalar arg by each element of this tensor and returns a new resulting tensor.
Each element of the tensor arg is multiplied by each element of this tensor. The resulting tensor is returned.
Multiplies the scalar arg by each element of this tensor and returns a new resulting tensor.
Each element of the tensor arg is multiplied by each element of this tensor. The resulting tensor is returned.
Each element of the tensor arg is multiplied by each element of this tensor.
Multiplies the scalar value by each element of this tensor.
Each element of the tensor arg is multiplied by each element of this tensor.
Multiplies the scalar value by each element of this tensor.
Each element of the tensor arg is multiplied by each element of this tensor.
Numerical negative, element-wise.
Returns a single tensor value of unit dimension. The tensor shape must be equal to 1.
Returns a single tensor value of unit dimension if tensor shape equals to 1.
Returns a new tensor with the same data as the self tensor but of a different shape. The returned tensor shares the same data and must have the same number of elements, but may have a different size For more information: https://pytorch.org/docs/stable/tensor_view.html
View this tensor as the same size as other. this.viewAs(other)
is equivalent to this.view(other.shape)
. For more information: https://pytorch.org/cppdocs/notes/tensor_indexing.html
View this tensor as the same size as other. this.viewAs(other)
is equivalent to this.view(other.shape)
. For more information: https://pytorch.org/cppdocs/notes/tensor_indexing.html
Properties
Buffer strides based on RowStrides implementation
Number of elements in tensor