pub type Tensor<T, D> = TensorBase<BufferRepr<T>, D>;Expand description
Owned Tensor.
See TensorBase.
Aliased Type§
pub struct Tensor<T, D> { /* private fields */ }Implementations§
Source§impl<T: Scalar, D: Dimension> Tensor<T, D>
impl<T: Scalar, D: Dimension> Tensor<T, D>
Sourcepub fn into_scalar_tensor(self) -> ScalarTensor<D>
pub fn into_scalar_tensor(self) -> ScalarTensor<D>
Converts to a scalar tensor.
Trait Implementations§
Source§impl<T: Scalar, D: Dimension> TryFrom<ScalarTensorBase<ScalarBufferRepr, D>> for Tensor<T, D>
impl<T: Scalar, D: Dimension> TryFrom<ScalarTensorBase<ScalarBufferRepr, D>> for Tensor<T, D>
Source§type Error = ScalarTensorBase<ScalarBufferRepr, D>
type Error = ScalarTensorBase<ScalarBufferRepr, D>
The type returned in the event of a conversion error.