Template Numerical Library: TNL::MinWithArg Struct Reference

Template Numerical Library version\ main:16b9213d5

Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
TNL::MinWithArg Struct Reference
Function objects for reduction operations with argument

Function object implementing argmin(x, y, i, j), i.e. returning the minimum value and its index. More...

`#include <TNL/Functional.h>`

## Public Member Functions
template<typename Value, typename Index>
constexpr void | operator() (Value &lhs, const Value &rhs, Index &lhsIdx, const Index &rhsIdx) const

## Static Public Member Functions
template<typename T>
static constexpr T | getIdentity ()
| Returns the identity element of the operation.

## Detailed Description

Function object implementing argmin(x, y, i, j), i.e. returning the minimum value and its index.

## Member Function Documentation

## ◆ getIdentity()

template<typename T>

constexpr T TNL::MinWithArg::getIdentity | ( |  | ) |
| inlinestaticconstexpr

Returns the identity element of the operation.

Suitable for TNL::Algorithms::reduce.

The documentation for this struct was generated from the following file:

- src/TNL/Functional.h