pub trait TensorMathConst {
    type Combine: TensorInstance;
    type DenseCombine: TensorInstance;

    fn add_const(self, other: Number) -> TCResult<Self::DenseCombine>;
    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::DenseCombine>;
}
Expand description

Tensor constant math operations

Required Associated Types

The return type of a math operation

The return type of a math operation with a result expected to be dense

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