SpECTRE  v2024.04.12
Python Bindings

Classes and functions useful when writing python bindings. More...

Functions

template<typename T >
void py_bindings::bounds_check (const T &t, const size_t i)
 Check if a vector-like object access is in bounds. Throws std::runtime_error if it is not.
 
template<typename T >
void py_bindings::matrix_bounds_check (const T &matrix, const size_t row, const size_t column)
 Check if a matrix-like object access is in bounds. Throws std::runtime_error if it is not.
 

Detailed Description

Classes and functions useful when writing python bindings.

See the Writing Python Bindings section of the dev guide for details on how to write python bindings.