pub struct ExprBuilder;Expand description
Expression builder for convenient construction
Implementations§
Source§impl ExprBuilder
impl ExprBuilder
Sourcepub fn scalar<T: Copy>(value: T, len: usize) -> ScalarExpr<T>
pub fn scalar<T: Copy>(value: T, len: usize) -> ScalarExpr<T>
Create a scalar expression
Sourcepub fn add<L, R>(left: L, right: R) -> BinaryExpr<L, R, AddOp>
pub fn add<L, R>(left: L, right: R) -> BinaryExpr<L, R, AddOp>
Add two expressions
Sourcepub fn sub<L, R>(left: L, right: R) -> BinaryExpr<L, R, SubOp>
pub fn sub<L, R>(left: L, right: R) -> BinaryExpr<L, R, SubOp>
Subtract two expressions
Sourcepub fn mul<L, R>(left: L, right: R) -> BinaryExpr<L, R, MulOp>
pub fn mul<L, R>(left: L, right: R) -> BinaryExpr<L, R, MulOp>
Multiply two expressions
Sourcepub fn div<L, R>(left: L, right: R) -> BinaryExpr<L, R, DivOp>
pub fn div<L, R>(left: L, right: R) -> BinaryExpr<L, R, DivOp>
Divide two expressions
Sourcepub fn neg<E>(expr: E) -> NegExpr<E>where
E: TensorExpr,
pub fn neg<E>(expr: E) -> NegExpr<E>where
E: TensorExpr,
Negate an expression
Auto Trait Implementations§
impl Freeze for ExprBuilder
impl RefUnwindSafe for ExprBuilder
impl Send for ExprBuilder
impl Sync for ExprBuilder
impl Unpin for ExprBuilder
impl UnsafeUnpin for ExprBuilder
impl UnwindSafe for ExprBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more