c++ - C++ NT2 库文档在哪里?它是否具有默认的 popcount 函数?

标签 c++

<分区>

我在位于 in this repository 的 C++ 库 NT2 的 github 页面上.当我单击开发人员文档的链接时,我得到一个无处可去的链接。我正在尝试阅读文档以查看 NT2 是否提供默认的 popcount 函数。

最佳答案

正如评论所暗示的那样,网络存档确实有一个(不完整的)文档存档:

https://web.archive.org/web/20151127024254/http://nt2.metascale.fr/doc/html/

但在您的情况下,包含 popcount 文档的实际页面未存档。但是 popcnt() 函数是在头文件 nt2/bitwise/functions/popcnt.hpp 中定义的,它位于

https://github.com/picanumber/nt2/blob/master/modules/boost/simd/base/include/boost/simd/bitwise/functions/popcnt.hpp

根据头文件:

Returns the number of bit sets the input. 

@par semantic: 
For any given value @c x of type @c T: 

@code 
as_integer<T, unsigned> r = popcnt(x); 
@endcode 

@see  @funcref{clz}, @funcref{ctz} 
@param  a0 

@return      a value of the unsigned integer 
             type associated to the input. 

虽然不如文档那么好,但它确实证明了 popcount 在库中并且确实展示了如何调用它。

我认为文档消失的原因是因为它似乎在 github 存储库中 - 但以 quickbook 形式。

关于c++ - C++ NT2 库文档在哪里?它是否具有默认的 popcount 函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42430488/

相关文章:

c++ - 发送 POST 请求

c++ - 完成幻方发生器

c++ - 静态和动态转换之间的区别

c++ - opencl中分配的缓冲区在哪里?

c++ - vector n 维 vector 本身具有特定的数据类型

c++ - 如何获取内核对象的安全描述符?

c++ - strcpy_s缓冲区L缓冲区太小&& 0

c++ - 调用指针和引用方法

c++ - 如何将 list 文件添加到 visual studio 2010 中的项目?

C++ 在没有 lambda 的情况下对索引 vector 进行排序