Skip to content

Commit

Permalink
Update C API tutorial (#11131)
Browse files Browse the repository at this point in the history
Co-authored-by: a.cherkaoui <[email protected]>
  • Loading branch information
ayoub317 and a.cherkaoui authored Dec 31, 2024
1 parent bec2d32 commit 15a1b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorials/c_api_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Sample examples along with Code snippet to use C API functions
const int data1[] = { 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 };
// 2D matrix
const int ROWS = 5, COLS = 3;
const int ROWS = 6, COLS = 3;
const int data2[ROWS][COLS] = { {1, 2, 3}, {2, 4, 6}, {3, -1, 9}, {4, 8, -1}, {2, 5, 1}, {0, 1, 5} };
DMatrixHandle dmatrix1, dmatrix2;
// Pass the matrix, no of rows & columns contained in the matrix variable
Expand Down

0 comments on commit 15a1b2f

Please sign in to comment.