Skip to content

Matrix vector multiplication incorrect #2

@deanm

Description

@deanm

The matrix * vector multiplication is incorrect, effectively treating the matrix as row major when it is column major.

For example for (int j = 0; j < N; j++) sum += a[i][j] * b[j]; should be for (int j = 0; j < N; j++) sum += a[j][i] * b[j];, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions