COO.dot¶
-
COO.
dot
(other)[source]¶ Performs the equivalent of
x.dot(y)
forCOO
.Parameters: other (Union[COO, numpy.ndarray, scipy.sparse.spmatrix]) – The second operand of the dot product operation. Returns: The result of the dot product. If the result turns out to be dense, then a dense array is returned, otherwise, a sparse array. Return type: {COO, numpy.ndarray} See also
dot()
- Equivalent function for two arguments.
numpy.dot
- Numpy equivalent function.
scipy.sparse.coo_matrix.dot()
- Scipy equivalent function.
Examples
>>> x = np.arange(4).reshape((2, 2)) >>> s = COO.from_numpy(x) >>> s.dot(s) array([[ 2, 3], [ 6, 11]], dtype=int64)