我在不同的命名空间中有两个同名的函数:
xt::xtensor<double, 2> GMatTensor::Cartesian2d::I4d();
和
template <class T>
void GMatTensor::Cartesian2d::pointer::I4d(T* A);
在 GMatTensor::Cartesian2d::pointer::I4d
的文档中,我想链接到 GMatTensor::Cartesian2d::I4d
。但是我该怎么做?
我在 GMatTensor::Cartesian2d::pointer::I4d
的文档字符串中尝试过:
I4d()
Cartesiand2d::I4d()
GMatTensor::Cartesiand2d::I4d()
在每种情况下都会产生一个链接,但总是指向 GMatTensor::Cartesian2d::pointer::I4d
而不是指向预期的 GMatTensor::Cartesian2d::I4d
最小可重现示例:
/**
\file mylib.h
*/
namespace GMatTensor {
namespace Cartesian2d {
/**
Lorem ipsum.
\return [2, 2, 2, 2] array.
*/
inline xt::xtensor<double, 4> I4d();
namespace pointer {
/**
See Cartesian2d::I4d()
\param ret output 2nd order tensor
*/
template <class T>
inline void I4d(T* ret);
} // namespace pointer
} // namespace Cartesian2d
} // namespace GMatTensor
带有Doxyfile
IMPUT = .
(我用 doxygen 1.9.1 运行)