…It turned out that the bitwise swap was slower. In other words this sort of "clever" bit-level hack does not necessarily translate to higher performance. And I would recommend the first chapter of "Matters Computational" written by Jörg Arndt, which includes many more advanced bitwise operations: http://www.jjj.de/fxt/#fxtbook. This book is more like a cookbook rather than an introductory book. EDIT: debugged!
……以及《C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond》这本书。* Jorg Arndt 的 FXT 算法库(https://www.jjj.de/fxt/fxtpage.html)及其配套图书《Matters Computational》,用于编写经过优化的 C++ 代码。我还建议阅读以下两本经典著作来学习 C++ 设计:* James Coplien 的《Multi-Paradigm Design for C++》。* 《Scientific and Engineering C++:…
…with the book C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond. * The FXT library of Algorithms by Jorg Arndt (https://www.jjj.de/fxt/fxtpage.html) along with its book Matters Computational for writing optimized C++ code. I would also suggest reading the following two classics to learn designing in C++; * Multi-Paradigm Design for C++ by James Coplien. * Scientific and Engineering C++:…
You might find the book Matters Computational: Ideas, Algorithms, Source Code by Jorg Arndt (the book is freely available) and the accompanying FXT library useful - https://www.jjj.de/fxt/fxtpage.html
For all interested in the topic , there's a renowned classic of a cookbook: "Matters Computational" by Jörg Arndt. Available freely: http://www.jjj.de/fxt/#fxtbook
…created (and shared for free) such a comprehensive set of books including teaching C++ and Unix tools! There is something to learn for all Programmers (HPC specific or not) here. Related: Jorg Arndt's "Matters Computational" book and FXT library - https://www.jjj.de/fxt/
如果你还不知道的话顺便提一句:用 C++ 写的 FXT 数学库,以及带你深入了解它的《Matters Computational》这本书——https://www.jjj.de/fxt/fxtpage.html
In case you didn't already know of this; The FXT Maths library in C++ and the book Matters Computational walking you through it - https://www.jjj.de/fxt/fxtpage.html
……结果表明位运算交换(bitwise swap)反而更慢。换句话说,这种“聪明”的 bit 级 hack 操作并不一定会带来更高的性能。我推荐 Jörg Arndt 写的《Matters Computational》的第一章,里面包含了很多更高级的位运算操作:http://www.jjj.de/fxt/#fxtbook。这本书更像是一本 cookbook,而不是入门书。编辑:bug 已修复!
…It turned out that the bitwise swap was slower. In other words this sort of "clever" bit-level hack does not necessarily translate to higher performance. And I would recommend the first chapter of "Matters Computational" written by Jörg Arndt, which includes many more advanced bitwise operations: http://www.jjj.de/fxt/#fxtbook. This book is more like a cookbook rather than an introductory book. EDIT: debugged!
……以及《C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond》这本书。* Jorg Arndt 的 FXT 算法库(https://www.jjj.de/fxt/fxtpage.html)及其配套图书《Matters Computational》,用于编写经过优化的 C++ 代码。我还建议阅读以下两本经典著作来学习 C++ 设计:* James Coplien 的《Multi-Paradigm Design for C++》。* 《Scientific and Engineering C++:…
…with the book C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond. * The FXT library of Algorithms by Jorg Arndt (https://www.jjj.de/fxt/fxtpage.html) along with its book Matters Computational for writing optimized C++ code. I would also suggest reading the following two classics to learn designing in C++; * Multi-Paradigm Design for C++ by James Coplien. * Scientific and Engineering C++:…
你可能会觉得 Jorg Arndt 写的《Matters Computational: Ideas, Algorithms, Source Code》(这本书是开源免费的)以及配套的 FXT 库很有用——https://www.jjj.de/fxt/fxtpage.html
You might find the book Matters Computational: Ideas, Algorithms, Source Code by Jorg Arndt (the book is freely available) and the accompanying FXT library useful - https://www.jjj.de/fxt/fxtpage.html
对这个主题感兴趣的各位,这里有一本公认的经典 cookbook:《Matters Computational》,作者是 Jörg Arndt。免费在线阅读:http://www.jjj.de/fxt/#fxtbook
For all interested in the topic , there's a renowned classic of a cookbook: "Matters Computational" by Jörg Arndt. Available freely: http://www.jjj.de/fxt/#fxtbook
……居然创作出(并免费分享)了这么一套全面的书籍,涵盖了 C++ 和 Unix 工具的教学!所有程序员(无论是不是搞 HPC 的)都能在这里学到东西。相关推荐:Jorg Arndt 的《Matters Computational》一书以及 FXT 库——https://www.jjj.de/fxt/
…created (and shared for free) such a comprehensive set of books including teaching C++ and Unix tools! There is something to learn for all Programmers (HPC specific or not) here. Related: Jorg Arndt's "Matters Computational" book and FXT library - https://www.jjj.de/fxt/
如果你还不知道的话顺便提一句:用 C++ 写的 FXT 数学库,以及带你深入了解它的《Matters Computational》这本书——https://www.jjj.de/fxt/fxtpage.html
In case you didn't already know of this; The FXT Maths library in C++ and the book Matters Computational walking you through it - https://www.jjj.de/fxt/fxtpage.html