alpaqa guanaqo
Nonconvex constrained optimization
Loading...
Searching...
No Matches
alpaqa::util Namespace Reference

Namespaces

namespace  detail

Functions

template<class V>
void check_dim_msg (const V &v, auto sz, std::string msg)
template<class V>
void check_dim_msg (std::optional< V > &v, auto sz, std::string msg)
template<class V>
void check_dim (std::string name, V &&v, auto sz)
template<class M>
void check_dim_msg (const M &m, auto rows, auto cols, std::string msg)
template<class M>
void check_dim (std::string name, M &&m, auto rows, auto cols)
template<class SpMat, class Mat, class MaskVec>
void sparse_add_masked (const SpMat &R_full, Mat &&R, const MaskVec &mask)
 R += R_full(mask,mask)
template<class SpMat, class Mat, class MaskVec>
void sparse_add_masked_rows (const SpMat &S_full, Mat &&S, const MaskVec &mask)
 S += S_full(mask,:)
template<class SpMat, class CVec, class Vec, class MaskVec>
void sparse_matvec_add_masked_rows_cols (const SpMat &R, const CVec &v, Vec &&out, const MaskVec &mask_J, const MaskVec &mask_K)
 out += R(mask_J,mask_K) * v(mask_K);
template<class SpMat, class CVec, class Vec, class MaskVec>
void sparse_matvec_add_transpose_masked_rows (const SpMat &S, const CVec &v, Vec &&out, const MaskVec &mask)
 out += S(mask,:)ᵀ * v(mask);

Function Documentation

◆ check_dim_msg() [1/3]

template<class V>
void check_dim_msg ( const V & v,
auto sz,
std::string msg )

Definition at line 11 of file check-dim.hpp.

Here is the caller graph for this function:

◆ check_dim_msg() [2/3]

template<class V>
void check_dim_msg ( std::optional< V > & v,
auto sz,
std::string msg )

Definition at line 23 of file check-dim.hpp.

◆ check_dim() [1/2]

template<class V>
void check_dim ( std::string name,
V && v,
auto sz )

Definition at line 37 of file check-dim.hpp.

Here is the call graph for this function:

◆ check_dim_msg() [3/3]

template<class M>
void check_dim_msg ( const M & m,
auto rows,
auto cols,
std::string msg )

Definition at line 43 of file check-dim.hpp.

◆ check_dim() [2/2]

template<class M>
void check_dim ( std::string name,
M && m,
auto rows,
auto cols )

Definition at line 59 of file check-dim.hpp.

Here is the call graph for this function:

◆ sparse_add_masked()

template<class SpMat, class Mat, class MaskVec>
void sparse_add_masked ( const SpMat & R_full,
Mat && R,
const MaskVec & mask )

R += R_full(mask,mask)

Definition at line 78 of file sparse-ops.hpp.

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

◆ sparse_add_masked_rows()

template<class SpMat, class Mat, class MaskVec>
void sparse_add_masked_rows ( const SpMat & S_full,
Mat && S,
const MaskVec & mask )

S += S_full(mask,:)

Definition at line 88 of file sparse-ops.hpp.

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

◆ sparse_matvec_add_masked_rows_cols()

template<class SpMat, class CVec, class Vec, class MaskVec>
void sparse_matvec_add_masked_rows_cols ( const SpMat & R,
const CVec & v,
Vec && out,
const MaskVec & mask_J,
const MaskVec & mask_K )

out += R(mask_J,mask_K) * v(mask_K);

Definition at line 99 of file sparse-ops.hpp.

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

◆ sparse_matvec_add_transpose_masked_rows()

template<class SpMat, class CVec, class Vec, class MaskVec>
void sparse_matvec_add_transpose_masked_rows ( const SpMat & S,
const CVec & v,
Vec && out,
const MaskVec & mask )

out += S(mask,:)ᵀ * v(mask);

Definition at line 112 of file sparse-ops.hpp.

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