Struct primitiv::Tensor
[−]
[src]
pub struct Tensor { /* fields omitted */ }
Value with any dimensions.
Methods
impl Tensor
[src]
pub fn new() -> Self
[src]
Creates an invalid Tensor object.
pub fn valid(&self) -> bool
[src]
Check whether the object is valid or not.
pub fn shape(&self) -> Shape
[src]
Returns shape of the Tensor.
pub fn device(&self) -> AnyDevice
[src]
Returns the Device object related to the internal memory.
pub fn to_float(&self) -> f32
[src]
Retrieves one internal value in the tensor.
Remark: This function can be used only when the tensor is a scalar and non-minibatched (i.e., shape() == Shape()).
pub fn to_vector(&self) -> Vec<f32>
[src]
Retrieves internal values in the tensor as a vector. Remark: Each resulting values a re ordered by the column-major order, and the batch size is assumed as the last dimension of the tensor.
pub fn argmax(&self, dim: u32) -> Vec<u32>
[src]
Retrieves argmax indices along an axis.
pub fn argmin(&self, dim: u32) -> Vec<u32>
[src]
Retrieves argmin indices along an axis.
pub fn reset(&mut self, k: f32)
[src]
Reset internal values using a constant.
pub fn reset_by_slice(&mut self, values: &[f32])
[src]
Reset internal values using a slice.
pub fn reshape(&self, new_shape: &Shape) -> Self
[src]
Returns a tensor which have the same values and different shape.
pub fn flatten(&self) -> Self
[src]
Returns a flattened tensor.
pub fn inplace_multiply_const(&mut self, k: f32) -> &mut Self
[src]
Directly multiplies a constant.
pub fn inplace_add(&mut self, x: &Tensor) -> &mut Self
[src]
Directly adds a value.
pub fn inplace_subtract(&mut self, x: &Tensor) -> &mut Self
[src]
Directly subtracts a value.
Trait Implementations
impl Debug for Tensor
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Wrap<primitivTensor_t> for Tensor
[src]
fn from_raw(ptr: *mut primitivTensor_t, owned: bool) -> Self
[src]
fn as_ptr(&self) -> *const primitivTensor_t
[src]
fn as_mut_ptr(&mut self) -> *mut primitivTensor_t
[src]
fn is_owned(&self) -> bool
[src]
impl Drop for Tensor
[src]
impl Clone for Tensor
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
[src]
Performs copy-assignment from source
. Read more
impl AsRef<Tensor> for Tensor
[src]
impl Neg for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn neg(self) -> Tensor
[src]
Performs the unary -
operation.
impl Add<i8> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i8) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<i8> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i8) -> Tensor
[src]
Performs the +
operation.
impl Add<Tensor> for i8
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for i8
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Add<u8> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u8) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<u8> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u8) -> Tensor
[src]
Performs the +
operation.
impl Add<Tensor> for u8
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for u8
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Add<i16> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i16) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<i16> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i16) -> Tensor
[src]
Performs the +
operation.
impl Add<Tensor> for i16
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for i16
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Add<u16> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u16) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<u16> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u16) -> Tensor
[src]
Performs the +
operation.
impl Add<Tensor> for u16
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for u16
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Add<i32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i32) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<i32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i32) -> Tensor
[src]
Performs the +
operation.
impl Add<Tensor> for i32
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for i32
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Add<u32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u32) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<u32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u32) -> Tensor
[src]
Performs the +
operation.
impl Add<Tensor> for u32
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for u32
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Add<i64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i64) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<i64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: i64) -> Tensor
[src]
Performs the +
operation.
impl Add<Tensor> for i64
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for i64
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Add<u64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<u64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Tensor
[src]
Performs the +
operation.
impl Add<Tensor> for u64
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for u64
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Add<f32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: f32) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<f32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: f32) -> Tensor
[src]
Performs the +
operation.
impl Add<Tensor> for f32
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for f32
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Add<f64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: f64) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<f64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: f64) -> Tensor
[src]
Performs the +
operation.
impl Add<Tensor> for f64
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for f64
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Add for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<Tensor> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a> Add<&'a Tensor> for Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl<'a, 'b> Add<&'a Tensor> for &'b Tensor
[src]
type Output = Tensor
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the +
operation.
impl Sub<i8> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i8) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<i8> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i8) -> Tensor
[src]
Performs the -
operation.
impl Sub<Tensor> for i8
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for i8
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Sub<u8> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u8) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<u8> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u8) -> Tensor
[src]
Performs the -
operation.
impl Sub<Tensor> for u8
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for u8
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Sub<i16> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i16) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<i16> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i16) -> Tensor
[src]
Performs the -
operation.
impl Sub<Tensor> for i16
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for i16
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Sub<u16> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u16) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<u16> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u16) -> Tensor
[src]
Performs the -
operation.
impl Sub<Tensor> for u16
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for u16
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Sub<i32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i32) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<i32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i32) -> Tensor
[src]
Performs the -
operation.
impl Sub<Tensor> for i32
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for i32
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Sub<u32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u32) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<u32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u32) -> Tensor
[src]
Performs the -
operation.
impl Sub<Tensor> for u32
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for u32
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Sub<i64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i64) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<i64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: i64) -> Tensor
[src]
Performs the -
operation.
impl Sub<Tensor> for i64
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for i64
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Sub<u64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u64) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<u64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: u64) -> Tensor
[src]
Performs the -
operation.
impl Sub<Tensor> for u64
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for u64
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Sub<f32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: f32) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<f32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: f32) -> Tensor
[src]
Performs the -
operation.
impl Sub<Tensor> for f32
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for f32
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Sub<f64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: f64) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<f64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: f64) -> Tensor
[src]
Performs the -
operation.
impl Sub<Tensor> for f64
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for f64
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Sub for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<Tensor> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a> Sub<&'a Tensor> for Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl<'a, 'b> Sub<&'a Tensor> for &'b Tensor
[src]
type Output = Tensor
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the -
operation.
impl Mul<i8> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i8) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<i8> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i8) -> Tensor
[src]
Performs the *
operation.
impl Mul<Tensor> for i8
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for i8
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Mul<u8> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u8) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<u8> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u8) -> Tensor
[src]
Performs the *
operation.
impl Mul<Tensor> for u8
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for u8
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Mul<i16> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i16) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<i16> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i16) -> Tensor
[src]
Performs the *
operation.
impl Mul<Tensor> for i16
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for i16
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Mul<u16> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u16) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<u16> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u16) -> Tensor
[src]
Performs the *
operation.
impl Mul<Tensor> for u16
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for u16
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Mul<i32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i32) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<i32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i32) -> Tensor
[src]
Performs the *
operation.
impl Mul<Tensor> for i32
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for i32
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Mul<u32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<u32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> Tensor
[src]
Performs the *
operation.
impl Mul<Tensor> for u32
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for u32
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Mul<i64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i64) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<i64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: i64) -> Tensor
[src]
Performs the *
operation.
impl Mul<Tensor> for i64
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for i64
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Mul<u64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u64) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<u64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: u64) -> Tensor
[src]
Performs the *
operation.
impl Mul<Tensor> for u64
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for u64
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Mul<f32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<f32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Tensor
[src]
Performs the *
operation.
impl Mul<Tensor> for f32
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for f32
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Mul<f64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<f64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Tensor
[src]
Performs the *
operation.
impl Mul<Tensor> for f64
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for f64
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Mul for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<Tensor> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a> Mul<&'a Tensor> for Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl<'a, 'b> Mul<&'a Tensor> for &'b Tensor
[src]
type Output = Tensor
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the *
operation.
impl Div<i8> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i8) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<i8> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i8) -> Tensor
[src]
Performs the /
operation.
impl Div<Tensor> for i8
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for i8
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.
impl Div<u8> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u8) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<u8> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u8) -> Tensor
[src]
Performs the /
operation.
impl Div<Tensor> for u8
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for u8
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.
impl Div<i16> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i16) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<i16> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i16) -> Tensor
[src]
Performs the /
operation.
impl Div<Tensor> for i16
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for i16
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.
impl Div<u16> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u16) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<u16> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u16) -> Tensor
[src]
Performs the /
operation.
impl Div<Tensor> for u16
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for u16
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.
impl Div<i32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i32) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<i32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i32) -> Tensor
[src]
Performs the /
operation.
impl Div<Tensor> for i32
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for i32
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.
impl Div<u32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u32) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<u32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u32) -> Tensor
[src]
Performs the /
operation.
impl Div<Tensor> for u32
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for u32
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.
impl Div<i64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i64) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<i64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: i64) -> Tensor
[src]
Performs the /
operation.
impl Div<Tensor> for i64
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for i64
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.
impl Div<u64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u64) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<u64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: u64) -> Tensor
[src]
Performs the /
operation.
impl Div<Tensor> for u64
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for u64
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.
impl Div<f32> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<f32> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Tensor
[src]
Performs the /
operation.
impl Div<Tensor> for f32
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for f32
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.
impl Div<f64> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: f64) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<f64> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: f64) -> Tensor
[src]
Performs the /
operation.
impl Div<Tensor> for f64
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for f64
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.
impl Div for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<Tensor> for &'a Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: Tensor) -> Tensor
[src]
Performs the /
operation.
impl<'a> Div<&'a Tensor> for Tensor
[src]
type Output = Tensor
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Tensor) -> Tensor
[src]
Performs the /
operation.