LinearOpsTensorAlgebra
Common linear algebra operations. Operates on Tensor.
Parameters
the type of items closed under division in the tensors.
Functions
Creates a tensor whose diagonals of certain 2D planes (specified by dim1 and dim2) are filled by diagonalEntries. To facilitate creating batched diagonal matrices, the 2D planes formed by the last two dimensions of the returned tensor are chosen by default.
Each element of the tensor arg is divided by this value. The resulting tensor is returned.
Divide by the scalar arg each element of this tensor returns a new resulting tensor.
Each element of the tensor arg is divided by each element of this tensor. The resulting tensor is returned.
Matrix product of two tensors.
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
Returns the maximum value of all elements in the input tensor or null if there are no values
Returns the maximum value of each row of the input tensor in the given dimension dim.
Each element of the tensor arg is subtracted from this value. 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 added to this value. 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.
Returns eigenvalues and eigenvectors of a real symmetric matrix input
or a batch of real symmetric matrices, represented by a pair eigenvalues to eigenvectors
. For more information: https://pytorch.org/docs/stable/generated/torch.symeig.html
Each element of the tensor arg is multiplied by this value. 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.
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