| Crates.io | hcomplex |
| lib.rs | hcomplex |
| version | 0.2.0 |
| created_at | 2019-04-18 06:38:45.722028+00 |
| updated_at | 2020-12-05 14:24:21.849814+00 |
| description | Lightweight complex and hypercomplex algebra library |
| homepage | https://github.com/nthend/hcomplex |
| repository | https://github.com/nthend/hcomplex |
| max_upload_size | |
| id | 128637 |
| size | 63,599 |
Lightweight complex and hypercomplex algebra library.
Complex<T> - 2-dimensional commutative and associative algebra.Quaternion<T> - 4-dimensional associative but non-commutative algebra.Octonion<T> - 8-dimensional non-commutative and non-associative algebra.Sedenion<T> - 16-dimensional non-commutative and non-associative algebra with nontrivial zero divisors.Construct<T, A<T>> where A<T> is previous algebra.transform::Moebius<T, A<T>> - Moebius transform, where A<T> is some algebra.To construct hypercomplex types from your own type you need to implement Algebra trait for it.
Crate could be used in no_std mode.
std - Use std. Enabled by default.random - Hypercomplex number random generator.approx - Approximate comparison of hypercomplex numbers.cargo test --features random,approx
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.