sklearn.utils.extmath.safe_sparse_dot(a, b, dense_output=False)
[source]
Dot product that handle the sparse matrix case correctly
Uses BLAS GEMM as replacement for numpy.dot where possible to avoid unnecessary copies.
Parameters: |
|
---|---|
Returns: |
|
© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.utils.extmath.safe_sparse_dot.html