Skip to content

Best way to get min or max element, is tensor finite ? #90

@ghost

Description

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.

  1. I need to get the max absolute value of a tensor. The element-wise abs expression is already implemented, but I can't see equivalent for getting min or max in the same elegant way, something like:
    Tensor<double,2,3,4> a;
    double max_abs_value = max(abs(a));
  1. Fastor implement some compile time boolean operations like isuniform, how can I get runtime equivalent of isfinite over a tensor ?
    Tensor<double,2,3,4> a;
    bool ok = isfinite(a);

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions