Skip to content

Commit 31fedcd

Browse files
authored
release: v0.1.4 — name MatrixData structs & update version (#39)
* fix: add name for different MatrixData * release: v0.1.4
1 parent 99f52c8 commit 31fedcd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ project(cupdlpx LANGUAGES C CXX CUDA)
88

99
set(CUPDLPX_VERSION_MAJOR 0)
1010
set(CUPDLPX_VERSION_MINOR 1)
11-
set(CUPDLPX_VERSION_PATCH 3)
11+
set(CUPDLPX_VERSION_PATCH 4)
1212

1313
set(CUPDLPX_VERSION "${CUPDLPX_VERSION_MAJOR}.${CUPDLPX_VERSION_MINOR}.${CUPDLPX_VERSION_PATCH}")
1414
add_compile_definitions(CUPDLPX_VERSION="${CUPDLPX_VERSION}")

include/cupdlpx_types.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,28 +141,28 @@ extern "C"
141141

142142
union MatrixData
143143
{
144-
struct
144+
struct MatrixDense
145145
{ // Dense (row-major)
146146
const double *A; // m*n
147147
} dense;
148148

149-
struct
149+
struct MatrixCSR
150150
{ // CSR
151151
int nnz;
152152
const int *row_ptr;
153153
const int *col_ind;
154154
const double *vals;
155155
} csr;
156156

157-
struct
157+
struct MatrixCSC
158158
{ // CSC
159159
int nnz;
160160
const int *col_ptr;
161161
const int *row_ind;
162162
const double *vals;
163163
} csc;
164164

165-
struct
165+
struct MatrixCOO
166166
{ // COO
167167
int nnz;
168168
const int *row_ind;

0 commit comments

Comments
 (0)