Skip to content

Change array orientation to make indexing more efficient #1

@willtownes

Description

@willtownes

Currently (due to its R origin) the glmpca method is implemented with frequent indexing along columns of various matrices. This is because R stores data in column-major order so it is faster to retrieve a column than a row. In numpy the data are stored in row-major order so it may be more efficient to transpose everything and index along rows instead. The downside of this would be making it harder to compare the code to the R code. Another possibility would be to force the arrays to use the column-major order with order=F but it's not clear that this will persist throughout all iterations after various transformations and multiplications.

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