|
|
@ -37,6 +37,8 @@ impl Mul for Matrix<T> { |
|
|
|
Here is a program to test your function. |
|
|
|
Here is a program to test your function. |
|
|
|
|
|
|
|
|
|
|
|
```rust |
|
|
|
```rust |
|
|
|
|
|
|
|
use matrix_mult::*; |
|
|
|
|
|
|
|
|
|
|
|
fn main() { |
|
|
|
fn main() { |
|
|
|
let matrix: Matrix<u32> = Matrix(vec![vec![3, 6], vec![8, 0]]); |
|
|
|
let matrix: Matrix<u32> = Matrix(vec![vec![3, 6], vec![8, 0]]); |
|
|
|
println!("{:?}", matrix.col(0)); |
|
|
|
println!("{:?}", matrix.col(0)); |
|
|
|