csrmm#
- class braintaichi.csrmm(data, indices, indptr, matrix, *, shape, transpose=False)#
Product of CSR sparse matrix and a dense matrix.
- Parameters:
data (
Union[Array,ndarray,bool,number,bool,int,float,complex,Quantity]) – array of shape(nse,).indices (
Union[Array,ndarray,bool,number,bool,int,float,complex]) – array of shape(nse,)indptr (
Union[Array,ndarray,bool,number,bool,int,float,complex]) – array of shape(shape[0] + 1,)and dtypeindices.dtypeB – array of shape
(shape[0] if transpose else shape[1], cols)anddata.dtype (dtype)
shape (
Tuple[int,int]) – length-2 tuple representing the matrix shapetranspose (
bool) – boolean specifying whether to transpose the sparse matrixcomputing. (before)
- Returns:
array of shape
(shape[1] if transpose else shape[0], cols)representing the matrix-matrix product.- Return type:
C