acme-tensor 0.3.1

A comprehensive tensor library for Rust with support for automatic-differentiation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
    Appellation: default <test>
    Contrib: FL03 <jo3mccain@icloud.com>
*/
#![cfg(test)]

fn addition<A, B, C>(a: A, b: B) -> C
where
    A: std::ops::Add<B, Output = C>,
{
    a + b
}

#[test]
fn compiles() {
    let result = addition(2, 2);
    assert_eq!(result, 4);
}