From 15a1b2ffc4bdf46f04acd9334867117993863219 Mon Sep 17 00:00:00 2001 From: Ayoub Cherkaoui <128156731+ayoub317@users.noreply.github.com> Date: Tue, 31 Dec 2024 16:53:42 +0100 Subject: [PATCH] Update C API tutorial (#11131) Co-authored-by: a.cherkaoui --- doc/tutorials/c_api_tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorials/c_api_tutorial.rst b/doc/tutorials/c_api_tutorial.rst index 2346ff9ac9d8..45956c38fd17 100644 --- a/doc/tutorials/c_api_tutorial.rst +++ b/doc/tutorials/c_api_tutorial.rst @@ -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