1 unstable release
0.0.0 | Dec 12, 2024 |
---|
#275 in #linear-algebra
136 downloads per month
150KB
4.5K
SLoC
This package is experimental. Expect frequent updates to the repository with breaking changes and infrequent releases.
computation-types
Types for abstract mathematical computation.
Note, Documentation is currently lacking. The best way to learn about this framework is to read the tests and see how it is used to implement algorithms in Optimal.
Examples
use computation_types::{named_args, val, Run};
let one_plus_one = val!(1) + val!(1);
assert_eq!(one_plus_one.to_string(), "(1 + 1)");
assert_eq!(one_plus_one.run(), 2);
License: MIT
lib.rs
:
Types for abstract mathematical computation.
Note, Documentation is currently lacking. The best way to learn about this framework is to read the tests and see how it is used to implement algorithms in Optimal.
Examples
use computation_types::{named_args, val, Run};
let one_plus_one = val!(1) + val!(1);
assert_eq!(one_plus_one.to_string(), "(1 + 1)");
assert_eq!(one_plus_one.run(), 2);
Dependencies
~1.8–2.4MB
~49K SLoC