Skip to content

Separate out Matrix2D implementations #13

@dawnandrew100

Description

@dawnandrew100

Matrix2D is currently a single file >1300 LOC monolith.

I want the different implementations of Matrix2D to be split into different files so that navigating through the code is easier. I also want the tests to be in their own separate file.

The exact splitting of the struct into files is tbd but in general, the files should be split as follows:

  • Math (Mul, Div, Sub, Add, dot)
  • Basic utility (shape, size, max, min, etc)
  • Matrix creation (new, full, from flat, identity, etc)
  • Matrix manipulation (inverse, transpose, reshape, swap rows, etc)
  • Indexing
  • Iteration
  • Display
  • Rounding

Exact splits subject to change (depending on how flexible Rust is with implementations)

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