shards Version of the Day
Loading...
Searching...
No Matches

Take minimum value of each member of two arrays. More...

#include <Shards_SimpleArrayOps.hpp>

Public Types

enum  {
  N = n ,
  I = i
}
 

Public Member Functions

template<typename T >
 Min (T *const dst, const T *const src)
 dst[0..N-1] = min( dst[0..N-1] , src[0..N-1] )
 

Detailed Description

template<unsigned n, unsigned i = 0>
struct shards::Min< n, i >

Take minimum value of each member of two arrays.

Template Parameters
nNumber of members to iterate.

Definition at line 164 of file Shards_SimpleArrayOps.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<unsigned n, unsigned i = 0>
anonymous enum

Definition at line 165 of file Shards_SimpleArrayOps.hpp.

Constructor & Destructor Documentation

◆ Min() [1/2]

template<unsigned n, unsigned i = 0>
template<typename T >
shards::Min< n, i >::Min ( T *const dst,
const T *const src )
inline

dst[0..N-1] = min( dst[0..N-1] , src[0..N-1] )

Definition at line 169 of file Shards_SimpleArrayOps.hpp.

◆ Min() [2/2]

template<unsigned n, unsigned i = 0>
shards::Min< n, i >::Min ( )
inline

Definition at line 172 of file Shards_SimpleArrayOps.hpp.


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