GPRidge v1.0.0
GPR-accelerated saddle point searches on potential energy surfaces
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
Macros.h
Go to the documentation of this file.
1
/*
2
* Macros.h
3
*
4
* Created on: 15 Jun 2020
5
* Author: Maxim Masterov
6
* Company: SURFSara
7
*/
8
9
#ifndef BACKEND_MACROS_H_
10
#define BACKEND_MACROS_H_
11
12
#include <Eigen/Core>
13
#include <Eigen/Dense>
14
#include <cinttypes>
15
16
namespace
gpr
{
17
using
Index_t
= uint32_t;
18
constexpr
auto
EigenDynamic
= Eigen::Dynamic;
19
constexpr
auto
EigenMatrixStorage
= Eigen::StorageOptions::ColMajor;
20
using
EigenMatrix
=
21
Eigen::Matrix<double, EigenDynamic, EigenDynamic, EigenMatrixStorage>;
22
23
// RowMajor field-replacement types (preserve flat-access semantics of Field<T>)
24
constexpr
auto
FieldMatrixStorage
= Eigen::StorageOptions::RowMajor;
25
using
FieldMatrixd
=
26
Eigen::Matrix<double, EigenDynamic, EigenDynamic, FieldMatrixStorage>;
27
using
FieldMatrixi
=
28
Eigen::Matrix<int, EigenDynamic, EigenDynamic, FieldMatrixStorage>;
29
using
FieldMatrixIdx
=
30
Eigen::Matrix<Index_t, EigenDynamic, EigenDynamic, FieldMatrixStorage>;
31
using
FieldMatrixU8
=
32
Eigen::Matrix<uint8_t, EigenDynamic, EigenDynamic, FieldMatrixStorage>;
33
34
// Transitional type aliases replacing old class types
35
using
Coord
=
FieldMatrixd
;
36
using
vector3_reg
= Eigen::Vector3d;
37
}
// namespace gpr
38
39
#define EMPTY -1
40
41
#endif
/* BACKEND_MACROS_H_ */
gpr
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition
Macros.h:16
gpr::vector3_reg
Eigen::Vector3d vector3_reg
Definition
Macros.h:36
gpr::FieldMatrixi
Eigen::Matrix< int, EigenDynamic, EigenDynamic, FieldMatrixStorage > FieldMatrixi
Definition
Macros.h:27
gpr::FieldMatrixStorage
constexpr auto FieldMatrixStorage
Definition
Macros.h:24
gpr::FieldMatrixIdx
Eigen::Matrix< Index_t, EigenDynamic, EigenDynamic, FieldMatrixStorage > FieldMatrixIdx
Definition
Macros.h:29
gpr::Coord
FieldMatrixd Coord
Definition
Macros.h:35
gpr::Index_t
uint32_t Index_t
Definition
Macros.h:17
gpr::EigenMatrixStorage
constexpr auto EigenMatrixStorage
Definition
Macros.h:19
gpr::FieldMatrixU8
Eigen::Matrix< uint8_t, EigenDynamic, EigenDynamic, FieldMatrixStorage > FieldMatrixU8
Definition
Macros.h:31
gpr::EigenMatrix
Eigen::Matrix< double, EigenDynamic, EigenDynamic, EigenMatrixStorage > EigenMatrix
Definition
Macros.h:20
gpr::FieldMatrixd
Eigen::Matrix< double, EigenDynamic, EigenDynamic, FieldMatrixStorage > FieldMatrixd
Definition
Macros.h:25
gpr::EigenDynamic
constexpr auto EigenDynamic
Definition
Macros.h:18
backend
Macros.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf