1 | initial version |
The syntax was unexpectedly easy. It is similar to the one used in Matlab/Octave. We just use the syntax A[i-1:p,j-1:q]
, wherei,j
are the positions from which we want to extract the p x q
matrix, to get the desired answer. So, basically matrix is just storing a list of list as an array data structure.