scipy/scipy — pull request #208 by larsmans (2012-05-09 22:31:32+00:00)
Title: ENH implement unary functions on CSR/CSC matrices that don't change the sparsity

This PR adds `sin`, `tan`, `arcsin`, `arctan`, `sinh`, `tanh`, `arcsinh`, `arctanh`, `rint`, `sign`, `expm1`, `log1p`, `deg2rad`, `rad2deg`, `floor`, `ceil` and `trunc` members to CSR and CSC matrices. It replaces PR #183 and reuses @WarrenWeckesser's code for adding these methods.