openjij
Framework for the Ising model and QUBO.
Loading...
Searching...
No Matches
eigen.hpp File Reference
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include "openjij/graph/all.hpp"
Include dependency graph for eigen.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openjij::utility::get_eigen_matrix_type< GraphType, Options >
 get Eigen Matrix type from Graph Type More...
 
struct  openjij::utility::get_eigen_matrix_type< graph::Dense< FloatType >, Options >
 get Eigen Matrix type from Graph Type More...
 
struct  openjij::utility::get_eigen_matrix_type< graph::Sparse< FloatType >, Options >
 get Eigen Matrix type from Graph Type More...
 

Namespaces

namespace  openjij
 
namespace  openjij::utility
 

Functions

template<typename FloatType , int Options = Eigen::ColMajor>
static Eigen::Matrix< FloatType, Eigen::Dynamic, 1, Options > openjij::utility::gen_vector_from_std_vector (const graph::Spins &init_spin)
 generate Eigen Vector from std::vector
 
template<typename FloatType , int Options = Eigen::ColMajor>
static Eigen::Matrix< FloatType, Eigen::Dynamic, Eigen::Dynamic, Options > openjij::utility::gen_matrix_from_trotter_spins (const std::vector< graph::Spins > &trotter_spins)
 generate Eigen Matrix from TrotterSpins
 
template<int Options = Eigen::ColMajor, typename FloatType >
static Eigen::Matrix< FloatType, Eigen::Dynamic, Eigen::Dynamic, Options > openjij::utility::gen_matrix_from_graph (const graph::Dense< FloatType > &graph)
 generate Eigen Dense Matrix from Dense graph
 
template<int Options = Eigen::ColMajor, typename FloatType >
static Eigen::SparseMatrix< FloatType, Options > openjij::utility::gen_matrix_from_graph (const graph::Sparse< FloatType > &graph)
 generate Eigen Sparse Matrix from Sparse graph