-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtypedefs.h
More file actions
31 lines (24 loc) · 767 Bytes
/
typedefs.h
File metadata and controls
31 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef LIBRESPONSE_TYPEDEFS_H_
#define LIBRESPONSE_TYPEDEFS_H_
/*!
* @brief Typedefs for indexing-related quantities.
*
* @file
*/
#include <armadillo>
#include <set>
#include <vector>
namespace libresponse {
namespace type {
typedef std::vector< arma::uvec > indices;
typedef std::pair< indices, indices > pair_indices;
// typedef std::pair< std::vector<size_t>, std::vector<size_t> > pair_std;
typedef std::pair< arma::uvec, arma::uvec > pair_arma;
typedef std::pair< size_t, size_t > pair;
// The reason for using a set rather than a vector is the
// ability to iterate over a set.
typedef std::set< pair > pairs;
typedef std::set< pair >::const_iterator pairs_iterator;
} // namespace type
} // namespace libresponse
#endif // LIBRESPONSE_TYPEDEFS_H_