Skip to main content

MatlabNumericOps

Struct MatlabNumericOps 

Source
pub struct MatlabNumericOps;
Expand description

Helpers for constructing common MATLAB numeric operations.

Implementations§

Source§

impl MatlabNumericOps

Source

pub fn elem_mul(a: MatlabExpr, b: MatlabExpr) -> MatlabExpr

Element-wise multiply a .* b.

Source

pub fn elem_div(a: MatlabExpr, b: MatlabExpr) -> MatlabExpr

Element-wise divide a ./ b.

Source

pub fn mat_mul(a: MatlabExpr, b: MatlabExpr) -> MatlabExpr

Matrix multiply a * b.

Source

pub fn mat_pow(a: MatlabExpr, n: MatlabExpr) -> MatlabExpr

Matrix power a ^ n.

Source

pub fn elem_pow(a: MatlabExpr, n: MatlabExpr) -> MatlabExpr

Element-wise power a .^ n.

Source

pub fn range(start: MatlabExpr, stop: MatlabExpr) -> MatlabExpr

Colon range start:stop.

Source

pub fn range_step( start: MatlabExpr, step: MatlabExpr, stop: MatlabExpr, ) -> MatlabExpr

Colon range with step start:step:stop.

Source

pub fn abs(x: MatlabExpr) -> MatlabExpr

abs(x).

Source

pub fn sum(x: MatlabExpr) -> MatlabExpr

sum(x).

Source

pub fn prod(x: MatlabExpr) -> MatlabExpr

prod(x).

Source

pub fn min(x: MatlabExpr) -> MatlabExpr

min(x).

Source

pub fn max(x: MatlabExpr) -> MatlabExpr

max(x).

Source

pub fn mean(x: MatlabExpr) -> MatlabExpr

mean(x).

Source

pub fn std(x: MatlabExpr) -> MatlabExpr

std(x).

Source

pub fn sqrt(x: MatlabExpr) -> MatlabExpr

sqrt(x).

Source

pub fn norm(x: MatlabExpr) -> MatlabExpr

norm(x).

Source

pub fn det(a: MatlabExpr) -> MatlabExpr

det(A).

Source

pub fn inv(a: MatlabExpr) -> MatlabExpr

inv(A).

Source

pub fn eig(a: MatlabExpr) -> MatlabExpr

eig(A).

Source

pub fn svd(a: MatlabExpr) -> MatlabExpr

svd(A).

Source

pub fn linspace(a: MatlabExpr, b: MatlabExpr, n: MatlabExpr) -> MatlabExpr

linspace(a, b, n).

Source

pub fn matlab_mod(a: MatlabExpr, m: MatlabExpr) -> MatlabExpr

mod(a, m).

Source

pub fn floor(x: MatlabExpr) -> MatlabExpr

floor(x).

Source

pub fn ceil(x: MatlabExpr) -> MatlabExpr

ceil(x).

Source

pub fn round(x: MatlabExpr) -> MatlabExpr

round(x).

Source

pub fn fix(x: MatlabExpr) -> MatlabExpr

fix(x) — truncate toward zero.

Source

pub fn rem(a: MatlabExpr, m: MatlabExpr) -> MatlabExpr

rem(a, m) — remainder (sign matches dividend).

Auto Trait Implementations§

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.