1 //------------------------------------------------------------------------------
2 // GxB_Matrix_import_FullR: import a matrix in full format, held by row
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 #include "GB_export.h"
11 
GxB_Matrix_import_FullR(GrB_Matrix * A,GrB_Type type,GrB_Index nrows,GrB_Index ncols,void ** Ax,GrB_Index Ax_size,bool is_uniform,const GrB_Descriptor desc)12 GrB_Info GxB_Matrix_import_FullR  // import a full matrix, held by row
13 (
14     GrB_Matrix *A,      // handle of matrix to create
15     GrB_Type type,      // type of matrix to create
16     GrB_Index nrows,    // number of rows of the matrix
17     GrB_Index ncols,    // number of columns of the matrix
18 
19     void **Ax,          // values
20     GrB_Index Ax_size,  // size of Ax in bytes
21     bool is_uniform,    // if true, A has uniform values (TODO:::unsupported)
22 
23     const GrB_Descriptor desc
24 )
25 {
26 
27     //--------------------------------------------------------------------------
28     // check inputs and get the descriptor
29     //--------------------------------------------------------------------------
30 
31     GB_WHERE1 ("GxB_Matrix_import_FullR (&A, type, nrows, ncols, "
32         "&Ax, Ax_size, is_uniform, desc)") ;
33     GB_BURBLE_START ("GxB_Matrix_import_FullR") ;
34     GB_GET_DESCRIPTOR (info, desc, xx1, xx2, xx3, xx4, xx5, xx6, xx7) ;
35 
36     //--------------------------------------------------------------------------
37     // import the matrix
38     //--------------------------------------------------------------------------
39 
40     info = GB_import (A, type, ncols, nrows, false,
41         NULL, 0,        // Ap
42         NULL, 0,        // Ah
43         NULL, 0,        // Ab
44         NULL, 0,        // Ai
45         Ax,   Ax_size,  // Ax
46         0, false, 0,
47         GxB_FULL, false,                    // full by row
48         is_uniform, Context) ;              // full by row
49 
50     GB_BURBLE_END ;
51     return (info) ;
52 }
53 
54