From f571cdfcdaef661586784e2498f9ac69e97b5ea5 Mon Sep 17 00:00:00 2001 From: davidrobert99 Date: Thu, 21 Apr 2022 10:43:25 +0100 Subject: [PATCH] matrix mult update --- subjects/matrix_mult/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subjects/matrix_mult/README.md b/subjects/matrix_mult/README.md index cca64869..5305762b 100644 --- a/subjects/matrix_mult/README.md +++ b/subjects/matrix_mult/README.md @@ -10,21 +10,21 @@ Implement the methods: - `row(n)` which returns the `n`th row in the matrix. -- `col(n)` which returns the `n`th +- `col(n)` which returns the `n`th column in the matrix. Define the matrix multiplication by implementing the std::ops::Mul for the type matrix ### Expected Functions ```rust -impl Matrix {Esta errado o public, as funçoes row e col estao baralhadas com number of rows e number of colmns +impl Matrix { pub fn number_of_cols(&self) -> usize { } - pub fn number_of_row(&self, n: usize) -> usize { + pub fn number_of_rows(&self) -> usize { } - pub fn rows(&self) -> Vec { + pub fn rows(&self, n: usize) -> Vec { } pub fn col(&self, n: usize) -> Vec {