docs.rs failed to build rusty-matrix-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Rusty Matrix
A generic matrix implementation for Rust.
Matrix implementations use the trait Matrix<T>
and the default implementations are:
StackMatrix<T, X, Y>
- A stack-based matrix implementation whereT
is the type,X
is the amount of columns andY
is the amount of rows. The advantage of this implementation is the ability to check mathematical operations at compile time against otherStackMatrix
's.HeapMatrix<T>
- A heap-based matrix implementation whereT
is the type of the matrix. Due to the limitations of the heap-based solution, it is not possible to check mathematical operations at compile time. However,HeapMatrix
s are able to be grown and shrank (TODO) during runtime.
Regardless of which implementation you use, both implementations can use the mathematical operators on each other. For example:
let stack_mat = new;
let heap_mat = new_owned_2d;
stack_mat * heap_mat // Is equal to:
// Ok(HeapMatrix::new_owned_2d([
// [9, 12, 15],
// [19, 26, 33],
// [29, 40, 51]
// ]))
This crate requires a nightly version of Rust >= 1.53.
The GitHub repository is a mirror of my self-hosted Gitea instance.