Skip to content

Performance: Possibility to use std::reduce or std::accumulate instead of raw loop #380

@krishnakumarg1984

Description

@krishnakumarg1984

In sdmm.h, it looks like a standard accumulation operation is implemented with a raw loop.

    for (auto const &transform : this->transforms())
      out += transform.adjoint() * static_cast<t_Vector>(transform * input);

Might be possible to use std::accumulate or std::reduce (parallelised in C++17). Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions