blib/lib/SPVM/Resource/Eigen.pm

filter: Statementstmt 100% 2 / 2 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 2 / 2 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
↑ Summary
1 package SPVM::Resource::Eigen;
2  
3 1 our $VERSION = "0.006";
4  
5 1 1;
6  
7 =head1 Name
8  
9 SPVM::Resource::Eigen - Resource for C++ Eigen library
10  
11 =head1 Description
12  
13 Resource::Eigen in L<SPVM> is a L<resouce|SPVM::Document::Resource> for L<C++ Eigen library|https://eigen.tuxfamily.org/index.php>.
14  
15 =head1 Usage
16  
17 MyClass.config:
18
19 my $config = SPVM::Builder::Config->new_cpp17;
20
21 $config->use_resource('Resource::Eigen');
22
23 $config;
24  
25 MyClass.cpp:
26  
27 #include "spvm_native.h"
28
29 #include "Eigen/Core"
30 #include "Eigen/Dense"
31
32 extern "C" {
33
34 int32_t SPVM__MyClass__test(SPVM_ENV* env, SPVM_VALUE* stack) {
35
36 Eigen::MatrixXd X(3, 3);
37
38 return 0;
39 }
40
41 }
42
43 =head1 Original Product
44  
45 L<Eigen|https://eigen.tuxfamily.org/index.php>
46  
47 =head1 Original Product Version
48  
49 3.4.0
50  
51 =head1 Language
52  
53 C++
54  
55 =head1 Language Standard
56  
57 C++17
58  
59 =head1 Header Files
60  
61 Eigen/Cholesky
62 Eigen/CholmodSupport
63 Eigen/Core
64 Eigen/Dense
65 Eigen/Eigen
66 Eigen/Eigenvalues
67 Eigen/Geometry
68 Eigen/Householder
69 Eigen/IterativeLinearSolvers
70 Eigen/Jacobi
71 Eigen/KLUSupport
72 Eigen/LU
73 Eigen/MetisSupport
74 Eigen/OrderingMethods
75 Eigen/PardisoSupport
76 Eigen/PaStiXSupport
77 Eigen/QR
78 Eigen/QtAlignedMalloc
79 Eigen/Sparse
80 Eigen/SparseCholesky
81 Eigen/SparseCore
82 Eigen/SparseLU
83 Eigen/SparseQR
84 Eigen/SPQRSupport
85 Eigen/StdDeque
86 Eigen/StdList
87 Eigen/StdVector
88 Eigen/SuperLUSupport
89 Eigen/SVD
90 Eigen/UmfPackSupport
91  
92 =head1 How to Create Resource
93  
94 =head2 Donwload
95  
96 mkdir -p .tmp
97 git clone https://gitlab.com/libeigen/eigen.git .tmp/eigen
98 git -C .tmp/eigen checkout tags/3.4.0 -b branch_3.4.0
99 git -C .tmp/eigen branch
100  
101 =head2 Extracting Header Files
102  
103 Header files of C<Eigen> and its dependent source files are copied into the C<include> directory by the following way.
104  
105 rsync -av .tmp/eigen/Eigen lib/SPVM/Resource/Eigen.native/include/
106  
107 =head1 Repository
108  
109 L<SPVM::Resource::Eigen - Github|https://github.com/yuki-kimoto/SPVM-Resource-Eigen>
110  
111 =head1 Author
112  
113 Yuki Kimoto C<kimoto.yuki@gmail.com>
114  
115 =head1 Copyright & License
116  
117 Copyright (c) 2024 Yuki Kimoto
118  
119 MIT License
120  
↑ Summary