alpaqa 1.0.0a11
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()

IndexSet ( length_t  N,
length_t  n 
)
inline

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

Member Function Documentation

◆ sizes() [1/2]

auto sizes ( )
inline

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

+ Here is the caller graph for this function:

◆ sizes() [2/2]

auto sizes ( ) const
inline

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

◆ indices() [1/3]

auto indices ( )
inline

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

+ Here is the caller graph for this function:

◆ indices() [2/3]

auto indices ( ) const
inline

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

◆ indices() [3/3]

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()

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]

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]

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]

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()

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]

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

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

◆ n

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

◆ storage

indexvec storage

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


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