MADNESS 0.10.1
Public Attributes | List of all members
madness::mTxmq_detail::Scratch< T > Struct Template Reference

#include <mTxmq.h>

Public Attributes

std::vector< T > buf
 

Detailed Description

template<typename T>
struct madness::mTxmq_detail::Scratch< T >

Per-thread grow-on-demand scratch for the complex*real decomposition.

Backed by a reclaimable thread_specific pool rather than a large stack array. The four real buffers scale as dimi*(dimj+dimk), which for 3-D nonstandard-form blocks (dimi = (2k)^2) already exceeds any sane stack budget, and an unconditional array sized for the good case enlarges every frame – including the calls that end up on the heap path. Buffers grow monotonically to the largest need seen on that thread and are never shared across threads; mTxmq_scratch_clear<T>() reclaims them.

Member Data Documentation

◆ buf

template<typename T >
std::vector<T> madness::mTxmq_detail::Scratch< T >::buf

The documentation for this struct was generated from the following file: