March 2019
Intermediate to advanced
336 pages
9h 9m
English
The NewSparseMatrix method takes the m and n as parameters and returns the initialized matrix:
// New SparseMatrix methodfunc NewSparseMatrix(m int, n int) *SparseMatrix { return &SparseMatrix{ cells: []LOL{}, shape: [2]int{m, n}, }}
Read now
Unlock full access