Type Alias ScalarArcTensor

Source
pub type ScalarArcTensor<D> = ScalarTensorBase<ScalarArcBufferRepr, D>;
Expand description

Shared Scalar Tensor.

See ScalarTensorBase.

Aliased Type§

pub struct ScalarArcTensor<D> { /* private fields */ }

Implementations§

Source§

impl<D: Dimension> ScalarArcTensor<D>

Source

pub fn try_into_arc_tensor<T: Scalar>(self) -> Result<ArcTensor<T, D>, Self>

Attempt to convert to an arc tensor.

Source§

impl<D: Dimension> ScalarArcTensor<D>

Source

pub fn broadcast_shared<E>(&self, dim: E) -> Option<ScalarArcTensor<E::Dim>>
where E: IntoDimension,

Act like a larger size and/or shape array by broadcasting into a larger shape, if possible.

See ArcTensor::broadcast_shared().

Trait Implementations§

Source§

impl<D: Dimension> From<ScalarTensorBase<ScalarBufferRepr, D>> for ScalarArcTensor<D>

Source§

fn from(tensor: ScalarTensor<D>) -> Self

Converts to this type from the input type.
Source§

impl<T: Scalar, D: Dimension> From<TensorBase<ArcBufferRepr<T>, D>> for ScalarArcTensor<D>

Source§

fn from(tensor: ArcTensor<T, D>) -> Self

Converts to this type from the input type.