Skip to content

[Feature] Non-consuming scalar multiplication #5

Description

@hedgehog1024

There are impl Mul<i32> for Matrix and impl Mul<Matrix> for i32 which forwards to first impl. These methods take Matrix by value. However, implementations of these methods requires only reference to Matrix, so it should be possible to write impl<'a> Mul<i32> for &'a Matrix and impl<'a> Mul<&'a Matrix> for i32 respectively.

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