use coeus_core::{ComputeBackend, Layout, Scalar};
use super::super::ops::{BinaryOp, UnaryOp};
pub trait ElementwiseOps<T: Scalar>: ComputeBackend {
fn elementwise_binary(
&self,
op: BinaryOp,
a: &Self::DeviceBuffer<T>,
a_layout: &Layout,
b: &Self::DeviceBuffer<T>,
b_layout: &Layout,
c: &mut Self::DeviceBuffer<T>,
c_layout: &Layout,
) -> Result<(), Self::Error>;
fn elementwise_unary(
&self,
op: UnaryOp,
a: &Self::DeviceBuffer<T>,
a_layout: &Layout,
c: &mut Self::DeviceBuffer<T>,
c_layout: &Layout,
) -> Result<(), Self::Error>;
}