Compare commits

...

2 commits
0.5.0 ... main

Author SHA1 Message Date
4cdc29aaa1
docs: Updated README.md 2023-05-28 17:31:01 -05:00
59119e2c30
docs: Added a hyperlink 2023-05-28 17:25:44 -05:00
2 changed files with 5 additions and 4 deletions

View file

@ -1,10 +1,11 @@
[![crate.io badge](https://img.shields.io/crates/d/matrix-basic)](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.

View file

@ -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
/// ```