mirror of
https://github.com/SinTan1729/matrix-basic.git
synced 2025-04-18 08:57:40 -05:00
Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
4cdc29aaa1 | |||
59119e2c30 |
2 changed files with 5 additions and 4 deletions
|
@ -1,10 +1,11 @@
|
|||
[](https://crates.io/crates/matrix-basic)
|
||||
# `matrix-basic`
|
||||
|
||||
### A Rust crate for very basic matrix operations
|
||||
### A Rust crate for very basic matrix operations.
|
||||
|
||||
This is a crate for very basic matrix operations with any type that supports addition, substraction,
|
||||
and multiplication. Additional properties might be needed for certain operations.
|
||||
This is a crate for very basic matrix operations with any type that supports addition, substraction, multiplication,
|
||||
negation, has a zero defined, and implements the Copy trait. Additional properties (e.g. division, existence of one etc.)
|
||||
might be needed for certain operations.
|
||||
|
||||
I created it mostly to learn how to use generic types and traits.
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ pub struct Matrix<T: ToMatrix> {
|
|||
}
|
||||
|
||||
impl<T: ToMatrix> Matrix<T> {
|
||||
/// Creates a matrix from given 2D "array" in a `Vec<Vec<T>>` form.
|
||||
/// Creates a matrix from given 2D "array" in a [`Vec<Vec<T>>`] form.
|
||||
/// It'll throw an error if all the given rows aren't of the same size.
|
||||
/// # Example
|
||||
/// ```
|
||||
|
|
Loading…
Reference in a new issue