Trait tc_collection::tensor::TensorMathConst
source · pub trait TensorMathConst {
type Combine: TensorInstance;
// Required methods
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
Required Associated Types§
sourcetype Combine: TensorInstance
type Combine: TensorInstance
The return type of a math operation