Skip to content

Why are i and j flipped? #17

@minhkhang1795

Description

@minhkhang1795

Are there any reasons why i and j are flipped? I thought it should be a[ (i)*lda + (j) ] instead of the code below:

#define A(i,j) a[ (j)*lda + (i) ]

Example:
Result of matrices a, b and cref (randomized integers):

// a
83.000000 86.000000 
77.000000 15.000000 
// b
93.000000 35.000000 
86.000000 92.000000 
// cref
10463.000000 8544.000000 
14284.000000 8803.000000 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions