#include <armadillo>
#include <cmath>
#include <iostream>
#include <vector>
Go to the source code of this file.
|
| typedef std::vector< int > | STDVEC |
| |
| typedef unsigned int | UINT |
| |
| typedef unsigned long | ULONG |
| |
◆ ARMA_DONT_USE_WRAPPER
| #define ARMA_DONT_USE_WRAPPER |
◆ ARMA_USE_BLAS
◆ ARMA_USE_LAPACK
◆ EPSILON
◆ EPSILON_1EMINUS12
| #define EPSILON_1EMINUS12 1e-12 |
◆ EPSILON_1EMINUS16
| #define EPSILON_1EMINUS16 0.00000000000000001 |
◆ ERR
◆ FMAT
◆ FROWVEC
| #define FROWVEC arma::frowvec |
◆ FVEC
◆ INFO
◆ IVEC
◆ MAT
◆ NUMBEROF_DECIMAL_PLACES
| #define NUMBEROF_DECIMAL_PLACES 12 |
◆ OUTPUT
◆ PRINTMAT
◆ PRINTMATINFO
| #define PRINTMATINFO |
( |
|
A | ) |
"::" #A "::" << (A).n_rows << "x" << (A).n_cols |
◆ RAND_SEED
◆ RAND_SEED_SPARSE
| #define RAND_SEED_SPARSE 100 |
◆ ROWVEC
| #define ROWVEC arma::rowvec |
◆ SP_FMAT
| #define SP_FMAT arma::sp_fmat |
◆ SP_MAT
| #define SP_MAT arma::sp_mat |
◆ UVEC
◆ UWORD
| #define UWORD arma::uword |
◆ VEC
◆ WARN
◆ STDVEC
| typedef std::vector<int> STDVEC |
◆ UINT
| typedef unsigned int UINT |
◆ ULONG
| typedef unsigned long ULONG |
◆ algotype
| Enumerator |
|---|
| MU | |
| HALS | |
| ANLSBPP | |
| NAIVEANLSBPP | |
| AOADMM | |
| NESTEROV | |
| CPALS | |
Definition at line 10 of file utils.h.
◆ normtype
| Enumerator |
|---|
| NONE | |
| L2NORM | |
| MAXNORM | |
Definition at line 12 of file utils.h.
◆ absmat()
| void absmat |
( |
const FMAT * |
X | ) |
|
◆ fillVector()
template<typename FVT >
| void fillVector |
( |
const FVT |
value, |
|
|
std::vector< FVT > * |
a |
|
) |
| |
|
inline |
◆ random_sieve()
| int random_sieve |
( |
const int |
| ) |
|
◆ tic()
start the timer. easy to call as tic(); some code; double t=toc();
Definition at line 42 of file utils.hpp.
◆ toc()