There should be no need for the two attributes above (`m_num_rows` and `m_num_cols`) because SGMatrix already contains these attributes (see the very end of the SGMatrix header file).