Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
fp2023:lab07 [2023/04/18 17:46]
pdmatei created
fp2023:lab07 [2023/04/21 12:39] (current)
pdmatei
Line 30: Line 30:
 **7.1.5.** Write a function which returns the **rest** of a matrix, **without** its **first** column: **7.1.5.** Write a function which returns the **rest** of a matrix, **without** its **first** column:
 <code scala> <code scala>
-def remCol(m: Matrix): ​List[Int] ​= ???+def remCol(m: Matrix): ​Matrix ​= ???
 </​code>​ </​code>​
  
Line 40: Line 40:
 **7.1.7.** (!) Implement multiplication of two matrices. Think about the sequence of steps you want to perform. Transposition will be your first step. **7.1.7.** (!) Implement multiplication of two matrices. Think about the sequence of steps you want to perform. Transposition will be your first step.
 <code scala> <code scala>
-def mult(m: Matrix): Matrix = ???+def mult(m1: Matrix, m2: Matrix): Matrix = ???
 </​code>​ </​code>​