tensor
Tensor2
Class for the 2nd-order tensor (3, 3) representation.
__init__
__init__(data: ndarray)
Initialize the tensor.
PARAMETER | DESCRIPTION |
---|---|
data
|
The data of the tensor. A 2D array with shape (3, 3).
TYPE:
|
__matmul__
__matmul__(other: 'Tensor2' | ndarray) -> 'Tensor2'
Multiply the tensor by another tensor.
__mul__
Multiply a tensor/scalar to the tensor.
__sub__
Subtract a tensor/scalar from the tensor.