alpaqa cmake-targets
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
IndexSet< Conf > Struct Template Reference

#include <alpaqa/util/index-set.hpp>

Detailed Description

template<Config Conf>
struct alpaqa::detail::IndexSet< Conf >

Definition at line 9 of file index-set.hpp.

+ Collaboration diagram for IndexSet< Conf >:

Public Member Functions

 IndexSet (length_t N, length_t n)
 
auto sizes ()
 
auto sizes () const
 
auto indices ()
 
auto indices () const
 
crindexvec indices (index_t i) const
 
crindexvec compl_indices (index_t i) const
 
template<class F >
void update (const F &condition)
 

Static Public Member Functions

static void compute_complement (std::span< const index_t > in, std::span< index_t > out)
 
static void compute_complement (std::span< const index_t > in, std::span< index_t > out, length_t n)
 
static void compute_complement (crindexvec in, rindexvec out, length_t n)
 

Public Attributes

length_t N
 
length_t n
 
indexvec storage
 

Static Private Member Functions

static void compute_complement (std::span< const index_t > in, index_t *out, length_t n)
 

Constructor & Destructor Documentation

◆ IndexSet()

template<Config Conf>
IndexSet ( length_t  N,
length_t  n 
)
inline

Definition at line 12 of file index-set.hpp.

Member Function Documentation

◆ sizes() [1/2]

template<Config Conf>
auto sizes ( )
inline

Definition at line 18 of file index-set.hpp.

+ Here is the caller graph for this function:

◆ sizes() [2/2]

template<Config Conf>
auto sizes ( ) const
inline

Definition at line 19 of file index-set.hpp.

◆ indices() [1/3]

template<Config Conf>
auto indices ( )
inline

Definition at line 20 of file index-set.hpp.

+ Here is the caller graph for this function:

◆ indices() [2/3]

template<Config Conf>
auto indices ( ) const
inline

Definition at line 21 of file index-set.hpp.

◆ indices() [3/3]

template<Config Conf>
crindexvec indices ( index_t  i) const
inline

Definition at line 23 of file index-set.hpp.

+ Here is the call graph for this function:

◆ compl_indices()

template<Config Conf>
crindexvec compl_indices ( index_t  i) const
inline

Definition at line 28 of file index-set.hpp.

+ Here is the call graph for this function:

◆ compute_complement() [1/4]

template<Config Conf>
static void compute_complement ( std::span< const index_t in,
std::span< index_t out 
)
inlinestatic

Definition at line 36 of file index-set.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compute_complement() [2/4]

template<Config Conf>
static void compute_complement ( std::span< const index_t in,
std::span< index_t out,
length_t  n 
)
inlinestatic

Definition at line 41 of file index-set.hpp.

+ Here is the call graph for this function:

◆ compute_complement() [3/4]

template<Config Conf>
static void compute_complement ( crindexvec  in,
rindexvec  out,
length_t  n 
)
inlinestatic

Definition at line 46 of file index-set.hpp.

+ Here is the call graph for this function:

◆ update()

template<Config Conf>
template<class F >
void update ( const F condition)
inline

Definition at line 53 of file index-set.hpp.

+ Here is the call graph for this function:

◆ compute_complement() [4/4]

template<Config Conf>
static void compute_complement ( std::span< const index_t in,
index_t out,
length_t  n 
)
inlinestaticprivate

Definition at line 81 of file index-set.hpp.

Member Data Documentation

◆ N

template<Config Conf>
length_t N

Definition at line 14 of file index-set.hpp.

◆ n

template<Config Conf>
length_t n

Definition at line 15 of file index-set.hpp.

◆ storage

template<Config Conf>
indexvec storage

Definition at line 16 of file index-set.hpp.


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