Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaling a Matrix by its undlying field. #1463

Open
Leonhard-Moske opened this issue Nov 14, 2024 · 0 comments
Open

Scaling a Matrix by its undlying field. #1463

Leonhard-Moske opened this issue Nov 14, 2024 · 0 comments

Comments

@Leonhard-Moske
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant