1 //------------------------------------------------------------------------------
2 // GB_extract.h: definitions for GB_extract
3 //------------------------------------------------------------------------------
4 
5 // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
6 // SPDX-License-Identifier: Apache-2.0
7 
8 //------------------------------------------------------------------------------
9 
10 #ifndef GB_EXTRACT_H
11 #define GB_EXTRACT_H
12 #include "GB.h"
13 
14 GrB_Info GB_extract                 // C<M> = accum (C, A(I,J))
15 (
16     GrB_Matrix C,                   // input/output matrix for results
17     const bool C_replace,           // C matrix descriptor
18     const GrB_Matrix M,             // optional mask for C, unused if NULL
19     const bool Mask_comp,           // mask descriptor
20     const bool Mask_struct,         // if true, use the only structure of M
21     const GrB_BinaryOp accum,       // optional accum for Z=accum(C,T)
22     const GrB_Matrix A,             // input matrix
23     const bool A_transpose,         // A matrix descriptor
24     const GrB_Index *Rows,          // row indices
25     const GrB_Index nRows_in,       // number of row indices
26     const GrB_Index *Cols,          // column indices
27     const GrB_Index nCols_in,       // number of column indices
28     GB_Context Context
29 ) ;
30 
31 #endif
32 
33