tensr 0.1.3

A high-performance, cross-platform, multi-backend tensor/array library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// A marker trait for types that can be used with tensr. This is limiting,
/// since the end user must implement this trait for their own types.
/// Unfortunately, it is necessary for the lazy-evaluation system to work due to
/// limitations in Rust's type system.
///
/// As a user of Tensr, feel free to implement this trait for your own types to
/// use them in Tensr arrays.
pub trait TensrType {}

impl TensrType for i16 {}
impl TensrType for i32 {}
impl TensrType for i64 {}
impl TensrType for u16 {}
impl TensrType for u32 {}
impl TensrType for u64 {}

impl TensrType for f32 {}
impl TensrType for f64 {}