adding the missing underscore

This commit is contained in:
Jidong Xiao
2025-01-31 19:28:21 -05:00
committed by JamesFlare1212
parent e6b2bb69ef
commit 142557deab

View File

@@ -155,9 +155,9 @@ Consider these two matrices:
If we want to get the contents of an entire row or column, its annoying to have to extract the values one by If we want to get the contents of an entire row or column, its annoying to have to extract the values one by
one using get(), especially since our implementation is a “safe” accessor so we cant use some of the coding one using get(), especially since our implementation is a “safe” accessor so we cant use some of the coding
shortcuts we normally use. To fix this, you will implement two more accessors, get row() and get col(). shortcuts we normally use. To fix this, you will implement two more accessors, get_row() and get_col().
Both functions take one unsigned int and return a double*. For get row() the argument is the number of Both functions take one unsigned int and return a double\*. For get_row() the argument is the number of
row to retrieve, while for get col() the argument is the number of the column to retrieve. If the requested row to retrieve, while for get_col() the argument is the number of the column to retrieve. If the requested
row/column is outside of the matrix bounds, the method should return a pointer set to NULL. row/column is outside of the matrix bounds, the method should return a pointer set to NULL.
The final method we expect you to implement, quarter(), is not a traditional matrix operation. The method The final method we expect you to implement, quarter(), is not a traditional matrix operation. The method
takes no arguments and returns a Matrix* containing four new Matrix elements in order: an Upper Left takes no arguments and returns a Matrix* containing four new Matrix elements in order: an Upper Left