The Multivariate Hypergeometric Distribution

Extract a specified submatrix from a sparse matrix rapidly

1 | ```
submatrix(m, rows, cols)
``` |

`m` |
The matrix |

`rows` |
The integer vectors of row index(es) |

`cols` |
The integer vectors of column index(es) |

This function implements faster submatrix extraction algorithm for the
`CsparseMatrix`

class in the package Matrix.

This function will return the specified submatrix as a matrix of corresponding type.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.