pub trait TensorMathConst {
    type Combine: TensorInstance;
    fn add_const(self, other: Number) -> TCResult<Self::Combine>;
fn div_const(self, other: Number) -> TCResult<Self::Combine>;
fn log_const(self, base: Number) -> TCResult<Self::Combine>;
fn mul_const(self, other: Number) -> TCResult<Self::Combine>;
fn pow_const(self, other: Number) -> TCResult<Self::Combine>;
fn sub_const(self, other: Number) -> TCResult<Self::Combine>; }
Expand description

Tensor constant math operations

Associated Types

The result type of a math operation

Required methods

Add a constant to this tensor

Divide self by other.

Element-wise logarithm

Multiply self by other.

Raise self to the power other.

Subtract other from self.

Implementors