Expand description
Core tensor types plus execution backends and kernels.
§Examples
ⓘ
use tenferro_tensor::{cpu::CpuBackend, Tensor, TypedTensor};
let mut backend = CpuBackend::new();
let a = Tensor::F64(TypedTensor::from_vec(vec![2], vec![1.0, 2.0]));
let b = Tensor::F64(TypedTensor::from_vec(vec![2], vec![3.0, 4.0]));
let c = tenferro_tensor::cpu::add(&a, &b);
assert_eq!(c.shape(), &[2]);Re-exports§
pub use backend::default_exec_session;pub use backend::SemiringBackend;pub use backend::TensorBackend;pub use backend::TensorExec;pub use config::*;pub use error::*;pub use types::*;