-
Notifications
You must be signed in to change notification settings - Fork 70
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
Best way to get min or max element, is tensor finite ? #90
Comments
Thank you for submitting this issue. Yes, element-wise |
Tensor<T,....> a;
T max_value = max(a);
T max_abs_value = max(abs(a)); The |
Wonderfull, you make my day ! |
Roman, if you want to see why your work is so usefull, take a look at this issue : HSU-ANT/ACME.jl#28 Your library is incredible !!! |
That is absolutely awesome Maxime 👍! I am glad that you are finding a solid scientific application that you can use Fastor for. People typically come and explore Fastor and when they realise that it is only for fixed sized arrays they leave it at that. So I am happy that your usecase is suited for this kind heavy compile time computations that Fastor is designed for. On other news, I have now implemented Tensor<T,....> a;
Tensor<bool,....> result_array = isfinite(a); If you want to know that all of the elements are finite you can do bool ok = all_of(isfinite(a)); or use Please ask if you have any questions. |
Thank you for this excellent library, very useful and powerful. I'm working on a portage of old armadillo based project to fastor and need a little help (maybe a enhancement request) from you.
max
absolute value of a tensor. The element-wiseabs
expression is already implemented, but I can't see equivalent for gettingmin
ormax
in the same elegant way, something like:isuniform
, how can I get runtime equivalent ofisfinite
over a tensor ?Sorry if it's not pertinent or if it's not the best place to ask help, let me known.
Thank you very much.
Max
The text was updated successfully, but these errors were encountered: