pub trait SemiringOps: GraphOp {
// Required methods
fn add_op() -> Self;
fn mul_op() -> Self;
fn dot_general(config: DotGeneralConfig) -> Self;
fn reduce_sum(axes: Vec<usize>, input_shape: Vec<DimExpr>) -> Self;
fn transpose_op(perm: Vec<usize>) -> Self;
fn reshape(from_shape: Vec<DimExpr>, to_shape: Vec<DimExpr>) -> Self;
fn broadcast_in_dim(shape: Vec<DimExpr>, dims: Vec<usize>) -> Self;
fn extract_diag(axis_a: usize, axis_b: usize) -> Self;
fn embed_diag(axis_a: usize, axis_b: usize) -> Self;
}Required Methods§
fn add_op() -> Self
fn mul_op() -> Self
fn dot_general(config: DotGeneralConfig) -> Self
fn reduce_sum(axes: Vec<usize>, input_shape: Vec<DimExpr>) -> Self
fn transpose_op(perm: Vec<usize>) -> Self
fn reshape(from_shape: Vec<DimExpr>, to_shape: Vec<DimExpr>) -> Self
fn broadcast_in_dim(shape: Vec<DimExpr>, dims: Vec<usize>) -> Self
fn extract_diag(axis_a: usize, axis_b: usize) -> Self
fn embed_diag(axis_a: usize, axis_b: usize) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.