KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Namespaces | Typedefs | Functions
numpy_utils.h File Reference
#include <numeric>
#include <pybind11/numpy.h>
Include dependency graph for numpy_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Kratos
 REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
 
 Kratos::Python
 

Typedefs

template<class TDataType >
using Kratos::Python::ContiguousNumpyArray = pybind11::array_t< TDataType, pybind11::array::c_style >
 

Functions

template<class TDataType >
pybind11::array_t< TDataType > Kratos::Python::AllocateNumpyArray (const std::size_t NumberOfEntities, const std::vector< std::size_t > &rShape)
 
template<class TDataType >
pybind11::array_t< TDataType > Kratos::Python::MakeNumpyArray (TDataType const *pBegin, TDataType const *pEnd, const std::vector< std::size_t > &rShape)