mirror of
https://github.com/SinTan1729/matrix-basic.git
synced 2024-12-25 21:48:35 -06:00
fix: Change name of crate in docs
This commit is contained in:
parent
7adb10f7a7
commit
b4d8791a96
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ impl<T: Mul + Add + Sub> Matrix<T> {
|
|||
/// It'll throw an error if all the given rows aren't of the same size.
|
||||
/// # Example
|
||||
/// ```
|
||||
/// use matrix::Matrix;
|
||||
/// use matrix_basic::Matrix;
|
||||
/// let m = Matrix::from(vec![vec![1,2,3], vec![4,5,6]]);
|
||||
/// ```
|
||||
/// will create the following matrix:
|
||||
|
@ -102,7 +102,7 @@ impl<T: Mul + Add + Sub> Matrix<T> {
|
|||
/// Note: Row and column numbers are 0-indexed.
|
||||
/// # Example
|
||||
/// ```
|
||||
/// use matrix::Matrix;
|
||||
/// use matrix_basic::Matrix;
|
||||
/// let m = Matrix::from(vec![vec![1,2,3],vec![4,5,6]]).unwrap();
|
||||
/// let n = Matrix::from(vec![vec![5,6]]).unwrap();
|
||||
/// assert_eq!(m.submatrix(0,0),n);
|
||||
|
@ -133,7 +133,7 @@ impl<T: Mul + Add + Sub> Matrix<T> {
|
|||
/// It'll throw an error if the provided matrix isn't square.
|
||||
/// # Example
|
||||
/// ```
|
||||
/// use matrix::Matrix;
|
||||
/// use matrix_basic::Matrix;
|
||||
/// let m = Matrix::from(vec![vec![1,2],vec![3,4]]).unwrap();
|
||||
/// assert_eq!(m.det(),Ok(-2));
|
||||
/// ```
|
||||
|
|
Loading…
Reference in a new issue