DiffEq - Modern C++ ODE Integration Library
1.0.0
High-performance C++ library for solving ODEs with async signal processing
Loading...
Searching...
No Matches
tensor_plugin.hpp
1
#pragma once
2
3
#ifdef USE_XTENSOR
4
#include <xtensor/xarray.hpp>
5
#endif
6
7
namespace
diffeq {
8
class
XTensorAdapter
:
public
ITensorAdapterFactory {
9
public
:
10
IState
* create_state()
override
{
11
#ifdef USE_XTENSOR
12
return
new
XTensorState();
13
#else
14
static_assert
(
false
,
"XTensor not enabled"
);
15
#endif
16
}
17
};
18
}
diffeq::IState
Definition
state.hpp:6
diffeq::XTensorAdapter
Definition
tensor_plugin.hpp:8
include
plugins
tensor_plugin.hpp
Generated by
1.9.8