¡@

Home 

python Programming Glossary: slicer

Efficient slicing of matrices using matrix multiplication, with Python, NumPy, SciPy

http://stackoverflow.com/questions/14477448/efficient-slicing-of-matrices-using-matrix-multiplication-with-python-numpy-s

multiplication you can do en efficient slicing creating a slicer matrix with ones at the right places. The sliced matrix will.. places. The sliced matrix will have the same type as the slicer so you can control in an efficient way your output type. Below.. Using multiplication is the second fastest option when the slicer is created as a ndarray multiplied by the csr matrix and slice..