use crate::{Result, Tensor};
pub fn neg<T>(tensor: &Tensor<T>) -> Result<Tensor<T>>
where
T: Clone + Default + Send + Sync + 'static + std::ops::Neg<Output = T>,
{
crate::ops::numpy_compat::negative(tensor)
}
pub fn log<T>(tensor: &Tensor<T>) -> Result<Tensor<T>>
where
T: Clone + Default + Send + Sync + 'static + scirs2_core::num_traits::Float,
{
crate::ops::numpy_compat::log(tensor)
}
pub fn abs<T>(tensor: &Tensor<T>) -> Result<Tensor<T>>
where
T: Clone + Default + Send + Sync + 'static + scirs2_core::num_traits::Signed,
{
crate::ops::numpy_compat::absolute(tensor)
}
pub use crate::ops::numpy_compat::{
absolute, ceil, cos, cosh, exp, exp2, expm1, fix, floor, log10, log1p, log2, negative,
reciprocal, rint, sign, signbit, sin, sinh, sqrt, square, tan, tanh, trunc,
};