Skip to main content

Size

This function returns the size of sparse matrix.

  • If Dims equal to 1 then total number of rows are returned.
  • If Dims is equal to 2 then total number of columns are return.
  • In case dims is absent then nrow*ncol are returned.