Type Alias Tensor

Source
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>

Source

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>

Source§

type Error = ScalarTensorBase<ScalarBufferRepr, D>

The type returned in the event of a conversion error.
Source§

fn try_from(tensor: ScalarTensor<D>) -> Result<Self, Self::Error>

Performs the conversion.