1 //------------------------------------------------------------------------------
2 // GB_kron.h: definitions for GB_kron
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_KRON_H
11 #define GB_KRON_H
12 #include "GB.h"
13 
14 GrB_Info GB_kron                    // C<M> = accum (C, kron(A,B))
15 (
16     GrB_Matrix C,                   // input/output matrix for results
17     const bool C_replace,           // if true, clear C before writing to it
18     const GrB_Matrix M,             // optional mask for C, unused if NULL
19     const bool Mask_comp,           // if true, use !M
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_BinaryOp op,          // defines '*' for kron(A,B)
23     const GrB_Matrix A,             // input matrix
24     bool A_transpose,               // if true, use A' instead of A
25     const GrB_Matrix B,             // input matrix
26     bool B_transpose,               // if true, use B' instead of B
27     GB_Context Context
28 ) ;
29 
30 GrB_Info GB_kroner                  // C = kron (A,B)
31 (
32     GrB_Matrix C,                   // output matrix (static header)
33     const bool C_is_csc,            // desired format of C
34     const GrB_BinaryOp op,          // multiply operator
35     const GrB_Matrix A,             // input matrix
36     bool A_is_pattern,              // true if values of A are not used
37     const GrB_Matrix B,             // input matrix
38     bool B_is_pattern,              // true if values of B are not used
39     GB_Context Context
40 ) ;
41 
42 #endif
43 
44