Compare commits

..

No commits in common. "main" and "0.5.0" have entirely different histories.
main ... 0.5.0

2 changed files with 4 additions and 5 deletions

View file

@ -1,11 +1,10 @@
[![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, 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.
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.
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
/// ```