![]() |
slope 6.2.1
|
Various utility functions. More...
#include "eigen_compat.h"#include <Eigen/Core>#include <Eigen/SparseCore>#include <algorithm>#include <numeric>#include <set>#include <string>#include <unordered_set>#include <vector>

Go to the source code of this file.
Namespaces | |
| namespace | slope |
| Namespace containing SLOPE regression implementation. | |
Functions | |
| template<typename Derived > | |
| Eigen::Index | slope::nonZeros (const Eigen::SparseMatrixBase< Derived > &x) |
| template<typename Derived > | |
| Eigen::Index | slope::nonZeros (const Eigen::DenseBase< Derived > &x) |
| template<typename T > | |
| void | slope::sort (T &v, const bool descending=false) |
| template<typename T > | |
| std::vector< int > | slope::which (const T &x) |
| template<typename T > | |
| std::vector< int > | slope::sortIndex (T &v, const bool descending=false) |
| template<typename T > | |
| void | slope::permute (T &values, const std::vector< int > &ind) |
| template<typename T > | |
| void | slope::inversePermute (T &values, const std::vector< int > &ind) |
| template<typename T > | |
| void | slope::move_elements (std::vector< T > &v, const int from, const int to, const int size) |
| void | slope::validateOption (const std::string &value, const std::set< std::string > &valid_options, const std::string ¶meter_name) |
| Validates if a given value exists in a set of valid options. | |
| template<typename T > | |
| T | slope::subset (const Eigen::EigenBase< T > &x, const std::vector< int > &indices) |
| Extract a subset of rows from an Eigen matrix. | |
| template<typename T > | |
| Eigen::MatrixBase< T >::PlainObject | slope::subset (const Eigen::DenseBase< T > &x, const std::vector< int > &indices) |
| Extract a subset of rows from an Eigen matrix. | |
| template<typename T > | |
| T | slope::subset (const Eigen::SparseMatrixBase< T > &x, const std::vector< int > &indices) |
| Extract a subset of rows from a sparse Eigen matrix. | |
| template<typename T > | |
| T | slope::subsetCols (const Eigen::MatrixBase< T > &x, const std::vector< int > &indices) |
| Extract specified columns from a dense matrix. | |
| template<typename T > | |
| T | slope::subsetCols (const Eigen::SparseMatrixBase< T > &x, const std::vector< int > &indices) |
| std::unordered_set< double > | slope::unique (const Eigen::MatrixXd &x) |
| Create a set of unique values from an Eigen matrix. | |
Various utility functions.
Definition in file utils.h.