C++ - framework for computing PCA (other than armadillo)

守給你的承諾、 提交于 2019-12-06 12:11:47

You probably need to enable the use of 64 bit integers within Armadillo, which are used for storing the total number of elements, etc.

Specifically, edit the file include/armadillo_bits/config.hpp and uncomment the line with: // #define ARMA_64BIT_WORD. In version 3.4 this should be near line 59.

Alternatively, you can define ARMA_64BIT_WORD before including the Armadillo header in your program, eg:

#define ARMA_64BIT_WORD
#include <armadillo>
#include <iostream>
...

Note that your C++ compiler must be able to handle 64 bit integers. Most compilers these days have it.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!