Skip to content

Commit

Permalink
fix indexing for complex.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew authored and andrew committed Nov 29, 2009
1 parent f27ef82 commit ceba80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pmc/pla_matrix_types.h
Expand Up @@ -105,9 +105,9 @@ do { \
(((((row) * (numcols)) + (col)) * 2) + 1)

#define R_INDEX_XY_COLMAJOR(numrows, numcols, row, col) \
(((col) * (numrows) * 2) + (row))
((((col) * (numrows)) + (row)) * 2)
#define I_INDEX_XY_COLMAJOR(numrows, numcols, row, col) \
(((col) * (numrows * 2)) + (row) + 1)
(((((col) * (numrows)) + (row)) * 2) + 1)

#define R_INDEX_XY(flags, rowsize, colsize, row, col) \
(((IS_TRANSPOSED(flags)) ? \
Expand Down

0 comments on commit ceba80e

Please sign in to comment.