dimforge / dimforge/nalgebra

Scaling a Matrix by its undlying field.

Open
#1,463 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

The class `nalgebra::base::matrix::Matrix` implements a function `scale` which can scale every entry with a real variable.
In my case I want to scale the matrix with its underlying field (in my case a complex number).
The best/convenient way I found to do that is to create an identity matrix and multiply both of them, but this seems very expensive.
Is there a reason why scale only supprots real fields and not the type T of the matrix?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.