Graph Framework
|
Piecewise nodes. More...
#include "node.hpp"
Go to the source code of this file.
Classes | |
class | graph::piecewise_1D_node< T, SAFE_MATH > |
Class representing a 1D piecewise constant. More... | |
class | graph::piecewise_2D_node< T, SAFE_MATH > |
Class representing a 2D piecewise constant. More... | |
Namespaces | |
namespace | graph |
Name space for graph nodes. | |
Typedefs | |
template<jit::float_scalar T, bool SAFE_MATH = false> | |
using | graph::shared_piecewise_1D = std::shared_ptr< piecewise_1D_node< T, SAFE_MATH > > |
Convenience type alias for shared piecewise 1D nodes. | |
template<jit::float_scalar T, bool SAFE_MATH = false> | |
using | graph::shared_piecewise_2D = std::shared_ptr< piecewise_2D_node< T, SAFE_MATH > > |
Convenience type alias for shared piecewise 2D nodes. | |
Functions | |
template<jit::float_scalar T> | |
void | graph::compile_index (std::ostringstream &stream, const std::string ®ister_name, const size_t length, const T scale, const T offset) |
Compile an index. | |
template<jit::float_scalar T, bool SAFE_MATH = false> | |
shared_leaf< T, SAFE_MATH > | graph::piecewise_1D (const backend::buffer< T > &d, shared_leaf< T, SAFE_MATH > x, const T scale, const T offset) |
Define piecewise_1D convience function. | |
template<jit::float_scalar T, bool SAFE_MATH = false> | |
shared_piecewise_1D< T, SAFE_MATH > | graph::piecewise_1D_cast (shared_leaf< T, SAFE_MATH > x) |
Cast to a piecewise 1D node. | |
template<jit::float_scalar T, bool SAFE_MATH = false> | |
shared_leaf< T, SAFE_MATH > | graph::piecewise_2D (const backend::buffer< T > &d, const size_t n, shared_leaf< T, SAFE_MATH > x, const T x_scale, const T x_offset, shared_leaf< T, SAFE_MATH > y, const T y_scale, const T y_offset) |
Define piecewise_2D convience function. | |
template<jit::float_scalar T, bool SAFE_MATH = false> | |
shared_piecewise_2D< T, SAFE_MATH > | graph::piecewise_2D_cast (shared_leaf< T, SAFE_MATH > x) |
Cast to a piecewise 2D node. | |
Piecewise nodes.
Defines nodes containing piecewise constants.