The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

SPVM::Resource::Eigen - Resource for C++ Eigen library

Description

Resource::Eigen in SPVM is a resouce for C++ Eigen library.

Usage

MyClass.config:

my $config = SPVM::Builder::Config->new_cpp17(file => __FILE__);

$config->use_resource('Resource::Eigen');

$config;

MyClass.cpp:

#include "spvm_native.h"

#include "Eigen/Core"
#include "Eigen/Dense"

extern "C" {

int32_t SPVM__MyClass__test(SPVM_ENV* env, SPVM_VALUE* stack) {
  
  Eigen::MatrixXd X(3, 3);
  
  return 0;
}

}

Original Product

Eigen

Original Product Version

3.4.0

Language

C++

Language Specification

C++17

Header Files

Eigen/Cholesky
Eigen/CholmodSupport
Eigen/Core
Eigen/Dense
Eigen/Eigen
Eigen/Eigenvalues
Eigen/Geometry
Eigen/Householder
Eigen/IterativeLinearSolvers
Eigen/Jacobi
Eigen/KLUSupport
Eigen/LU
Eigen/MetisSupport
Eigen/OrderingMethods
Eigen/PardisoSupport
Eigen/PaStiXSupport
Eigen/QR
Eigen/QtAlignedMalloc
Eigen/Sparse
Eigen/SparseCholesky
Eigen/SparseCore
Eigen/SparseLU
Eigen/SparseQR
Eigen/SPQRSupport
Eigen/StdDeque
Eigen/StdList
Eigen/StdVector
Eigen/SuperLUSupport
Eigen/SVD
Eigen/UmfPackSupport

How to Create Resource

Donwload

mkdir -p original.tmp
git clone https://gitlab.com/libeigen/eigen.git original.tmp/eigen
git -C original.tmp/eigen checkout tags/3.4.0 -b branch_3.4.0
git -C original.tmp/eigen branch

Extracting Header Files

Header files of Eigen and its dependent source files are copied into the include directory by the following way.

rsync -av original.tmp/eigen/Eigen lib/SPVM/Resource/Eigen.native/include/

Repository

SPVM::Resource::Eigen - Github

Author

Yuki Kimoto kimoto.yuki@gmail.com

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License