<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C++ on Agastya Patri</title><link>https://agastyapatri.com/tags/c++/</link><description>Recent content in C++ on Agastya Patri</description><generator>Hugo</generator><language>en-US</language><copyright>Agastya Patri</copyright><lastBuildDate>Sun, 25 Oct 2026 16:01:02 +0530</lastBuildDate><atom:link href="https://agastyapatri.com/tags/c++/index.xml" rel="self" type="application/rss+xml"/><item><title>On the design of a tensor library in C++</title><link>https://agastyapatri.com/posts/carbon_1__design/</link><pubDate>Sun, 25 Oct 2026 16:01:02 +0530</pubDate><guid>https://agastyapatri.com/posts/carbon_1__design/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;&lt;strong&gt;Toolchain used for every capture:&lt;/strong&gt; clang 22.1.8, GCC 16.2.1, libstdc++ 16,Fedora 44, x86-64. Library built with &lt;code&gt;-std=c++20 -DCARBON_USE_BLAS&lt;/code&gt; against OpenBLAS, the same way &lt;code&gt;CMakeLists.txt&lt;/code&gt; builds it.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="introduction"&gt;Introduction &lt;a class="anchor" href="#introduction" aria-label="Link to this section"&gt;§&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;C++ templates are blueprints used by the compiler to generate classes when they are instantiated with a specific type. Class templates usually take the form of a single header file because the compiler needs to see the full implementation to generate concrete code at the point of use: the template&amp;rsquo;s definition is visible and a concrete type is known at compile time.&lt;/p&gt;</description></item></channel></rss>