Skip to content

Optimize operations on matrices containing a single data type #1709

@josdejong

Description

@josdejong

The performance of matrix operations is optimized for matrices containing a single datatype (like numbers). This only applies when a matrix is created passing the datatype. The performance can probably be improved a lot by automatically detecting the datatype of matrix contents on creation.

From this I see two interesting action points:

  1. When creating a matrix, the datatype (like number) should be automatically determined so any calculations on this matrix are way faster.
  2. Maybe the matrix type should be determined lazily.
  3. From the benchmarks, I don't see a difference in performance for det whilst it should be much faster. I think that maybe the datatype information is lost inside, maybe inside lup. If we can fix that it would mean another huge bump in the performance of det :), see Improve performance of determinant #908

For reference: #1154 (comment), #908 (comment)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions