File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 11// / Copyright 2025 INRIA
22#pragma once
33
4+ #include " nanoeigenpy/fwd.hpp"
45#include < Eigen/SparseCholesky>
56
67namespace nanoeigenpy {
Original file line number Diff line number Diff line change 11// / Copyright 2025 INRIA
22#pragma once
33
4- #define NANOEIGENPY_UNUSED_VARIABLE (var ) (void )(var)
5- #define NANOEIGENPY_UNUSED_TYPE (type ) \
6- NANOEIGENPY_UNUSED_VARIABLE ((type *)(NULL ))
4+ #if defined(__clang__)
5+ #define NANOEIGENPY_CLANG_COMPILER
6+ #elif defined(__GNUC__)
7+ #define NANOEIGENPY_GCC_COMPILER
8+ #elif defined(_MSC_VER)
9+ #define NANOEIGENPY_MSVC_COMPILER
10+ #endif
11+
12+ #if (__cplusplus >= 202002L || (defined(_MSVC_LAG) && _MSVC_LANG >= 202002L))
13+ #define NANOEIGENPY_WITH_CXX20_SUPPORT
14+ #endif
15+
16+ #include " nanoeigenpy/config.hpp"
17+
18+ #include < nanobind/nanobind.h>
19+
20+ namespace nanoeigenpy {
21+ namespace nb = nanobind;
22+ }
Original file line number Diff line number Diff line change @@ -46,4 +46,6 @@ NB_MODULE(nanoeigenpy, m) {
4646 exposeIsApprox<std::complex <double >>(m);
4747
4848 exposeComputationInfo (m);
49+
50+ m.attr (" __version__" ) = NANOEIGENPY_VERSION;
4951}
You can’t perform that action at this time.
0 commit comments