Type Alias TensorAny

Source
pub type TensorAny<R, T, B, D> = TensorBase<Storage<R, T, B>, D>;

Aliased Type§

struct TensorAny<R, T, B, D> { /* private fields */ }

Implementations§

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI + DimSmallerOneAPI, D::SmallerOne: DimAPI, B: DeviceAPI<T> + DeviceIndexSelectAPI<T, D> + DeviceCreationAnyAPI<T>,

Source

pub fn index_select_f<I>( &self, axis: isize, indices: I, ) -> Result<Tensor<T, B, D>>

Source

pub fn index_select<I>(&self, axis: isize, indices: I) -> Tensor<T, B, D>

Returns a new tensor, which indexes the input tensor along dimension axis using the entries in indices.

§See also

This function should be similar to PyTorch’s torch.index_select.

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, T: Clone, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,

Source

pub fn full_like(&self, fill: T) -> Tensor<T, B, D>

Source

pub fn full_like_f(&self, fill: T) -> Result<Tensor<T, B, D>>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, T: Num, B: DeviceAPI<T> + DeviceCreationNumAPI<T>,

Source

pub fn ones_like(&self) -> Tensor<T, B, D>

New tensor filled with ones and having the same shape as an input tensor.

§See also

ones_like

Source

pub fn ones_like_f(&self) -> Result<Tensor<T, B, D>>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, T: Num, B: DeviceAPI<T> + DeviceCreationNumAPI<T>,

Source

pub fn zeros_like(&self) -> Tensor<T, B, D>

New tensor filled with zeros and having the same shape as an input tensor.

§See also

zeros_like

Source

pub fn zeros_like_f(&self) -> Result<Tensor<T, B, D>>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn into_slice_f<I>(self, index: I) -> Result<TensorAny<R, T, B, IxD>>

Source

pub fn into_slice<I>(self, index: I) -> TensorAny<R, T, B, IxD>

Source

pub fn slice_f<I>(&self, index: I) -> Result<TensorView<'_, T, B, IxD>>

Source

pub fn slice<I>(&self, index: I) -> TensorView<'_, T, B, IxD>

Source

pub fn i_f<I>(&self, index: I) -> Result<TensorView<'_, T, B, IxD>>

Source

pub fn i<I>(&self, index: I) -> TensorView<'_, T, B, IxD>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataMutAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn slice_mut_f<I>(&mut self, index: I) -> Result<TensorMut<'_, T, B, IxD>>

Source

pub fn slice_mut<I>(&mut self, index: I) -> TensorMut<'_, T, B, IxD>

Source

pub fn i_mut_f<I>(&mut self, index: I) -> Result<TensorMut<'_, T, B, IxD>>

Source

pub fn i_mut<I>(&mut self, index: I) -> TensorMut<'_, T, B, IxD>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI + DimSmallerOneAPI, D::SmallerOne: DimAPI,

Source

pub fn into_diagonal_f( self, diagonal_args: impl Into<DiagonalArgs>, ) -> Result<TensorAny<R, T, B, D::SmallerOne>>

Source

pub fn into_diagonal( self, diagonal_args: impl Into<DiagonalArgs>, ) -> TensorAny<R, T, B, D::SmallerOne>

Source

pub fn diagonal_f( &self, diagonal_args: impl Into<DiagonalArgs>, ) -> Result<TensorView<'_, T, B, D::SmallerOne>>

Source

pub fn diagonal( &self, diagonal_args: impl Into<DiagonalArgs>, ) -> TensorView<'_, T, B, D::SmallerOne>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataMutAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI + DimSmallerOneAPI, D::SmallerOne: DimAPI,

Source

pub fn into_diagonal_mut_f( self, diagonal_args: impl Into<DiagonalArgs>, ) -> Result<TensorAny<R, T, B, D::SmallerOne>>

Source

pub fn into_diagonal_mut( self, diagonal_args: impl Into<DiagonalArgs>, ) -> TensorAny<R, T, B, D::SmallerOne>

Source

pub fn diagonal_mut_f( &mut self, diagonal_args: impl Into<DiagonalArgs>, ) -> Result<TensorMut<'_, T, B, D::SmallerOne>>

Source

pub fn diagonal_mut( &mut self, diagonal_args: impl Into<DiagonalArgs>, ) -> TensorMut<'_, T, B, D::SmallerOne>

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where T: Clone, R: DataCloneAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T, Raw = Vec<T>> + 'a,

Source

pub fn axes_iter_with_order_f<I>( &self, axes: I, order: TensorIterOrder, ) -> Result<IterAxesView<'a, T, B>>

Source

pub fn axes_iter_f<I>(&self, axes: I) -> Result<IterAxesView<'a, T, B>>

Source

pub fn axes_iter_with_order<I>( &self, axes: I, order: TensorIterOrder, ) -> IterAxesView<'a, T, B>

Source

pub fn axes_iter<I>(&self, axes: I) -> IterAxesView<'a, T, B>

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where T: Clone, R: DataMutAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T, Raw = Vec<T>> + 'a,

Source

pub fn axes_iter_mut_with_order_f<I>( &'a mut self, axes: I, order: TensorIterOrder, ) -> Result<IterAxesMut<'a, T, B>>

Source

pub fn axes_iter_mut_f<I>( &'a mut self, axes: I, ) -> Result<IterAxesMut<'a, T, B>>

Source

pub fn axes_iter_mut_with_order<I>( &'a mut self, axes: I, order: TensorIterOrder, ) -> IterAxesMut<'a, T, B>

Source

pub fn axes_iter_mut<I>(&'a mut self, axes: I) -> IterAxesMut<'a, T, B>

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where T: Clone, R: DataCloneAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T, Raw = Vec<T>> + 'a,

Source

pub fn indexed_axes_iter_with_order_f<I>( &self, axes: I, order: TensorIterOrder, ) -> Result<IndexedIterAxesView<'a, T, B>>

Source

pub fn indexed_axes_iter_f<I>( &self, axes: I, ) -> Result<IndexedIterAxesView<'a, T, B>>

Source

pub fn indexed_axes_iter_with_order<I>( &self, axes: I, order: TensorIterOrder, ) -> IndexedIterAxesView<'a, T, B>

Source

pub fn indexed_axes_iter<I>(&self, axes: I) -> IndexedIterAxesView<'a, T, B>

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where T: Clone, R: DataMutAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T, Raw = Vec<T>> + 'a,

Source

pub fn indexed_axes_iter_mut_with_order_f<I>( &'a mut self, axes: I, order: TensorIterOrder, ) -> Result<IndexedIterAxesMut<'a, T, B>>

Source

pub fn indexed_axes_iter_mut_f<I>( &'a mut self, axes: I, ) -> Result<IndexedIterAxesMut<'a, T, B>>

Source

pub fn indexed_axes_iter_mut_with_order<I>( &'a mut self, axes: I, order: TensorIterOrder, ) -> IndexedIterAxesMut<'a, T, B>

Source

pub fn indexed_axes_iter_mut<I>( &'a mut self, axes: I, ) -> IndexedIterAxesMut<'a, T, B>

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T, Raw = Vec<T>> + 'a,

Source

pub fn iter_with_order_f( &self, order: TensorIterOrder, ) -> Result<IterVecView<'a, T, D>>

Source

pub fn iter_with_order(&self, order: TensorIterOrder) -> IterVecView<'a, T, D>

Source

pub fn iter_f(&self) -> Result<IterVecView<'a, T, D>>

Source

pub fn iter(&self) -> IterVecView<'a, T, D>

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where R: DataMutAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T, Raw = Vec<T>> + 'a,

Source

pub fn iter_mut_with_order_f( &'a mut self, order: TensorIterOrder, ) -> Result<IterVecMut<'a, T, D>>

Source

pub fn iter_mut_with_order( &'a mut self, order: TensorIterOrder, ) -> IterVecMut<'a, T, D>

Source

pub fn iter_mut_f(&'a mut self) -> Result<IterVecMut<'a, T, D>>

Source

pub fn iter_mut(&'a mut self) -> IterVecMut<'a, T, D>

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T, Raw = Vec<T>> + 'a,

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where R: DataMutAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T, Raw = Vec<T>> + 'a,

Source

pub fn indexed_iter_mut_with_order_f( &'a mut self, order: TensorIterOrder, ) -> Result<IndexedIterVecMut<'a, T, D>>

Source

pub fn indexed_iter_mut_with_order( &'a mut self, order: TensorIterOrder, ) -> IndexedIterVecMut<'a, T, D>

Source

pub fn indexed_iter_mut_f(&'a mut self) -> Result<IndexedIterVecMut<'a, T, D>>

Source

pub fn indexed_iter_mut(&'a mut self) -> IndexedIterVecMut<'a, T, D>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn to_broadcast<D2>(&self, shape: D2) -> TensorView<'_, T, B, D2>
where D2: DimAPI, D: DimMaxAPI<D2, Max = D2>,

Broadcasts an array to a specified shape.

§See also

to_broadcast

Source

pub fn to_broadcast_f<D2>(&self, shape: D2) -> Result<TensorView<'_, T, B, D2>>
where D2: DimAPI, D: DimMaxAPI<D2, Max = D2>,

Source

pub fn into_broadcast<D2>(self, shape: D2) -> TensorAny<R, T, B, D2>
where D2: DimAPI, D: DimMaxAPI<D2, Max = D2>,

Broadcasts an array to a specified shape.

§See also

to_broadcast

Source

pub fn into_broadcast_f<D2>(self, shape: D2) -> Result<TensorAny<R, T, B, D2>>
where D2: DimAPI, D: DimMaxAPI<D2, Max = D2>,

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn expand_dims<I>(&self, axes: I) -> TensorView<'_, T, B, IxD>

Expands the shape of an array by inserting a new axis (dimension) of size one at the position specified by axis.

§See also

expand_dims

Source

pub fn expand_dims_f<I>(&self, axes: I) -> Result<TensorView<'_, T, B, IxD>>

Source

pub fn into_expand_dims<I>(self, axes: I) -> TensorAny<R, T, B, IxD>

Expands the shape of an array by inserting a new axis (dimension) of size one at the position specified by axis.

§See also

expand_dims

Source

pub fn into_expand_dims_f<I>(self, axes: I) -> Result<TensorAny<R, T, B, IxD>>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn flip<I>(&self, axis: I) -> TensorView<'_, T, B, D>

Reverses the order of elements in an array along the given axis.

§See also

flip

Source

pub fn flip_f<I>(&self, axis: I) -> Result<TensorView<'_, T, B, D>>

Source

pub fn into_flip<I>(self, axis: I) -> TensorAny<R, T, B, D>

Reverses the order of elements in an array along the given axis.

§See also

flip

Source

pub fn into_flip_f<I>(self, axis: I) -> Result<TensorAny<R, T, B, D>>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn transpose<I>(&self, axes: I) -> TensorView<'_, T, B, D>

Permutes the axes (dimensions) of an array x.

§See also

transpose

Source

pub fn transpose_f<I>(&self, axes: I) -> Result<TensorView<'_, T, B, D>>

Source

pub fn into_transpose<I>(self, axes: I) -> TensorAny<R, T, B, D>

Permutes the axes (dimensions) of an array x.

§See also

transpose

Source

pub fn into_transpose_f<I>(self, axes: I) -> Result<TensorAny<R, T, B, D>>

Source

pub fn permute_dims<I>(&self, axes: I) -> TensorView<'_, T, B, D>

Permutes the axes (dimensions) of an array x.

§See also

transpose

Source

pub fn permute_dims_f<I>(&self, axes: I) -> Result<TensorView<'_, T, B, D>>

Source

pub fn into_permute_dims<I>(self, axes: I) -> TensorAny<R, T, B, D>

Permutes the axes (dimensions) of an array x.

§See also

transpose

Source

pub fn into_permute_dims_f<I>(self, axes: I) -> Result<TensorAny<R, T, B, D>>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn reverse_axes(&self) -> TensorView<'_, T, B, D>

Reverse the order of elements in an array along the given axis.

§See also

reverse_axes

Source

pub fn into_reverse_axes(self) -> TensorAny<R, T, B, D>

Reverse the order of elements in an array along the given axis.

§See also

reverse_axes

Source

pub fn t(&self) -> TensorView<'_, T, B, D>

Reverse the order of elements in an array along the given axis.

§See also

reverse_axes

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn swapaxes<I>(&self, axis1: I, axis2: I) -> TensorView<'_, T, B, D>
where I: TryInto<isize>,

Interchange two axes of an array.

§See also

swapaxes

Source

pub fn swapaxes_f<I>( &self, axis1: I, axis2: I, ) -> Result<TensorView<'_, T, B, D>>
where I: TryInto<isize>,

Source

pub fn into_swapaxes<I>(self, axis1: I, axis2: I) -> TensorAny<R, T, B, D>
where I: TryInto<isize>,

Interchange two axes of an array.

§See also

swapaxes

Source

pub fn into_swapaxes_f<I>( self, axis1: I, axis2: I, ) -> Result<TensorAny<R, T, B, D>>
where I: TryInto<isize>,

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn squeeze<I>(&self, axis: I) -> TensorView<'_, T, B, IxD>

Removes singleton dimensions (axes) from x.

§See also

squeeze

Source

pub fn squeeze_f<I>(&self, axis: I) -> Result<TensorView<'_, T, B, IxD>>

Source

pub fn into_squeeze<I>(self, axis: I) -> TensorAny<R, T, B, IxD>

Removes singleton dimensions (axes) from x.

§See also

squeeze

Source

pub fn into_squeeze_f<I>(self, axis: I) -> Result<TensorAny<R, T, B, IxD>>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source

pub fn to_dim<D2>(&self) -> TensorView<'_, T, B, D2>
where D2: DimAPI, D: DimIntoAPI<D2>,

Convert layout to the other dimension.

This is mostly used when converting static dimension to dynamic dimension or vice versa.

§See also

into_dim

Source

pub fn to_dim_f<D2>(&self) -> Result<TensorView<'_, T, B, D2>>
where D2: DimAPI, D: DimIntoAPI<D2>,

Source

pub fn into_dim<D2>(self) -> TensorAny<R, T, B, D2>
where D2: DimAPI, D: DimIntoAPI<D2>,

Convert layout to another dimension.

§See also

into_dim

Source

pub fn into_dim_f<D2>(self) -> Result<TensorAny<R, T, B, D2>>
where D2: DimAPI, D: DimIntoAPI<D2>,

Source

pub fn to_dyn(&self) -> TensorView<'_, T, B, IxD>

Convert layout to dynamic dimension.

Source

pub fn into_dyn(self) -> TensorAny<R, T, B, IxD>

Convert layout to dynamic dimension.

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn reshape_assume_contig<D2>(&self, shape: D2) -> TensorView<'_, T, B, D2>
where D2: DimAPI,

Assuming contiguous array, reshapes an array without changing its data.

§See also

reshape_assume_contig

Source

pub fn reshape_assume_contig_f<D2>( &self, shape: D2, ) -> Result<TensorView<'_, T, B, D2>>
where D2: DimAPI,

Source

pub fn to_shape_assume_contig<D2>(&self, shape: D2) -> TensorView<'_, T, B, D2>
where D2: DimAPI,

Source

pub fn to_shape_assume_contig_f<D2>( &self, shape: D2, ) -> Result<TensorView<'_, T, B, D2>>
where D2: DimAPI,

Source

pub fn into_shape_assume_contig<D2>(self, shape: D2) -> TensorAny<R, T, B, D2>
where D2: DimAPI,

Source

pub fn into_shape_assume_contig_f<D2>( self, shape: D2, ) -> Result<TensorAny<R, T, B, D2>>
where D2: DimAPI,

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw> + DataIntoCowAPI<'a>, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignArbitaryAPI<T, IxD, D> + OpAssignAPI<T, IxD>, T: Clone,

Source

pub fn change_shape_f<I>(self, shape: I) -> Result<TensorCow<'a, T, B, IxD>>

Source

pub fn change_shape<I>(self, shape: I) -> TensorCow<'a, T, B, IxD>

Source

pub fn into_shape_f<I>(self, shape: I) -> Result<Tensor<T, B, IxD>>
where I: TryInto<AxesIndex<isize>>, Error: From<I::Error>, B::Raw: Clone + 'a,

Source

pub fn into_shape<I>(self, shape: I) -> Tensor<T, B, IxD>
where I: TryInto<AxesIndex<isize>>, Error: From<I::Error>, B::Raw: Clone + 'a,

Source

pub fn to_shape_f<I>(&'a self, shape: I) -> Result<TensorCow<'a, T, B, IxD>>

Source

pub fn to_shape<I>(&'a self, shape: I) -> TensorCow<'a, T, B, IxD>

Source

pub fn reshape_f<I>(&'a self, shape: I) -> Result<TensorCow<'a, T, B, IxD>>

Source

pub fn reshape<I>(&'a self, shape: I) -> TensorCow<'a, T, B, IxD>

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw> + DataIntoCowAPI<'a>, D: DimAPI, T: Clone, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,

Source

pub fn to_layout<D2>(&self, layout: Layout<D2>) -> TensorCow<'_, T, B, D2>
where D2: DimAPI, B: OpAssignArbitaryAPI<T, D2, D>,

Convert tensor to the other layout.

§See also

to_layout

Source

pub fn to_layout_f<D2>( &self, layout: Layout<D2>, ) -> Result<TensorCow<'_, T, B, D2>>
where D2: DimAPI, B: OpAssignArbitaryAPI<T, D2, D>,

Source

pub fn into_layout_f<D2>(self, layout: Layout<D2>) -> Result<Tensor<T, B, D2>>
where D2: DimAPI, B: OpAssignArbitaryAPI<T, D2, D> + OpAssignAPI<T, D2>, B::Raw: Clone + 'a,

Source

pub fn into_layout<D2>(self, layout: Layout<D2>) -> Tensor<T, B, D2>
where D2: DimAPI, B: OpAssignArbitaryAPI<T, D2, D> + OpAssignAPI<T, D2>, B::Raw: Clone + 'a,

Source

pub fn change_layout_f<D2>( self, layout: Layout<D2>, ) -> Result<TensorCow<'a, T, B, D2>>
where D2: DimAPI, B: OpAssignArbitaryAPI<T, D2, D>,

Source

pub fn change_layout<D2>(self, layout: Layout<D2>) -> TensorCow<'a, T, B, D2>
where D2: DimAPI, B: OpAssignArbitaryAPI<T, D2, D>,

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw> + DataIntoCowAPI<'a>, D: DimAPI, T: Clone, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,

Source

pub fn to_contig(&self, order: FlagOrder) -> TensorCow<'_, T, B, D>
where B: OpAssignArbitaryAPI<T, D, D>,

Convert tensor to contiguous, with specified layout.

Source

pub fn to_contig_f(&self, order: FlagOrder) -> Result<TensorCow<'_, T, B, D>>
where B: OpAssignArbitaryAPI<T, D, D>,

Source

pub fn into_contig_f(self, order: FlagOrder) -> Result<Tensor<T, B, D>>
where B: OpAssignArbitaryAPI<T, D, D> + OpAssignAPI<T, D>, B::Raw: Clone + 'a,

Source

pub fn into_contig(self, order: FlagOrder) -> Tensor<T, B, D>
where B: OpAssignArbitaryAPI<T, D, D> + OpAssignAPI<T, D>, B::Raw: Clone + 'a,

Source

pub fn change_contig_f(self, order: FlagOrder) -> Result<TensorCow<'a, T, B, D>>
where B: OpAssignArbitaryAPI<T, D, D>,

Source

pub fn change_contig(self, order: FlagOrder) -> TensorCow<'a, T, B, D>
where B: OpAssignArbitaryAPI<T, D, D>,

Source§

impl<'a, R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw> + DataIntoCowAPI<'a>, D: DimAPI, T: Clone, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,

Source

pub fn to_prefer(&self, order: FlagOrder) -> TensorCow<'_, T, B, D>
where B: OpAssignArbitaryAPI<T, D, D>,

Convert tensor to contiguous, with specified layout.

Source

pub fn to_prefer_f(&self, order: FlagOrder) -> Result<TensorCow<'_, T, B, D>>
where B: OpAssignArbitaryAPI<T, D, D>,

Source

pub fn into_prefer_f(self, order: FlagOrder) -> Result<Tensor<T, B, D>>
where B: OpAssignArbitaryAPI<T, D, D> + OpAssignAPI<T, D>, B::Raw: Clone + 'a,

Source

pub fn into_prefer(self, order: FlagOrder) -> Tensor<T, B, D>
where B: OpAssignArbitaryAPI<T, D, D> + OpAssignAPI<T, D>, B::Raw: Clone + 'a,

Source

pub fn change_prefer_f(self, order: FlagOrder) -> Result<TensorCow<'a, T, B, D>>
where B: OpAssignArbitaryAPI<T, D, D>,

Source

pub fn change_prefer(self, order: FlagOrder) -> TensorCow<'a, T, B, D>
where B: OpAssignArbitaryAPI<T, D, D>,

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T>,

Source

pub fn map_fnmut_f<'f, TOut>( &self, f: impl FnMut(&T) -> TOut + 'f, ) -> Result<Tensor<TOut, B, D>>
where B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutA_RefB_API<TOut, T, D, dyn FnMut(&mut TOut, &T) + 'f>,

Call f by reference on each element and create a new tensor with the new values.

Source

pub fn map_fnmut<'f, TOut>( &self, f: impl FnMut(&T) -> TOut + 'f, ) -> Tensor<TOut, B, D>
where B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutA_RefB_API<TOut, T, D, dyn FnMut(&mut TOut, &T) + 'f>,

Call f by reference on each element and create a new tensor with the new values.

Source

pub fn mapv_fnmut_f<'f, TOut>( &self, f: impl FnMut(T) -> TOut + 'f, ) -> Result<Tensor<TOut, B, D>>
where B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutA_RefB_API<TOut, T, D, dyn FnMut(&mut TOut, &T) + 'f>, T: Clone,

Call f by value on each element and create a new tensor with the new values.

Source

pub fn mapv_fnmut<'f, TOut>( &self, f: impl FnMut(T) -> TOut + 'f, ) -> Tensor<TOut, B, D>
where B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutA_RefB_API<TOut, T, D, dyn FnMut(&mut TOut, &T) + 'f>, T: Clone,

Call f by value on each element and create a new tensor with the new values.

Source

pub fn mapi_fnmut_f<'f>(&mut self, f: impl FnMut(&mut T) + 'f) -> Result<()>
where R: DataMutAPI<Data = B::Raw>, B: DeviceOp_MutA_API<T, D, dyn FnMut(&mut T) + 'f>,

Modify the tensor in place by calling f by mutable reference on each element.

Source

pub fn mapi_fnmut<'f>(&mut self, f: impl FnMut(&mut T) + 'f)
where R: DataMutAPI<Data = B::Raw>, B: DeviceOp_MutA_API<T, D, dyn FnMut(&mut T) + 'f>,

Modify the tensor in place by calling f by mutable reference on each element.

Source

pub fn mapvi_fnmut_f<'f>(&mut self, f: impl FnMut(T) -> T + 'f) -> Result<()>
where R: DataMutAPI<Data = B::Raw>, T: Clone, B: DeviceOp_MutA_API<T, D, dyn FnMut(&mut T) + 'f>,

Modify the tensor in place by calling f by value on each element.

Source

pub fn mapvi_fnmut<'f>(&mut self, f: impl FnMut(T) -> T + 'f)
where R: DataMutAPI<Data = B::Raw>, T: Clone, B: DeviceOp_MutA_API<T, D, dyn FnMut(&mut T) + 'f>,

Modify the tensor in place by calling f by value on each element.

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T>, T: Clone,

Source

pub fn mapb_fnmut_f<'f, R2, T2, D2, DOut, TOut>( &self, other: &TensorAny<R2, T2, B, D2>, f: impl FnMut(&T, &T2) -> TOut + 'f, ) -> Result<Tensor<TOut, B, DOut>>
where R2: DataAPI<Data = <B as DeviceRawAPI<T2>>::Raw>, D2: DimAPI, DOut: DimAPI, D: DimMaxAPI<D2, Max = DOut>, B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutC_RefA_RefB_API<T, T2, TOut, DOut, dyn FnMut(&mut TOut, &T, &T2) + 'f>,

Source

pub fn mapb_fnmut<'f, R2, T2, D2, DOut, TOut>( &self, other: &TensorAny<R2, T2, B, D2>, f: impl FnMut(&T, &T2) -> TOut + 'f, ) -> Tensor<TOut, B, DOut>
where R2: DataAPI<Data = <B as DeviceRawAPI<T2>>::Raw>, D2: DimAPI, DOut: DimAPI, D: DimMaxAPI<D2, Max = DOut>, B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutC_RefA_RefB_API<T, T2, TOut, DOut, dyn FnMut(&mut TOut, &T, &T2) + 'f>,

Source

pub fn mapvb_fnmut_f<'f, R2, T2, D2, DOut, TOut>( &self, other: &TensorAny<R2, T2, B, D2>, f: impl FnMut(T, T2) -> TOut + 'f, ) -> Result<Tensor<TOut, B, DOut>>
where R2: DataAPI<Data = <B as DeviceRawAPI<T2>>::Raw>, D2: DimAPI, DOut: DimAPI, D: DimMaxAPI<D2, Max = DOut>, T: Clone, T2: Clone, B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutC_RefA_RefB_API<T, T2, TOut, DOut, dyn FnMut(&mut TOut, &T, &T2) + 'f>,

Source

pub fn mapvb_fnmut<'f, R2, T2, D2, DOut, TOut>( &self, other: &TensorAny<R2, T2, B, D2>, f: impl FnMut(T, T2) -> TOut + 'f, ) -> Tensor<TOut, B, DOut>
where R2: DataAPI<Data = <B as DeviceRawAPI<T2>>::Raw>, D2: DimAPI, DOut: DimAPI, D: DimMaxAPI<D2, Max = DOut>, T: Clone, T2: Clone, B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutC_RefA_RefB_API<T, T2, TOut, DOut, dyn FnMut(&mut TOut, &T, &T2) + 'f>,

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T>,

Source

pub fn map_f<'f, TOut>( &self, f: impl Fn(&T) -> TOut + Send + Sync + 'f, ) -> Result<Tensor<TOut, B, D>>
where B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutA_RefB_API<TOut, T, D, dyn Fn(&mut TOut, &T) + Send + Sync + 'f>,

Call f by reference on each element and create a new tensor with the new values.

Source

pub fn map<'f, TOut>( &self, f: impl Fn(&T) -> TOut + Send + Sync + 'f, ) -> Tensor<TOut, B, D>
where B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutA_RefB_API<TOut, T, D, dyn Fn(&mut TOut, &T) + Send + Sync + 'f>,

Call f by reference on each element and create a new tensor with the new values.

Source

pub fn mapv_f<'f, TOut>( &self, f: impl Fn(T) -> TOut + Send + Sync + 'f, ) -> Result<Tensor<TOut, B, D>>
where B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutA_RefB_API<TOut, T, D, dyn Fn(&mut TOut, &T) + Send + Sync + 'f>, T: Clone,

Call f by value on each element and create a new tensor with the new values.

Source

pub fn mapv<'f, TOut>( &self, f: impl Fn(T) -> TOut + Send + Sync + 'f, ) -> Tensor<TOut, B, D>
where B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutA_RefB_API<TOut, T, D, dyn Fn(&mut TOut, &T) + Send + Sync + 'f>, T: Clone,

Call f by value on each element and create a new tensor with the new values.

Source

pub fn mapi_f<'f>( &mut self, f: impl Fn(&mut T) + Send + Sync + 'f, ) -> Result<()>
where R: DataMutAPI<Data = B::Raw>, B: DeviceOp_MutA_API<T, D, dyn Fn(&mut T) + Send + Sync + 'f>,

Modify the tensor in place by calling f by mutable reference on each element.

Source

pub fn mapi<'f>(&mut self, f: impl Fn(&mut T) + Send + Sync + 'f)
where R: DataMutAPI<Data = B::Raw>, B: DeviceOp_MutA_API<T, D, dyn Fn(&mut T) + Send + Sync + 'f>,

Modify the tensor in place by calling f by mutable reference on each element.

Source

pub fn mapvi_f<'f>( &mut self, f: impl Fn(T) -> T + Send + Sync + 'f, ) -> Result<()>
where R: DataMutAPI<Data = B::Raw>, T: Clone, B: DeviceOp_MutA_API<T, D, dyn Fn(&mut T) + Send + Sync + 'f>,

Modify the tensor in place by calling f by value on each element.

Source

pub fn mapvi<'f>(&mut self, f: impl Fn(T) -> T + Send + Sync + 'f)
where R: DataMutAPI<Data = B::Raw>, T: Clone, B: DeviceOp_MutA_API<T, D, dyn Fn(&mut T) + Send + Sync + 'f>,

Modify the tensor in place by calling f by value on each element.

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T>, T: Clone,

Source

pub fn mapb_f<'f, R2, T2, D2, DOut, TOut>( &self, other: &TensorAny<R2, T2, B, D2>, f: impl Fn(&T, &T2) -> TOut + Send + Sync + 'f, ) -> Result<Tensor<TOut, B, DOut>>
where R2: DataAPI<Data = <B as DeviceRawAPI<T2>>::Raw>, D2: DimAPI, DOut: DimAPI, D: DimMaxAPI<D2, Max = DOut>, B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutC_RefA_RefB_API<T, T2, TOut, DOut, dyn Fn(&mut TOut, &T, &T2) + Send + Sync + 'f>,

Source

pub fn mapb<'f, R2, T2, D2, DOut, TOut>( &self, other: &TensorAny<R2, T2, B, D2>, f: impl Fn(&T, &T2) -> TOut + Send + Sync + 'f, ) -> Tensor<TOut, B, DOut>
where R2: DataAPI<Data = <B as DeviceRawAPI<T2>>::Raw>, D2: DimAPI, DOut: DimAPI, D: DimMaxAPI<D2, Max = DOut>, B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutC_RefA_RefB_API<T, T2, TOut, DOut, dyn Fn(&mut TOut, &T, &T2) + Send + Sync + 'f>,

Source

pub fn mapvb_f<'f, R2, T2, D2, DOut, TOut>( &self, other: &TensorAny<R2, T2, B, D2>, f: impl Fn(T, T2) -> TOut + Send + Sync + 'f, ) -> Result<Tensor<TOut, B, DOut>>
where R2: DataAPI<Data = <B as DeviceRawAPI<T2>>::Raw>, D2: DimAPI, DOut: DimAPI, D: DimMaxAPI<D2, Max = DOut>, T: Clone, T2: Clone, B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutC_RefA_RefB_API<T, T2, TOut, DOut, dyn Fn(&mut TOut, &T, &T2) + Send + Sync + 'f>,

Source

pub fn mapvb<'f, R2, T2, D2, DOut, TOut>( &self, other: &TensorAny<R2, T2, B, D2>, f: impl Fn(T, T2) -> TOut + Send + Sync + 'f, ) -> Tensor<TOut, B, DOut>
where R2: DataAPI<Data = <B as DeviceRawAPI<T2>>::Raw>, D2: DimAPI, DOut: DimAPI, D: DimMaxAPI<D2, Max = DOut>, T: Clone, T2: Clone, B: DeviceAPI<TOut> + DeviceCreationAnyAPI<TOut> + DeviceOp_MutC_RefA_RefB_API<T, T2, TOut, DOut, dyn Fn(&mut TOut, &T, &T2) + Send + Sync + 'f>,

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub fn matmul_f<RB, TB, TC, DB, DC>( &self, rhs: &TensorAny<RB, TB, B, DB>, ) -> Result<Tensor<TC, B, DC>>
where RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DB: DimAPI, DC: DimAPI, T: Mul<TB, Output = TC>, TC: Mul<TC, Output = TC> + Add<TC, Output = TC> + Zero + One, B: DeviceAPI<TB> + DeviceAPI<TC> + DeviceCreationAnyAPI<TC> + DeviceMatMulAPI<T, TB, TC, D, DB, DC>, LayoutMatMulConfig<D, DB>: LayoutMatMulAPI<D, DB, DC = DC>,

Source

pub fn matmul<RB, TB, TC, DB, DC>( &self, rhs: &TensorAny<RB, TB, B, DB>, ) -> Tensor<TC, B, DC>
where RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DB: DimAPI, DC: DimAPI, T: Mul<TB, Output = TC>, TC: Mul<TC, Output = TC> + Add<TC, Output = TC> + Zero + One, B: DeviceAPI<TB> + DeviceAPI<TC> + DeviceCreationAnyAPI<TC> + DeviceMatMulAPI<T, TB, TC, D, DB, DC>, LayoutMatMulConfig<D, DB>: LayoutMatMulAPI<D, DB, DC = DC>,

Source

pub fn matmul_with_output_f<RB, RC, TB, TC, DB, DC>( &self, rhs: &TensorAny<RB, TB, B, DB>, c: &mut TensorAny<RC, TC, B, DC>, ) -> Result<()>
where RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, RC: DataMutAPI<Data = <B as DeviceRawAPI<TC>>::Raw>, DB: DimAPI, DC: DimAPI, T: Mul<TB, Output = TC>, TC: Mul<TC, Output = TC> + Add<TC, Output = TC> + Zero + One, B: DeviceAPI<TB> + DeviceAPI<TC> + DeviceMatMulAPI<T, TB, TC, D, DB, DC>,

Source

pub fn matmul_with_output<RB, RC, TB, TC, DB, DC>( &self, rhs: &TensorAny<RB, TB, B, DB>, c: &mut TensorAny<RC, TC, B, DC>, )
where RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, RC: DataMutAPI<Data = <B as DeviceRawAPI<TC>>::Raw>, DB: DimAPI, DC: DimAPI, T: Mul<TB, Output = TC>, TC: Mul<TC, Output = TC> + Add<TC, Output = TC> + Zero + One, B: DeviceAPI<TB> + DeviceAPI<TC> + DeviceMatMulAPI<T, TB, TC, D, DB, DC>,

Source

pub fn matmul_from_f<RA, RB, TA, TB, DA, DB>( &mut self, a: &TensorAny<RA, TA, B, DA>, b: &TensorAny<RB, TB, B, DB>, alpha: T, beta: T, ) -> Result<()>
where R: DataMutAPI<Data = <B as DeviceRawAPI<T>>::Raw>, RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI, DB: DimAPI, TA: Mul<TB, Output = T>, T: Mul<T, Output = T> + Add<T, Output = T> + Zero + One, B: DeviceAPI<TA> + DeviceAPI<TB> + DeviceMatMulAPI<TA, TB, T, DA, DB, D>,

Source

pub fn matmul_from<RA, RB, TA, TB, DA, DB>( &mut self, a: &TensorAny<RA, TA, B, DA>, b: &TensorAny<RB, TB, B, DB>, alpha: T, beta: T, )
where R: DataMutAPI<Data = <B as DeviceRawAPI<T>>::Raw>, RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI, DB: DimAPI, TA: Mul<TB, Output = T>, T: Mul<T, Output = T> + Add<T, Output = T> + Zero + One, B: DeviceAPI<TA> + DeviceAPI<TB> + DeviceMatMulAPI<TA, TB, T, DA, DB, D>,

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI + DimSmallerOneAPI, D::SmallerOne: DimAPI, B: DeviceAPI<T> + DeviceOpPackTriAPI<T> + DeviceCreationAnyAPI<T>,

Source

pub fn pack_tri_f(&self, uplo: FlagUpLo) -> Result<Tensor<T, B, D::SmallerOne>>

Source

pub fn pack_tri(&self, uplo: FlagUpLo) -> Tensor<T, B, D::SmallerOne>

Source

pub fn pack_tril_f(&self) -> Result<Tensor<T, B, D::SmallerOne>>

Source

pub fn pack_tril(&self) -> Tensor<T, B, D::SmallerOne>

Source

pub fn pack_triu_f(&self) -> Result<Tensor<T, B, D::SmallerOne>>

Source

pub fn pack_triu(&self) -> Tensor<T, B, D::SmallerOne>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI + DimLargerOneAPI, D::LargerOne: DimAPI, B: DeviceAPI<T> + DeviceOpUnpackTriAPI<T> + DeviceCreationAnyAPI<T>,

Source

pub fn unpack_tri( &self, uplo: FlagUpLo, symm: FlagSymm, ) -> Result<Tensor<T, B, D::LargerOne>>

Source

pub fn unpack_tril(&self, symm: FlagSymm) -> Tensor<T, B, D::LargerOne>

Source

pub fn unpack_triu(&self, symm: FlagSymm) -> Tensor<T, B, D::LargerOne>

Source

pub fn unpack_tri_f( &self, uplo: FlagUpLo, symm: FlagSymm, ) -> Result<Tensor<T, B, D::LargerOne>>

Source

pub fn unpack_tril_f( &self, symm: FlagSymm, ) -> Result<Tensor<T, B, D::LargerOne>>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where D: DimAPI, B: DeviceAPI<T>, R: DataAPI<Data = B::Raw>,

Methods for tensor ownership conversion.

Source

pub fn view(&self) -> TensorView<'_, T, B, D>

Get a view of tensor.

Source

pub fn view_mut(&mut self) -> TensorMut<'_, T, B, D>
where R: DataMutAPI,

Get a mutable view of tensor.

Source

pub fn into_cow<'a>(self) -> TensorCow<'a, T, B, D>
where R: DataIntoCowAPI<'a>,

Convert current tensor into copy-on-write.

Source

pub fn into_owned_keep_layout(self) -> Tensor<T, B, D>
where R::Data: Clone, R: DataCloneAPI,

Convert tensor into owned tensor.

Data is either moved or fully cloned. Layout is not involved; i.e. all underlying data is moved or cloned without changing layout.

§See also

Tensor::into_owned keep data in some conditions, otherwise clone. This function can avoid cases where data memory bulk is large, but tensor view is small.

Source

pub fn into_shared_keep_layout(self) -> TensorArc<T, B, D>
where R::Data: Clone, R: DataCloneAPI,

Convert tensor into shared tensor.

Data is either moved or cloned. Layout is not involved; i.e. all underlying data is moved or cloned without changing layout.

§See also

Tensor::into_shared keep data in some conditions, otherwise clone. This function can avoid cases where data memory bulk is large, but tensor view is small.

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataCloneAPI<Data = B::Raw>, R::Data: Clone, D: DimAPI, T: Clone, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, D>,

Source

pub fn into_owned(self) -> Tensor<T, B, D>

Source

pub fn into_shared(self) -> TensorArc<T, B, D>

Source

pub fn to_owned(&self) -> Tensor<T, B, D>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw> + DataForceMutAPI<B::Raw>, B: DeviceAPI<T>, D: DimAPI,

Source

pub unsafe fn force_mut(&self) -> TensorMut<'_, T, B, D>

§Safety

This function is highly unsafe, as it entirely bypasses Rust’s lifetime and borrowing rules.

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, T: Clone, D: DimAPI, B: DeviceAPI<T, Raw = Vec<T>> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, Ix1>,

Source

pub fn to_raw_f(&self) -> Result<Vec<T>>

Source

pub fn to_vec(&self) -> Vec<T>

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataCloneAPI<Data = B::Raw>, B::Raw: Clone, T: Clone, D: DimAPI, B: DeviceAPI<T>,

Source

pub fn to_scalar_f(&self) -> Result<T>

Source

pub fn to_scalar(&self) -> T

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T, Raw = Vec<T>>,

Source

pub fn as_ptr(&self) -> *const T

Source

pub fn as_mut_ptr(&mut self) -> *mut T
where R: DataMutAPI,

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpSumAPI<T, D>,

Source

pub fn sum_all_f(&self) -> Result<B::TOut>

Source

pub fn sum_all(&self) -> B::TOut

Source

pub fn sum_axes_f<I>(&self, axes: I) -> Result<Tensor<B::TOut, B, IxD>>

Source

pub fn sum_axes<I>(&self, axes: I) -> Tensor<B::TOut, B, IxD>

Source

pub fn sum_f(&self) -> Result<B::TOut>

Source

pub fn sum(&self) -> B::TOut

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpMinAPI<T, D>,

Source

pub fn min_all_f(&self) -> Result<B::TOut>

Source

pub fn min_all(&self) -> B::TOut

Source

pub fn min_axes_f<I>(&self, axes: I) -> Result<Tensor<B::TOut, B, IxD>>

Source

pub fn min_axes<I>(&self, axes: I) -> Tensor<B::TOut, B, IxD>

Source

pub fn min_f(&self) -> Result<B::TOut>

Source

pub fn min(&self) -> B::TOut

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpMaxAPI<T, D>,

Source

pub fn max_all_f(&self) -> Result<B::TOut>

Source

pub fn max_all(&self) -> B::TOut

Source

pub fn max_axes_f<I>(&self, axes: I) -> Result<Tensor<B::TOut, B, IxD>>

Source

pub fn max_axes<I>(&self, axes: I) -> Tensor<B::TOut, B, IxD>

Source

pub fn max_f(&self) -> Result<B::TOut>

Source

pub fn max(&self) -> B::TOut

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpProdAPI<T, D>,

Source

pub fn prod_all_f(&self) -> Result<B::TOut>

Source

pub fn prod_all(&self) -> B::TOut

Source

pub fn prod_axes_f<I>(&self, axes: I) -> Result<Tensor<B::TOut, B, IxD>>

Source

pub fn prod_axes<I>(&self, axes: I) -> Tensor<B::TOut, B, IxD>

Source

pub fn prod_f(&self) -> Result<B::TOut>

Source

pub fn prod(&self) -> B::TOut

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpMeanAPI<T, D>,

Source

pub fn mean_all_f(&self) -> Result<B::TOut>

Source

pub fn mean_all(&self) -> B::TOut

Source

pub fn mean_axes_f<I>(&self, axes: I) -> Result<Tensor<B::TOut, B, IxD>>

Source

pub fn mean_axes<I>(&self, axes: I) -> Tensor<B::TOut, B, IxD>

Source

pub fn mean_f(&self) -> Result<B::TOut>

Source

pub fn mean(&self) -> B::TOut

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpVarAPI<T, D>,

Source

pub fn var_all_f(&self) -> Result<B::TOut>

Source

pub fn var_all(&self) -> B::TOut

Source

pub fn var_axes_f<I>(&self, axes: I) -> Result<Tensor<B::TOut, B, IxD>>

Source

pub fn var_axes<I>(&self, axes: I) -> Tensor<B::TOut, B, IxD>

Source

pub fn var_f(&self) -> Result<B::TOut>

Source

pub fn var(&self) -> B::TOut

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpStdAPI<T, D>,

Source

pub fn std_all_f(&self) -> Result<B::TOut>

Source

pub fn std_all(&self) -> B::TOut

Source

pub fn std_axes_f<I>(&self, axes: I) -> Result<Tensor<B::TOut, B, IxD>>

Source

pub fn std_axes<I>(&self, axes: I) -> Tensor<B::TOut, B, IxD>

Source

pub fn std_f(&self) -> Result<B::TOut>

Source

pub fn std(&self) -> B::TOut

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpL2NormAPI<T, D>,

Source

pub fn l2_norm_all_f(&self) -> Result<B::TOut>

Source

pub fn l2_norm_all(&self) -> B::TOut

Source

pub fn l2_norm_axes_f<I>(&self, axes: I) -> Result<Tensor<B::TOut, B, IxD>>

Source

pub fn l2_norm_axes<I>(&self, axes: I) -> Tensor<B::TOut, B, IxD>

Source

pub fn l2_norm_f(&self) -> Result<B::TOut>

Source

pub fn l2_norm(&self) -> B::TOut

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpArgMinAPI<T, D>,

Source

pub fn argmin_all_f(&self) -> Result<B::TOut>

Source

pub fn argmin_all(&self) -> B::TOut

Source

pub fn argmin_axes_f<I>(&self, axes: I) -> Result<Tensor<B::TOut, B, IxD>>

Source

pub fn argmin_axes<I>(&self, axes: I) -> Tensor<B::TOut, B, IxD>

Source

pub fn argmin_f(&self) -> Result<B::TOut>

Source

pub fn argmin(&self) -> B::TOut

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpArgMaxAPI<T, D>,

Source

pub fn argmax_all_f(&self) -> Result<B::TOut>

Source

pub fn argmax_all(&self) -> B::TOut

Source

pub fn argmax_axes_f<I>(&self, axes: I) -> Result<Tensor<B::TOut, B, IxD>>

Source

pub fn argmax_axes<I>(&self, axes: I) -> Tensor<B::TOut, B, IxD>

Source

pub fn argmax_f(&self) -> Result<B::TOut>

Source

pub fn argmax(&self) -> B::TOut

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpUnraveledArgMinAPI<T, D>,

Source

pub fn unraveled_argmin_all_f(&self) -> Result<D>

Source

pub fn unraveled_argmin_all(&self) -> D

Source

pub fn unraveled_argmin_axes_f<I>(&self, axes: I) -> Result<Tensor<IxD, B, IxD>>

Source

pub fn unraveled_argmin_axes<I>(&self, axes: I) -> Tensor<IxD, B, IxD>

Source

pub fn unraveled_argmin_f(&self) -> Result<D>

Source

pub fn unraveled_argmin(&self) -> D

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, D: DimAPI, B: OpUnraveledArgMaxAPI<T, D>,

Source

pub fn unraveled_argmax_all_f(&self) -> Result<D>

Source

pub fn unraveled_argmax_all(&self) -> D

Source

pub fn unraveled_argmax_axes_f<I>(&self, axes: I) -> Result<Tensor<IxD, B, IxD>>

Source

pub fn unraveled_argmax_axes<I>(&self, axes: I) -> Tensor<IxD, B, IxD>

Source

pub fn unraveled_argmax_f(&self) -> Result<D>

Source

pub fn unraveled_argmax(&self) -> D

Source§

impl<R, T, B, D> TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T>,

Source

pub fn new_f(storage: Storage<R, T, B>, layout: Layout<D>) -> Result<Self>

Source

pub fn new(storage: Storage<R, T, B>, layout: Layout<D>) -> Self

Source

pub fn device(&self) -> &B

Source

pub fn data(&self) -> &R

Source

pub fn data_mut(&mut self) -> &mut R

Source

pub fn raw(&self) -> &B::Raw

Source

pub fn raw_mut(&mut self) -> &mut B::Raw
where R: DataMutAPI<Data = B::Raw>,

Trait Implementations§

Source§

impl<TRB, RA, TA, DA, B> AddAssign<TRB> for TensorAny<RA, TA, B, DA>
where RA: DataMutAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceAPI<TA>, for<'a> &'a mut Self: TensorAddAssignAPI<TRB>,

Source§

fn add_assign(&mut self, b: TRB)

Performs the += operation. Read more
Source§

impl<R, T, B, D> AsArrayAPI<()> for &TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, T: Clone, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, D>,

Source§

type Out = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D>

Source§

fn asarray_f(self) -> Result<Self::Out>

Source§

fn asarray(self) -> Self::Out
where Self: Sized,

Source§

impl<TRB, RA, TA, DA, B> BitAndAssign<TRB> for TensorAny<RA, TA, B, DA>
where RA: DataMutAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceAPI<TA>, for<'a> &'a mut Self: TensorBitAndAssignAPI<TRB>,

Source§

fn bitand_assign(&mut self, b: TRB)

Performs the &= operation. Read more
Source§

impl<TRB, RA, TA, DA, B> BitOrAssign<TRB> for TensorAny<RA, TA, B, DA>
where RA: DataMutAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceAPI<TA>, for<'a> &'a mut Self: TensorBitOrAssignAPI<TRB>,

Source§

fn bitor_assign(&mut self, b: TRB)

Performs the |= operation. Read more
Source§

impl<TRB, RA, TA, DA, B> BitXorAssign<TRB> for TensorAny<RA, TA, B, DA>
where RA: DataMutAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceAPI<TA>, for<'a> &'a mut Self: TensorBitXorAssignAPI<TRB>,

Source§

fn bitxor_assign(&mut self, b: TRB)

Performs the ^= operation. Read more
Source§

impl<R, T, B, D> Debug for TensorAny<R, T, B, D>
where T: Clone + Debug, B: DeviceAPI<T> + Debug, B::Raw: Clone, D: DimAPI, R: DataCloneAPI<Data = B::Raw>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<R, T, B, D> DiagAPI<()> for &TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, T: Clone + Default, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, Ix1>,

Source§

type Out = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, Vec<usize>>

Source§

fn diag_f(self) -> Result<Self::Out>

Source§

fn diag(self) -> Self::Out
where Self: Sized,

Source§

impl<R, T, B, D> Display for TensorAny<R, T, B, D>
where T: Clone + Display, B: DeviceAPI<T>, B::Raw: Clone, D: DimAPI, R: DataCloneAPI<Data = B::Raw>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<TRB, RA, TA, DA, B> DivAssign<TRB> for TensorAny<RA, TA, B, DA>
where RA: DataMutAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceAPI<TA>, for<'a> &'a mut Self: TensorDivAssignAPI<TRB>,

Source§

fn div_assign(&mut self, b: TRB)

Performs the /= operation. Read more
Source§

impl<R, T, B, D> EmptyLikeAPI<()> for &TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,

Source§

type Out = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D>

Source§

unsafe fn empty_like_f(self) -> Result<Self::Out>

Safety Read more
Source§

unsafe fn empty_like(self) -> Self::Out
where Self: Sized,

Safety Read more
Source§

impl<TRB, RA, TA, DA, B> MulAssign<TRB> for TensorAny<RA, TA, B, DA>
where RA: DataMutAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceAPI<TA>, for<'a> &'a mut Self: TensorMulAssignAPI<TRB>,

Source§

fn mul_assign(&mut self, b: TRB)

Performs the *= operation. Read more
Source§

impl<R, T, B, D> Neg for &TensorAny<R, T, B, D>
where D: DimAPI, for<'a> &'a TensorAny<R, T, B, D>: TensorNegAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

type Output = <&TensorBase<Storage<R, T, B>, D> as TensorNegAPI>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<R, T, B, D> Neg for TensorAny<R, T, B, D>
where D: DimAPI, TensorAny<R, T, B, D>: TensorNegAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

type Output = <TensorBase<Storage<R, T, B>, D> as TensorNegAPI>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<R, T, B, D> Not for &TensorAny<R, T, B, D>
where D: DimAPI, for<'a> &'a TensorAny<R, T, B, D>: TensorNotAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

type Output = <&TensorBase<Storage<R, T, B>, D> as TensorNotAPI>::Output

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<R, T, B, D> Not for TensorAny<R, T, B, D>
where D: DimAPI, TensorAny<R, T, B, D>: TensorNotAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

type Output = <TensorBase<Storage<R, T, B>, D> as TensorNotAPI>::Output

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<R, T, B, D> OnesLikeAPI<()> for &TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, T: Num, D: DimAPI, B: DeviceAPI<T> + DeviceCreationNumAPI<T>,

Source§

type Out = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D>

Source§

fn ones_like_f(self) -> Result<Self::Out>

Source§

fn ones_like(self) -> Self::Out
where Self: Sized,

Source§

impl<RA, RB, TA, TB, TC, DA, DB, DC, B> Rem<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI, DB: DimAPI, DC: DimAPI, TA: Mul<TB, Output = TC>, TC: Mul<TC, Output = TC> + Add<TC, Output = TC> + Zero + One, B: DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<TC> + DeviceCreationAnyAPI<TC> + DeviceMatMulAPI<TA, TB, TC, DA, DB, DC>, LayoutMatMulConfig<DA, DB>: LayoutMatMulAPI<DA, DB, DC = DC>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<TC>>::Raw>, TC, B>, DC>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &TensorAny<RB, TB, B, DB>) -> Self::Output

Performs the % operation. Read more
Source§

impl<RA, RB, TA, TB, TC, DA, DB, DC, B> Rem<&TensorBase<Storage<RB, TB, B>, DB>> for TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI, DB: DimAPI, DC: DimAPI, TA: Mul<TB, Output = TC>, TC: Mul<TC, Output = TC> + Add<TC, Output = TC> + Zero + One, B: DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<TC> + DeviceCreationAnyAPI<TC> + DeviceMatMulAPI<TA, TB, TC, DA, DB, DC>, LayoutMatMulConfig<DA, DB>: LayoutMatMulAPI<DA, DB, DC = DC>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<TC>>::Raw>, TC, B>, DC>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &TensorAny<RB, TB, B, DB>) -> Self::Output

Performs the % operation. Read more
Source§

impl<RA, RB, TA, TB, TC, DA, DB, DC, B> Rem<TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI, DB: DimAPI, DC: DimAPI, TA: Mul<TB, Output = TC>, TC: Mul<TC, Output = TC> + Add<TC, Output = TC> + Zero + One, B: DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<TC> + DeviceCreationAnyAPI<TC> + DeviceMatMulAPI<TA, TB, TC, DA, DB, DC>, LayoutMatMulConfig<DA, DB>: LayoutMatMulAPI<DA, DB, DC = DC>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<TC>>::Raw>, TC, B>, DC>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: TensorAny<RB, TB, B, DB>) -> Self::Output

Performs the % operation. Read more
Source§

impl<RA, RB, TA, TB, TC, DA, DB, DC, B> Rem<TensorBase<Storage<RB, TB, B>, DB>> for TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI, DB: DimAPI, DC: DimAPI, TA: Mul<TB, Output = TC>, TC: Mul<TC, Output = TC> + Add<TC, Output = TC> + Zero + One, B: DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<TC> + DeviceCreationAnyAPI<TC> + DeviceMatMulAPI<TA, TB, TC, DA, DB, DC>, LayoutMatMulConfig<DA, DB>: LayoutMatMulAPI<DA, DB, DC = DC>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<TC>>::Raw>, TC, B>, DC>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: TensorAny<RB, TB, B, DB>) -> Self::Output

Performs the % operation. Read more
Source§

impl<TRB, RA, TA, DA, B> RemAssign<TRB> for TensorAny<RA, TA, B, DA>
where RA: DataMutAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceAPI<TA>, for<'a> &'a mut Self: TensorRemAssignAPI<TRB>,

Source§

fn rem_assign(&mut self, b: TRB)

Performs the %= operation. Read more
Source§

impl<TRB, RA, TA, DA, B> ShlAssign<TRB> for TensorAny<RA, TA, B, DA>
where RA: DataMutAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceAPI<TA>, for<'a> &'a mut Self: TensorShlAssignAPI<TRB>,

Source§

fn shl_assign(&mut self, b: TRB)

Performs the <<= operation. Read more
Source§

impl<TRB, RA, TA, DA, B> ShrAssign<TRB> for TensorAny<RA, TA, B, DA>
where RA: DataMutAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceAPI<TA>, for<'a> &'a mut Self: TensorShrAssignAPI<TRB>,

Source§

fn shr_assign(&mut self, b: TRB)

Performs the >>= operation. Read more
Source§

impl<TRB, RA, TA, DA, B> SubAssign<TRB> for TensorAny<RA, TA, B, DA>
where RA: DataMutAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, DA: DimAPI, B: DeviceAPI<TA>, for<'a> &'a mut Self: TensorSubAssignAPI<TRB>,

Source§

fn sub_assign(&mut self, b: TRB)

Performs the -= operation. Read more
Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorATan2API<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceATan2API<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceATan2API<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceATan2API<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn atan2_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn atan2(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorATan2API<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceATan2API<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceATan2API<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceATan2API<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn atan2_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn atan2(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorAbsAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceAbsAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceAbsAPI<T, D>>::TOut>>::Raw>, <B as DeviceAbsAPI<T, D>>::TOut, B>, D>

Source§

fn abs_f(self) -> Result<Self::Output>

Source§

fn abs(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorAcosAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceAcosAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceAcosAPI<T, D>>::TOut>>::Raw>, <B as DeviceAcosAPI<T, D>>::TOut, B>, D>

Source§

fn acos_f(self) -> Result<Self::Output>

Source§

fn acos(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorAcoshAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceAcoshAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceAcoshAPI<T, D>>::TOut>>::Raw>, <B as DeviceAcoshAPI<T, D>>::TOut, B>, D>

Source§

fn acosh_f(self) -> Result<Self::Output>

Source§

fn acosh(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorAsinAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceAsinAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceAsinAPI<T, D>>::TOut>>::Raw>, <B as DeviceAsinAPI<T, D>>::TOut, B>, D>

Source§

fn asin_f(self) -> Result<Self::Output>

Source§

fn asin(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorAsinhAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceAsinhAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceAsinhAPI<T, D>>::TOut>>::Raw>, <B as DeviceAsinhAPI<T, D>>::TOut, B>, D>

Source§

fn asinh_f(self) -> Result<Self::Output>

Source§

fn asinh(self) -> Self::Output
where Self: Sized,

Source§

impl<RA, DA, RB, DB, T, B> TensorAssignAPI<&TensorBase<Storage<RB, T, B>, DB>> for TensorAny<RA, T, B, DA>
where RA: DataMutAPI<Data = B::Raw>, RB: DataAPI<Data = B::Raw>, DA: DimAPI, DB: DimAPI, B: DeviceAPI<T> + OpAssignAPI<T, DA>,

Source§

fn assign_f(a: &mut Self, b: &TensorAny<RB, T, B, DB>) -> Result<()>

Source§

fn assign(a: &mut Self, b: TRB)

Source§

impl<RA, DA, RB, DB, T, B> TensorAssignAPI<TensorBase<Storage<RB, T, B>, DB>> for TensorAny<RA, T, B, DA>
where RA: DataMutAPI<Data = B::Raw>, RB: DataAPI<Data = B::Raw>, DA: DimAPI, DB: DimAPI, B: DeviceAPI<T> + OpAssignAPI<T, DA>,

Source§

fn assign_f(a: &mut Self, b: TensorAny<RB, T, B, DB>) -> Result<()>

Source§

fn assign(a: &mut Self, b: TRB)

Source§

impl<R, T, B, D> TensorAtanAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceAtanAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceAtanAPI<T, D>>::TOut>>::Raw>, <B as DeviceAtanAPI<T, D>>::TOut, B>, D>

Source§

fn atan_f(self) -> Result<Self::Output>

Source§

fn atan(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorAtanhAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceAtanhAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceAtanhAPI<T, D>>::TOut>>::Raw>, <B as DeviceAtanhAPI<T, D>>::TOut, B>, D>

Source§

fn atanh_f(self) -> Result<Self::Output>

Source§

fn atanh(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorCeilAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceCeilAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceCeilAPI<T, D>>::TOut>>::Raw>, <B as DeviceCeilAPI<T, D>>::TOut, B>, D>

Source§

fn ceil_f(self) -> Result<Self::Output>

Source§

fn ceil(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorConjAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceConjAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceConjAPI<T, D>>::TOut>>::Raw>, <B as DeviceConjAPI<T, D>>::TOut, B>, D>

Source§

fn conj_f(self) -> Result<Self::Output>

Source§

fn conj(self) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorCopySignAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceCopySignAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceCopySignAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceCopySignAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn copysign_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn copysign(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorCopySignAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceCopySignAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceCopySignAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceCopySignAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn copysign_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn copysign(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorCosAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceCosAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceCosAPI<T, D>>::TOut>>::Raw>, <B as DeviceCosAPI<T, D>>::TOut, B>, D>

Source§

fn cos_f(self) -> Result<Self::Output>

Source§

fn cos(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorCoshAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceCoshAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceCoshAPI<T, D>>::TOut>>::Raw>, <B as DeviceCoshAPI<T, D>>::TOut, B>, D>

Source§

fn cosh_f(self) -> Result<Self::Output>

Source§

fn cosh(self) -> Self::Output
where Self: Sized,

Source§

impl<'a, R, T, B, D, BOut> TensorDeviceChangeAPI<'a, BOut> for TensorAny<R, T, B, D>
where B: DeviceRawAPI<T> + DeviceChangeAPI<'a, BOut, R, T, D>, BOut: DeviceRawAPI<T>, D: DimAPI, R: DataAPI<Data = B::Raw>,

Source§

type Repr = <B as DeviceChangeAPI<'a, BOut, R, T, D>>::Repr

Source§

type ReprTo = <B as DeviceChangeAPI<'a, BOut, R, T, D>>::ReprTo

Source§

type Type = T

Source§

type Dim = D

Source§

fn change_device_f( self, device: &BOut, ) -> Result<TensorAny<B::Repr, T, BOut, D>>

Source§

fn into_device_f(self, device: &BOut) -> Result<Tensor<T, BOut, D>>

Source§

fn to_device_f( &'a self, device: &BOut, ) -> Result<TensorAny<B::ReprTo, Self::Type, BOut, Self::Dim>>

Source§

fn change_device( self, device: &BOut, ) -> TensorAny<Self::Repr, Self::Type, BOut, Self::Dim>
where Self: Sized,

Source§

fn into_device( self, device: &BOut, ) -> TensorAny<DataOwned<BOut::Raw>, Self::Type, BOut, Self::Dim>
where Self: Sized,

Source§

fn to_device( &'l self, device: &BOut, ) -> TensorAny<Self::ReprTo, Self::Type, BOut, Self::Dim>

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorEqualAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceEqualAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn equal_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn equal(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorEqualAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceEqualAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn equal_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn equal(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorExpAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceExpAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceExpAPI<T, D>>::TOut>>::Raw>, <B as DeviceExpAPI<T, D>>::TOut, B>, D>

Source§

fn exp_f(self) -> Result<Self::Output>

Source§

fn exp(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorExpm1API for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceExpm1API<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceExpm1API<T, D>>::TOut>>::Raw>, <B as DeviceExpm1API<T, D>>::TOut, B>, D>

Source§

fn expm1_f(self) -> Result<Self::Output>

Source§

fn expm1(self) -> Self::Output
where Self: Sized,

Source§

impl<RA, DA, T, B> TensorFillAPI<T> for TensorAny<RA, T, B, DA>
where RA: DataMutAPI<Data = B::Raw>, DA: DimAPI, B: DeviceAPI<T> + OpAssignAPI<T, DA>,

Source§

fn fill_f(a: &mut Self, b: T) -> Result<()>

Source§

fn fill(a: &mut Self, b: T)

Source§

impl<R, T, B, D> TensorFloorAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceFloorAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceFloorAPI<T, D>>::TOut>>::Raw>, <B as DeviceFloorAPI<T, D>>::TOut, B>, D>

Source§

fn floor_f(self) -> Result<Self::Output>

Source§

fn floor(self) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorFloorDivideAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceFloorDivideAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceFloorDivideAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceFloorDivideAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn floor_divide_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn floor_divide(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorFloorDivideAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceFloorDivideAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceFloorDivideAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceFloorDivideAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn floor_divide_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn floor_divide(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorGreaterAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceGreaterAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceGreaterAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceGreaterAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn greater_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn greater(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorGreaterAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceGreaterAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceGreaterAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceGreaterAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn greater_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn greater(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorGreaterEqualAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceGreaterEqualAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceGreaterEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceGreaterEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn greater_equal_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn greater_equal(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorGreaterEqualAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceGreaterEqualAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceGreaterEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceGreaterEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn greater_equal_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn greater_equal(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorHypotAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceHypotAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceHypotAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceHypotAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn hypot_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn hypot(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorHypotAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceHypotAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceHypotAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceHypotAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn hypot_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn hypot(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorImagAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceImagAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceImagAPI<T, D>>::TOut>>::Raw>, <B as DeviceImagAPI<T, D>>::TOut, B>, D>

Source§

fn imag_f(self) -> Result<Self::Output>

Source§

fn imag(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorIntoOwnedAPI<T, B, D> for TensorAny<R, T, B, D>
where R: DataCloneAPI<Data = B::Raw>, B::Raw: Clone, T: Clone, D: DimAPI, B: DeviceAPI<T> + DeviceCreationAnyAPI<T> + OpAssignAPI<T, D>,

Source§

fn into_owned(self) -> Tensor<T, B, D>

Convert tensor into owned tensor. Read more
Source§

impl<R, T, B, D> TensorInvAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceInvAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceInvAPI<T, D>>::TOut>>::Raw>, <B as DeviceInvAPI<T, D>>::TOut, B>, D>

Source§

fn inv_f(self) -> Result<Self::Output>

Source§

fn inv(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorIsFiniteAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceIsFiniteAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceIsFiniteAPI<T, D>>::TOut>>::Raw>, <B as DeviceIsFiniteAPI<T, D>>::TOut, B>, D>

Source§

fn is_finite_f(self) -> Result<Self::Output>

Source§

fn is_finite(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorIsInfAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceIsInfAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceIsInfAPI<T, D>>::TOut>>::Raw>, <B as DeviceIsInfAPI<T, D>>::TOut, B>, D>

Source§

fn is_inf_f(self) -> Result<Self::Output>

Source§

fn is_inf(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorIsNanAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceIsNanAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceIsNanAPI<T, D>>::TOut>>::Raw>, <B as DeviceIsNanAPI<T, D>>::TOut, B>, D>

Source§

fn is_nan_f(self) -> Result<Self::Output>

Source§

fn is_nan(self) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorLessAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceLessAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceLessAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceLessAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn less_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn less(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorLessAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceLessAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceLessAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceLessAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn less_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn less(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorLessEqualAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceLessEqualAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceLessEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceLessEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn less_equal_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn less_equal(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorLessEqualAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceLessEqualAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceLessEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceLessEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn less_equal_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn less_equal(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorLog10API for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceLog10API<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceLog10API<T, D>>::TOut>>::Raw>, <B as DeviceLog10API<T, D>>::TOut, B>, D>

Source§

fn log10_f(self) -> Result<Self::Output>

Source§

fn log10(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorLog1pAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceLog1pAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceLog1pAPI<T, D>>::TOut>>::Raw>, <B as DeviceLog1pAPI<T, D>>::TOut, B>, D>

Source§

fn log1p_f(self) -> Result<Self::Output>

Source§

fn log1p(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorLog2API for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceLog2API<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceLog2API<T, D>>::TOut>>::Raw>, <B as DeviceLog2API<T, D>>::TOut, B>, D>

Source§

fn log2_f(self) -> Result<Self::Output>

Source§

fn log2(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorLogAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceLogAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceLogAPI<T, D>>::TOut>>::Raw>, <B as DeviceLogAPI<T, D>>::TOut, B>, D>

Source§

fn log_f(self) -> Result<Self::Output>

Source§

fn log(self) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorLogAddExpAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceLogAddExpAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceLogAddExpAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceLogAddExpAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn log_add_exp_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn log_add_exp(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorLogAddExpAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceLogAddExpAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceLogAddExpAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceLogAddExpAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn log_add_exp_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn log_add_exp(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorMaximumAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceMaximumAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceMaximumAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceMaximumAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn maximum_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn maximum(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorMaximumAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceMaximumAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceMaximumAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceMaximumAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn maximum_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn maximum(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorMinimumAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceMinimumAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceMinimumAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceMinimumAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn minimum_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn minimum(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorMinimumAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceMinimumAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceMinimumAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceMinimumAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn minimum_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn minimum(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorNotEqualAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceNotEqualAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceNotEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceNotEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn not_equal_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn not_equal(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorNotEqualAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DeviceNotEqualAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceNotEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DeviceNotEqualAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn not_equal_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn not_equal(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<RA, TA, DA, RB, TB, DB, B> TensorPowAPI<&TensorBase<Storage<RB, TB, B>, DB>> for &TensorAny<RA, TA, B, DA>
where RA: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>, RB: DataAPI<Data = <B as DeviceRawAPI<TB>>::Raw>, DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DevicePowAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn pow_f(self, b: &TensorAny<RB, TB, B, DB>) -> Result<Self::Output>

Source§

fn pow(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<TA, DA, TB, DB, B, R: DataAPI<Data = <B as DeviceRawAPI<TA>>::Raw>> TensorPowAPI<TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<TB>>::Raw>, TB, B>, DB>> for &TensorAny<R, TA, B, DA>
where DA: DimAPI + DimMaxAPI<DB>, DB: DimAPI, DA::Max: DimAPI, B: DevicePowAPI<TA, TB, DA::Max> + DeviceAPI<TA> + DeviceAPI<TB> + DeviceAPI<B::TOut> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut>>::Raw>, <B as DevicePowAPI<TA, TB, <DA as DimMaxAPI<DB>>::Max>>::TOut, B>, <DA as DimMaxAPI<DB>>::Max>

Source§

fn pow_f(self, b: TensorView<'_, TB, B, DB>) -> Result<Self::Output>

Source§

fn pow(self, b: TRB) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorRealAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceRealAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceRealAPI<T, D>>::TOut>>::Raw>, <B as DeviceRealAPI<T, D>>::TOut, B>, D>

Source§

fn real_f(self) -> Result<Self::Output>

Source§

fn real(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorRoundAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceRoundAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceRoundAPI<T, D>>::TOut>>::Raw>, <B as DeviceRoundAPI<T, D>>::TOut, B>, D>

Source§

fn round_f(self) -> Result<Self::Output>

Source§

fn round(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorSignAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceSignAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceSignAPI<T, D>>::TOut>>::Raw>, <B as DeviceSignAPI<T, D>>::TOut, B>, D>

Source§

fn sign_f(self) -> Result<Self::Output>

Source§

fn sign(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorSignBitAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceSignBitAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceSignBitAPI<T, D>>::TOut>>::Raw>, <B as DeviceSignBitAPI<T, D>>::TOut, B>, D>

Source§

fn signbit_f(self) -> Result<Self::Output>

Source§

fn signbit(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorSinAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceSinAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceSinAPI<T, D>>::TOut>>::Raw>, <B as DeviceSinAPI<T, D>>::TOut, B>, D>

Source§

fn sin_f(self) -> Result<Self::Output>

Source§

fn sin(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorSinhAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceSinhAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceSinhAPI<T, D>>::TOut>>::Raw>, <B as DeviceSinhAPI<T, D>>::TOut, B>, D>

Source§

fn sinh_f(self) -> Result<Self::Output>

Source§

fn sinh(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorSqrtAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceSqrtAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceSqrtAPI<T, D>>::TOut>>::Raw>, <B as DeviceSqrtAPI<T, D>>::TOut, B>, D>

Source§

fn sqrt_f(self) -> Result<Self::Output>

Source§

fn sqrt(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorSquareAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceSquareAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceSquareAPI<T, D>>::TOut>>::Raw>, <B as DeviceSquareAPI<T, D>>::TOut, B>, D>

Source§

fn square_f(self) -> Result<Self::Output>

Source§

fn square(self) -> Self::Output
where Self: Sized,

Source§

impl<R, B, D> TensorSumBoolAPI<B, D> for TensorAny<R, bool, B, D>

Source§

fn sum_all_f(&self) -> Result<usize>

Source§

fn sum_axes_f<I>(&self, axes: I) -> Result<Tensor<usize, B, IxD>>

Source§

fn sum_all(&self) -> usize

Source§

fn sum_f(&self) -> Result<usize>

Source§

fn sum(&self) -> usize

Source§

fn sum_axes<I>(&self, axes: I) -> Tensor<usize, B, IxD>

Source§

impl<R, T, B, D> TensorTanAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceTanAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceTanAPI<T, D>>::TOut>>::Raw>, <B as DeviceTanAPI<T, D>>::TOut, B>, D>

Source§

fn tan_f(self) -> Result<Self::Output>

Source§

fn tan(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorTanhAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceTanhAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceTanhAPI<T, D>>::TOut>>::Raw>, <B as DeviceTanhAPI<T, D>>::TOut, B>, D>

Source§

fn tanh_f(self) -> Result<Self::Output>

Source§

fn tanh(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorTruncAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T> + DeviceTruncAPI<T, D> + DeviceCreationAnyAPI<B::TOut>,

Source§

type Output = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<<B as DeviceTruncAPI<T, D>>::TOut>>::Raw>, <B as DeviceTruncAPI<T, D>>::TOut, B>, D>

Source§

fn trunc_f(self) -> Result<Self::Output>

Source§

fn trunc(self) -> Self::Output
where Self: Sized,

Source§

impl<R, T, B, D> TensorViewAPI<T, B, D> for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

fn view(&self) -> TensorView<'_, T, B, D>

Get a view of tensor.
Source§

impl<R, T, B, D> TensorViewAPI<T, B, D> for TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

fn view(&self) -> TensorView<'_, T, B, D>

Get a view of tensor.
Source§

impl<R, T, B, D> TensorViewMutAPI<T, B, D> for &mut TensorAny<R, T, B, D>
where D: DimAPI, R: DataMutAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

fn view_mut(&mut self) -> TensorMut<'_, T, B, D>

Get a mutable view of tensor.
Source§

impl<R, T, B, D> TensorViewMutAPI<T, B, D> for TensorAny<R, T, B, D>
where D: DimAPI, R: DataMutAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

fn view_mut(&mut self) -> TensorMut<'_, T, B, D>

Get a mutable view of tensor.
Source§

impl<R, T, D, B> TrilAPI<()> for &TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, T: Num + Clone, D: DimAPI, B: DeviceAPI<T> + DeviceCreationTriAPI<T> + DeviceCreationAnyAPI<T> + OpAssignArbitaryAPI<T, D, D> + OpAssignAPI<T, D>, B::Raw: Clone,

Source§

type Out = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D>

Source§

fn tril_f(self) -> Result<Self::Out>

Source§

fn tril(self) -> Self::Out
where Self: Sized,

Source§

impl<R, T, D, B> TriuAPI<()> for &TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, T: Num + Clone, D: DimAPI, B: DeviceAPI<T> + DeviceCreationTriAPI<T> + DeviceCreationAnyAPI<T> + OpAssignArbitaryAPI<T, D, D> + OpAssignAPI<T, D>, B::Raw: Clone,

Source§

type Out = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D>

Source§

fn triu_f(self) -> Result<Self::Out>

Source§

fn triu(self) -> Self::Out
where Self: Sized,

Source§

impl<R, T, B, D> ZerosLikeAPI<()> for &TensorAny<R, T, B, D>
where R: DataAPI<Data = B::Raw>, T: Num, D: DimAPI, B: DeviceAPI<T> + DeviceCreationNumAPI<T>,

Source§

type Out = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, D>

Source§

fn zeros_like_f(self) -> Result<Self::Out>

Source§

fn zeros_like(self) -> Self::Out
where Self: Sized,

Source§

impl<R, T, B, D> TensorRefAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>, Self: TensorViewAPI<T, B, D>,

Source§

impl<R, T, B, D> TensorRefMutAPI for &mut TensorAny<R, T, B, D>
where D: DimAPI, R: DataMutAPI<Data = B::Raw>, B: DeviceAPI<T>, Self: TensorViewMutAPI<T, B, D>,