alpaqa 1.1.0a1
Nonconvex constrained optimization
Loading...
Searching...
No Matches
alpaqa::util::detail Namespace Reference

Functions

template<class SpMat, class MaskVec>
auto select_rows_in_col (const SpMat &sp_mat, MaskVec &mask, auto column)
 Returns a range over the row indices in the given column of sp_mat that are also in mask.
template<class SpMat, class MaskVec>
auto select_rows_in_col_iota (const SpMat &sp_mat, MaskVec &mask, auto column)
 Like select_rows_in_col, but returns a range of tuples containing the Eigen InnerIterator and a linear index into the mask.

Function Documentation

◆ select_rows_in_col()

template<class SpMat, class MaskVec>
auto select_rows_in_col ( const SpMat & sp_mat,
MaskVec & mask,
auto column )

Returns a range over the row indices in the given column of sp_mat that are also in mask.

The range consists of the full Eigen InnerIterators (row, column, value).

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

Here is the caller graph for this function:

◆ select_rows_in_col_iota()

template<class SpMat, class MaskVec>
auto select_rows_in_col_iota ( const SpMat & sp_mat,
MaskVec & mask,
auto column )

Like select_rows_in_col, but returns a range of tuples containing the Eigen InnerIterator and a linear index into the mask.

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

Here is the caller graph for this function: