C++ Template Metaprogramming in Practice

C++ Template Metaprogramming in Practice
Author :
Publisher : CRC Press
Total Pages : 339
Release :
ISBN-10 : 9781000219739
ISBN-13 : 1000219739
Rating : 4/5 (739 Downloads)

Book Synopsis C++ Template Metaprogramming in Practice by : Li Wei

Download or read book C++ Template Metaprogramming in Practice written by Li Wei and published by CRC Press. This book was released on 2020-12-01 with total page 339 pages. Available in PDF, EPUB and Kindle. Book excerpt: Using the implementation of a deep learning framework as an example, C++ Template Metaprogramming in Practice: A Deep Learning Framework explains the application of metaprogramming in a relatively large project and emphasizes ways to optimize systems performance. The book is suitable for developers with a basic knowledge of C++. Developers familiar with mainstream deep learning frameworks can also refer to this book to compare the differences between the deep learning framework implemented with metaprogramming and compile-time computing with deep learning frameworks using object-oriented methods. Consisting of eight chapters, the book starts with two chapters discussing basic techniques of metaprogramming and compile-time computing. The rest of the book’s chapters focus on the practical application of metaprogramming in a deep learning framework. It examines rich types and systems, expression templates, and writing complex meta-functions, as well as such topics as: Heterogeneous dictionaries and policy templates An introduction to deep learning Type system and basic data types Operations and expression templates Basic layers Composite and recurrent layers Evaluation and its optimization Metaprogramming can construct flexible and efficient code. For C++ developers who are familiar with object-oriented programming, the main difficulty in learning and mastering C++ metaprogramming is establishing the thinking mode of functional programming. The meta-programming approach involved at compile time is functional, which means that the intermediate results of the construction cannot be changed, and the impact may be greater than expected. This book enables C++ programmers to develop a functional mindset and metaprogramming skills. The book also discusses the development cost and use cost of metaprogramming and provides workarounds for minimizing these costs.


C++ Template Metaprogramming in Practice Related Books

C++ Template Metaprogramming in Practice
Language: en
Pages: 339
Authors: Li Wei
Categories: Computers
Type: BOOK - Published: 2020-12-01 - Publisher: CRC Press

DOWNLOAD EBOOK

Using the implementation of a deep learning framework as an example, C++ Template Metaprogramming in Practice: A Deep Learning Framework explains the applicatio
C++ Template Metaprogramming
Language: en
Pages: 408
Authors: David Abrahams
Categories: Computers
Type: BOOK - Published: 2005 - Publisher: Addison-Wesley Professional

DOWNLOAD EBOOK

"This book is aimed at any programmer who is comfortable with idioms of the Standard Template Library (STL). C++ power-users will gain a new insight into their
C++ Templates
Language: en
Pages: 2818
Authors: David Vandevoorde
Categories: Computers
Type: BOOK - Published: 2017-09-14 - Publisher: Addison-Wesley Professional

DOWNLOAD EBOOK

Templates are among the most powerful features of C++, but they remain misunderstood and underutilized, even as the C++ language and development community have
Discovering Modern C++
Language: en
Pages: 1559
Authors: Peter Gottschling
Categories: Computers
Type: BOOK - Published: 2015-12-23 - Publisher: Addison-Wesley Professional

DOWNLOAD EBOOK

As scientific and engineering projects grow larger and more complex, it is increasingly likely that those projects will be written in C++. With embedded hardwar
Advanced Metaprogramming in Classic C++
Language: en
Pages: 554
Authors: Davide Di Gennaro
Categories: Computers
Type: BOOK - Published: 2015-05-08 - Publisher: Apress

DOWNLOAD EBOOK

Advanced Metaprogramming in Classic C++ aims to be both an introduction and a reference to C++ template metaprogramming (TMP); TMP is presented in the book as a