Nektar++
Classes | Functions
NekMatrix.cpp File Reference
#include <LibUtilities/LinearAlgebra/MatrixStorageType.h>
#include <LibUtilities/LinearAlgebra/NekMatrix.hpp>
#include <LibUtilities/Python/NekPyConfig.hpp>

Go to the source code of this file.

Classes

struct  NekMatrixToPython< T >
 

Functions

template<typename T , typename F >
void NekMatrixCapsuleDestructor (PyObject *ptr)
 
template<typename T >
void export_NekMatrix ()
 
template void export_NekMatrix< double > ()
 

Function Documentation

◆ export_NekMatrix()

template<typename T >
void export_NekMatrix ( )

Definition at line 92 of file NekMatrix.cpp.

93{
94 py::to_python_converter<std::shared_ptr<NekMatrix<T, StandardMatrixTag>>,
96}

◆ export_NekMatrix< double >()

template void export_NekMatrix< double > ( )

Referenced by BOOST_PYTHON_MODULE().

◆ NekMatrixCapsuleDestructor()

template<typename T , typename F >
void NekMatrixCapsuleDestructor ( PyObject *  ptr)

Definition at line 50 of file NekMatrix.cpp.

51{
52 std::shared_ptr<NekMatrix<T, F>> *mat =
53 (std::shared_ptr<NekMatrix<T, F>> *)PyCapsule_GetPointer(ptr, nullptr);
54 delete mat;
55}

Referenced by NekMatrixToPython< T >::convert().