Implementation of Structured Group. More...
Public Member Functions | |
| GroupLpBall (const double p, const size_t dimOrig, std::vector< arma::uvec > groupIndicesList) | |
| Construct the lp ball group extractor class. More... | |
| double | DualNorm (const arma::vec &yk, const int groupId) |
| Compute the q-norm of yk, 1/p+1/q=1. More... | |
| size_t | NumGroups () const |
| Get the number of groups. More... | |
| size_t & | NumGroups () |
| Modify the number of groups. More... | |
| void | OptimalFromGroup (const arma::mat &v, const size_t groupId, arma::mat &s) |
| Get optimal atom, which belongs to specific group. More... | |
| void | ProjectToGroup (const arma::mat &v, const size_t groupId, arma::vec &y) |
| Projection to specific group. More... | |
Implementation of Structured Group.
The projection to each group is using restriction of vector support here, and the norm in each group is using lp norm.
Definition at line 121 of file constr_structure_group.hpp.
|
inline |
Construct the lp ball group extractor class.
| p | lp ball. |
| dimOrig | dimension of the original vector. |
| groupIndicesList | vector of support indices lists of each group. |
Definition at line 131 of file constr_structure_group.hpp.
|
inline |
Compute the q-norm of yk, 1/p+1/q=1.
| yk | compute the q-norm of yk. |
| groupId | group ID number. |
Definition at line 195 of file constr_structure_group.hpp.
References Log::Fatal.
|
inline |
Get the number of groups.
Definition at line 185 of file constr_structure_group.hpp.
|
inline |
Modify the number of groups.
Definition at line 187 of file constr_structure_group.hpp.
|
inline |
Get optimal atom, which belongs to specific group.
See Jaggi's paper for details.
| v | input gradient vector. |
| groupId | optimal atom belongs to this group. |
| s | output optimal atom. |
Definition at line 165 of file constr_structure_group.hpp.
|
inline |
Projection to specific group.
| v | input vector to be projected. |
| groupId | input ID number of the group, start from 1. |
| y | output projection of the vector to specific group. |
Definition at line 147 of file constr_structure_group.hpp.