Struct TensorTuple

Source
pub struct TensorTuple<T1, T2>(/* private fields */)
where
    T1: Tensor,
    T2: Tensor;

Trait Implementations§

Source§

impl<T1, T2> Add<&TensorTuple<T1, T2>> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Output = TensorTuple<T1, T2>

The resulting type after applying the + operator.
Source§

fn add(self, tensor_tuple: &Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<T1, T2> Add for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Output = TensorTuple<T1, T2>

The resulting type after applying the + operator.
Source§

fn add(self, tensor_tuple: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<T1, T2> AddAssign<&TensorTuple<T1, T2>> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn add_assign(&mut self, tensor_tuple: &Self)

Performs the += operation. Read more
Source§

impl<T1, T2> AddAssign for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn add_assign(&mut self, tensor_tuple: Self)

Performs the += operation. Read more
Source§

impl<T1, T2> Clone for TensorTuple<T1, T2>
where T1: Tensor + Clone, T2: Tensor + Clone,

Source§

fn clone(&self) -> TensorTuple<T1, T2>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T1, T2> Debug for TensorTuple<T1, T2>
where T1: Tensor + Debug, T2: Tensor + Debug,

Source§

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

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

impl<T1, T2> Default for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T1, T2> Display for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

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

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

impl<T1, T2> Div<&f64> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Output = TensorTuple<T1, T2>

The resulting type after applying the / operator.
Source§

fn div(self, tensor_rank_0: &TensorRank0) -> Self::Output

Performs the / operation. Read more
Source§

impl<T1, T2> Div<f64> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Output = TensorTuple<T1, T2>

The resulting type after applying the / operator.
Source§

fn div(self, tensor_rank_0: TensorRank0) -> Self::Output

Performs the / operation. Read more
Source§

impl<T1, T2> DivAssign<&f64> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn div_assign(&mut self, tensor_rank_0: &TensorRank0)

Performs the /= operation. Read more
Source§

impl<T1, T2> DivAssign<f64> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn div_assign(&mut self, tensor_rank_0: TensorRank0)

Performs the /= operation. Read more
Source§

impl<'a, T1, T2> From<&'a TensorTuple<T1, T2>> for (&'a T1, &'a T2)
where T1: Tensor, T2: Tensor,

Source§

fn from(tensor_tuple: &'a TensorTuple<T1, T2>) -> Self

Converts to this type from the input type.
Source§

impl<T1, T2> From<(T1, T2)> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn from(tuple: (T1, T2)) -> Self

Converts to this type from the input type.
Source§

impl<T1, T2> From<TensorTuple<T1, T2>> for (T1, T2)
where T1: Tensor, T2: Tensor,

Source§

fn from(tensor_tuple: TensorTuple<T1, T2>) -> Self

Converts to this type from the input type.
Source§

impl<T1, T2> Mul<&f64> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Output = TensorTuple<T1, T2>

The resulting type after applying the * operator.
Source§

fn mul(self, tensor_rank_0: &TensorRank0) -> Self::Output

Performs the * operation. Read more
Source§

impl<T1, T2> Mul<f64> for &TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Output = TensorTuple<T1, T2>

The resulting type after applying the * operator.
Source§

fn mul(self, tensor_rank_0: TensorRank0) -> Self::Output

Performs the * operation. Read more
Source§

impl<T1, T2> Mul<f64> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Output = TensorTuple<T1, T2>

The resulting type after applying the * operator.
Source§

fn mul(self, tensor_rank_0: TensorRank0) -> Self::Output

Performs the * operation. Read more
Source§

impl<T1, T2> MulAssign<&f64> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn mul_assign(&mut self, tensor_rank_0: &TensorRank0)

Performs the *= operation. Read more
Source§

impl<T1, T2> MulAssign<f64> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn mul_assign(&mut self, tensor_rank_0: TensorRank0)

Performs the *= operation. Read more
Source§

impl<T1, T2> Sub<&TensorTuple<T1, T2>> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Output = TensorTuple<T1, T2>

The resulting type after applying the - operator.
Source§

fn sub(self, tensor_tuple: &Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<T1, T2> Sub for &TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Output = TensorTuple<T1, T2>

The resulting type after applying the - operator.
Source§

fn sub(self, _tensor_tuple: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<T1, T2> Sub for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Output = TensorTuple<T1, T2>

The resulting type after applying the - operator.
Source§

fn sub(self, tensor_tuple: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<T1, T2> SubAssign<&TensorTuple<T1, T2>> for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn sub_assign(&mut self, tensor_tuple: &Self)

Performs the -= operation. Read more
Source§

impl<T1, T2> SubAssign for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn sub_assign(&mut self, tensor_tuple: Self)

Performs the -= operation. Read more
Source§

impl<T1, T2> Sum for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

fn sum<Ii>(iter: Ii) -> Self
where Ii: Iterator<Item = Self>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<T1, T2> Tensor for TensorTuple<T1, T2>
where T1: Tensor, T2: Tensor,

Source§

type Item = <T1 as Tensor>::Item

The type of item encountered when iterating over the tensor.
Source§

fn iter(&self) -> impl Iterator<Item = &Self::Item>

Returns an iterator. Read more
Source§

fn iter_mut(&mut self) -> impl Iterator<Item = &mut Self::Item>

Returns an iterator that allows modifying each value. Read more
Source§

fn len(&self) -> usize

Returns the number of elements, also referred to as the ‘length’.
Source§

fn norm_inf(&self) -> TensorRank0

Returns the infinity norm.
Source§

fn size(&self) -> usize

Returns the total number of entries.
Source§

fn error_count( &self, other: &Self, tol_abs: &Scalar, tol_rel: &Scalar, ) -> Option<usize>

Returns number of different entries given absolute and relative tolerances.
Source§

fn full_contraction(&self, tensor: &Self) -> TensorRank0

Returns the full contraction with another tensor.
Source§

fn is_zero(&self) -> bool

Checks whether the tensor is the zero tensor.
Source§

fn norm(&self) -> TensorRank0

Returns the tensor norm.
Source§

fn norm_squared(&self) -> TensorRank0

Returns the tensor norm squared.
Source§

fn normalize(&mut self)

Normalizes the tensor.
Source§

fn normalized(self) -> Self

Returns the tensor normalized.
Source§

fn sub_abs(&self, other: &Self) -> Self

Returns the positive difference of the two tensors.
Source§

fn sub_rel(&self, other: &Self) -> Self

Returns the relative difference of the two tensors.

Auto Trait Implementations§

§

impl<T1, T2> Freeze for TensorTuple<T1, T2>
where T1: Freeze, T2: Freeze,

§

impl<T1, T2> RefUnwindSafe for TensorTuple<T1, T2>

§

impl<T1, T2> Send for TensorTuple<T1, T2>
where T1: Send, T2: Send,

§

impl<T1, T2> Sync for TensorTuple<T1, T2>
where T1: Sync, T2: Sync,

§

impl<T1, T2> Unpin for TensorTuple<T1, T2>
where T1: Unpin, T2: Unpin,

§

impl<T1, T2> UnwindSafe for TensorTuple<T1, T2>
where T1: UnwindSafe, T2: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<A, Y, U> OdeSolver<Y, U> for A
where A: Debug, Y: Tensor, U: TensorVec<Item = Y>,