alpaqa 1.1.0a1
Nonconvex constrained optimization
Loading...
Searching...
No Matches
IndexSet< Conf > Struct Template Reference

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

Detailed Description

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

Definition at line 10 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 13 of file index-set.hpp.

Member Function Documentation

◆ sizes() [1/2]

template<Config Conf>
auto sizes ( )
inline

Definition at line 19 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 20 of file index-set.hpp.

◆ indices() [1/3]

template<Config Conf>
auto indices ( )
inline

Definition at line 21 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 22 of file index-set.hpp.

◆ indices() [3/3]

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

Definition at line 24 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 29 of file index-set.hpp.

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

◆ compute_complement() [1/4]

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

Definition at line 37 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>
void compute_complement ( std::span< const index_t > in,
std::span< index_t > out,
length_t n )
inlinestatic

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

Here is the call graph for this function:

◆ compute_complement() [3/4]

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

Definition at line 47 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:
Here is the caller graph for this function:

◆ compute_complement() [4/4]

template<Config Conf>
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 15 of file index-set.hpp.

◆ n

template<Config Conf>
length_t n

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

◆ storage

template<Config Conf>
indexvec storage

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


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