Skip to content

Generic Matrix/Vector/N-Dimensional Type #5

Description

@mihirparadkar

Why are the matrix and vector types separate depending on the value they contain? (i.e. Matrix32[M, N] and Matrix64[M, N] instead of Matrix[M, N, T]) ? Since the implementations of matrix and vector operations for 32-bit and 64-bit floats are effectively identical, wouldn't generic procs specialized on the element type allow a lot less code duplication? Couldn't it would also allow easier scaling to complex matrices/vectors and boolean vectors for more concise and expressive indexing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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