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

Implement norm on vectors with custom metric #258

Closed
FrederikLauber opened this issue May 19, 2017 · 3 comments
Closed

Implement norm on vectors with custom metric #258

FrederikLauber opened this issue May 19, 2017 · 3 comments

Comments

@FrederikLauber
Copy link

Hello,

it would be great if we could get a norm on the vector with a custom metric.
As a physicist, having the possibility to use a minkowski metric or similar would be very nice.

Thanks in advance

@sebcrozet
Copy link
Member

sebcrozet commented May 22, 2017

Hi!

That would be a great addition. Which metric do you think nalgebra should provide by default? (Besides the metrics induced by the p-norms.)

@FrederikLauber
Copy link
Author

FrederikLauber commented May 23, 2017

I would argue none because most problems will have their very own metric.
Minkowski is used quite a lot in special relativity but if there is no significant speed boost,
I would the user just define its own.

I also already tried to get this working but am apparently not good enough in rust to constrain
the input vector and input metric to the same dimensions.

@sebcrozet
Copy link
Member

I agree we should let the user define its own specific metric. If you want to try implementing this, you may draw some inspiration from the dot product method. It has the dimensional constraints that you need.

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

No branches or pull requests

3 participants