LvArray
Classes | Namespaces | Functions
PyCRSMatrix.hpp File Reference
#include "pythonForwardDeclarations.hpp"
#include "numpyHelpers.hpp"
#include "../CRSMatrix.hpp"
#include "../Macros.hpp"
#include "../limits.hpp"
#include "../output.hpp"
#include <RAJA/RAJA.hpp>
#include <string>
#include <memory>
#include <typeindex>
Include dependency graph for PyCRSMatrix.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LvArray::python::internal::PyCRSMatrixWrapperBase
 Provides a virtual Python wrapper around a CRSMatrix. More...
 
class  LvArray::python::internal::PyCRSMatrixWrapper< T, COL_TYPE, INDEX_TYPE, BUFFER_TYPE >
 Provides a concrete implementation of PyCRSMatrixWrapperBase. More...
 

Namespaces

 LvArray
 The top level namespace.
 
 LvArray::python
 Contains all the Python code.
 

Functions

PyObject * LvArray::python::internal::create (std::unique_ptr< internal::PyCRSMatrixWrapperBase > &&matrix)
 Create a Python object corresponding to matrix. More...
 
template<typename T , typename COL_TYPE , typename INDEX_TYPE , template< typename > class BUFFER_TYPE>
std::enable_if_t< internal::canExportToNumpy< T >, PyObject *> LvArray::python::create (CRSMatrix< T, COL_TYPE, INDEX_TYPE, BUFFER_TYPE > &matrix)
 Create a Python object corresponding to matrix. More...
 
PyTypeObject * LvArray::python::getPyCRSMatrixType ()
 Return the Python type for the CRSMatrix. More...
 

Function Documentation

◆ create()

PyObject* LvArray::python::internal::create ( std::unique_ptr< internal::PyCRSMatrixWrapperBase > &&  matrix)

Create a Python object corresponding to matrix.

Parameters
matrixThe matrix to export to Python.
Returns
A Python object corresponding to matrix.