lsst.gauss2d.fit
g199a45376c+7362695278
Toggle main menu visibility
Loading...
Searching...
No Matches
utils.h
1
#ifndef LSST_GAUSS2D_FIT_PYBIND11_UTILS_H
2
#define LSST_GAUSS2D_FIT_PYBIND11_UTILS_H
3
4
#include <string>
5
6
namespace
lsst::gauss2d::fit {
7
// This is so annoying that I'm considering borrowing a solution for static string
8
template
<
typename
T>
9
constexpr
std::string_view suffix_type();
10
11
template
<>
12
constexpr
std::string_view suffix_type<double>() {
13
return
"D"
;
14
}
15
16
template
<
typename
T>
17
std::string suffix_type_str() {
18
return
std::string(suffix_type<T>());
19
}
20
21
}
// namespace lsst::gauss2d::fit
22
23
#endif
python
src
lsst
gauss2d
fit
utils.h
Generated by
1.17.0