我有一个复杂的双精度数组eigenvalues,我想通过使用来获取每个条目的自然对数clog。
for (int i = 0; i < n; ++i)
{
qq[i] = clog(eigenvalues[i]);
}
我已经放弃了,using namespace std;但仍在获得error: reference to 'clog' is ambiguous。
如何明确我想使用clogfromcomplex.h而不是 from iostream?
我有一个复杂的双精度数组eigenvalues,我想通过使用来获取每个条目的自然对数clog。
for (int i = 0; i < n; ++i)
{
qq[i] = clog(eigenvalues[i]);
}
我已经放弃了,using namespace std;但仍在获得error: reference to 'clog' is ambiguous。
如何明确我想使用clogfromcomplex.h而不是 from iostream?