【文件属性】:
文件名称:本征元物理检验
文件大小:4KB
文件格式:ZIP
更新时间:2021-02-26 08:42:36
C
用MetaPhysicL对偶数测试本征
在MetaPhysicl对偶数上对本征对象进行模板化时,有些事情出了问题。 该存储库旨在提供最少的示例来重现观察到的编译错误。
建立测试
安装通过git子模块提供的先决条件
git submodule update --init --recursive
建立MetaPhysicL
cd MetaPhysicL
./bootstrap
./configure --prefix=${TEST_DIR}/install
make
make install
cd ..
生成测试可执行文件
make
将双数转换为int
我相信下面的这一点是使Eigen将双数转换为整数所必需的,因为MetaPhysicL禁止对双数至非双数进行隐式(和显式)转换,以防止意外丢失派生信息。
// integer casting helper
namespace Eigen
{
【文件预览】:
eigen_metaphysicl_test-master
----.gitignore(9B)
----Makefile(177B)
----eigen()
----.gitmodules(172B)
----README.md(8KB)
----MetaPhysicL()
----test.C(904B)