c++ 10西雅图Embarcadero类型complex_array
C++ 10 Seattle Embarcadero Type complex_array
我正在尝试使用MSVC的开源代码nec2++https://github.com/tmolteno/necpp
有一个未定义的类型complex_array, Builder不能识别它。我已经安装了Boost,但在文档中没有看到这种类型。我假设这是一个实数和虚数数组的类型。我在Builder或Boost文档中找不到这样的类型。
我正在寻找可能的解决方案来移植这个代码。
complex_array
是在nec2++的math_util.h
头文件中定义的自定义类:
#if USING_EIGEN_ARRAY
#include <Eigen/Dense>
typedef Eigen::Matrix<int32_t, Eigen::Dynamic, 1> int_array;
typedef Eigen::Matrix<nec_float, Eigen::Dynamic, 1> real_array;
typedef Eigen::Matrix<nec_complex, Eigen::Dynamic, 1> complex_array; // <-- here
#else
// Use our own types rather than Eigen
#include "safe_array.h"
typedef safe_array<int32_t> int_array;
typedef safe_array<nec_float> real_array;
typedef safe_array<nec_complex> complex_array; // <-- here
typedef safe_matrix<int32_t> int_matrix;
typedef safe_matrix<nec_float> real_matrix;
typedef safe_matrix<nec_complex> complex_matrix;
#endif
无论您正在编译的代码声称complex_array
是未定义的,都缺少math_util.h
的#include
语句。
相关文章:
- <T> 通过模板化运算符重载将 std::complex 乘以双倍
- C++11 中不同类型的对象的 std::array 的替代方案
- constexpr begin of a std::array
- C++如果必须在编译时确定大小,std::array 有什么意义?
- OpenGL VBO Indexing ( How to compute Index Array)
- 标准::unordered_map 中的 std::array 的值初始化
- "Warning: Comma within array index expression"但逗号分隔函数参数
- 确保编译时的特定 std::array 位置
- std::array的长度有大小限制吗?
- 将 std::array 移动到另一个 std::array
- 首先按给定顺序打印所有数字,然后使用 Array 打印所有字符和其他符号
- 从 TVector2 类派生复杂类:"No matching function for call to Complex::Complex()"
- 为什么 std::shared_ptr 被认为是"heavy"和"expensive",但 std::array "same perfprmance as plain (c-style) arrays
- 将 **float array 从 C++ Dll 传递给 python
- std::bind on statd::array 的运算符 []
- 检查输入 std::array 指针数据是否等于某个常量数组
- 我可以安全地复制矢量<array>吗?
- 解析问题 - 预期的非限定 ID - #include <array> 编译错误
- 如何读/写或遍历 std::array 中的特定元素范围?
- Cxx.jl 在 Julia Complex 和 std::complex 之间进行转换