Linear

Struct Linear 

Source
pub struct Linear {}
Expand description

Linear algebra implementation

Implementations§

Source§

impl Linear

Source

pub fn new() -> Self

Source

pub fn wrap_real<T: Copy>( &self, pointer: ConstRealPointer<T>, ) -> Expression<ReadableReal<T>>

Wrap a real pointer as an expression

Source

pub fn wrap_complex<T: Copy>( &self, pointer: ConstComplexPointer<T>, ) -> Expression<ReadableComplex<T>>

Wrap a complex pointer as an expression

Source

pub fn wrap_split<T: Copy>( &self, pointer: ConstSplitPointer<T>, ) -> Expression<ReadableSplit<T>>

Wrap a split pointer as an expression

Source

pub fn wrap_real_mut<T: Copy>( &self, pointer: RealPointer<T>, size: usize, ) -> WritableExpression<ReadableReal<T>>

Wrap a mutable real pointer as a writable expression

Source

pub fn wrap_complex_mut<T: Copy>( &self, pointer: ComplexPointer<T>, size: usize, ) -> WritableExpression<ReadableComplex<T>>

Wrap a mutable complex pointer as a writable expression

Source

pub fn wrap_split_mut<T: Copy>( &self, pointer: SplitPointer<T>, size: usize, ) -> WritableExpression<ReadableSplit<T>>

Wrap a mutable split pointer as a writable expression

Source

pub fn fill_real<T, E>( &self, pointer: RealPointer<T>, expr: &Expression<E>, size: usize, )
where E: ExpressionBase<Output = T>, T: Copy,

Fill a real array with values from an expression

Source

pub fn fill_complex<T, E>( &self, pointer: ComplexPointer<T>, expr: &Expression<E>, size: usize, )
where E: ExpressionBase<Output = Complex<T>>, T: Copy,

Fill a complex array with values from an expression

Source

pub fn fill_split<T, E>( &self, pointer: SplitPointer<T>, expr: &Expression<E>, size: usize, )
where E: ExpressionBase<Output = Complex<T>>, T: Copy,

Fill a split array with values from an expression

Source

pub fn reserve<T>(&mut self, _size: usize)

Reserve temporary storage

Auto Trait Implementations§

§

impl Freeze for Linear

§

impl RefUnwindSafe for Linear

§

impl Send for Linear

§

impl Sync for Linear

§

impl Unpin for Linear

§

impl UnwindSafe for Linear

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> 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, 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.