cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Classes | Typedefs | Functions
test_eigen.cpp File Reference
#include "pybind11_tests.h"
#include "constructor_stats.h"
#include <pybind11/eigen.h>
#include <pybind11/stl.h>
#include <Eigen/Cholesky>

Go to the source code of this file.

Classes

struct  CustomOperatorNew
 

Typedefs

using MatrixXdR = Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor >
 

Functions

template<typename M >
void reset_ref (M &x)
 
Eigen::MatrixXd & get_cm ()
 
MatrixXdRget_rm ()
 
void reset_refs ()
 
double get_elem (Eigen::Ref< const Eigen::MatrixXd > m)
 
template<typename MatrixArgType >
Eigen::MatrixXd adjust_matrix (MatrixArgType m)
 
 TEST_SUBMODULE (eigen, m)
 

Typedef Documentation

◆ MatrixXdR

using MatrixXdR = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>

Definition at line 21 of file test_eigen.cpp.

Function Documentation

◆ adjust_matrix()

template<typename MatrixArgType >
Eigen::MatrixXd adjust_matrix ( MatrixArgType  m)

Definition at line 62 of file test_eigen.cpp.

◆ get_cm()

Eigen::MatrixXd& get_cm ( )

Definition at line 33 of file test_eigen.cpp.

◆ get_elem()

double get_elem ( Eigen::Ref< const Eigen::MatrixXd >  m)

Definition at line 57 of file test_eigen.cpp.

◆ get_rm()

MatrixXdR& get_rm ( )

Definition at line 42 of file test_eigen.cpp.

◆ reset_ref()

template<typename M >
void reset_ref ( M &  x)

Definition at line 27 of file test_eigen.cpp.

◆ reset_refs()

void reset_refs ( )

Definition at line 51 of file test_eigen.cpp.

◆ TEST_SUBMODULE()

TEST_SUBMODULE ( eigen  ,
 
)

Definition at line 79 of file test_eigen.cpp.