We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are there any reasons why i and j are flipped? I thought it should be a[ (i)*lda + (j) ] instead of the code below:
i
j
a[ (i)*lda + (j) ]
#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
The text was updated successfully, but these errors were encountered:
I got the same question!!
Sorry, something went wrong.
https://www.youtube.com/watch?v=PhjildK5oO8
There explaination in the notes: ‘Create macros so that the matrices are stored in column-major order'
No branches or pull requests
Are there any reasons why
i
andj
are flipped? I thought it should bea[ (i)*lda + (j) ]
instead of the code below:Example:
Result of matrices a, b and cref (randomized integers):
The text was updated successfully, but these errors were encountered: