Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ stack_alloc()

stan::math::stack_alloc::stack_alloc ( size_t  initial_nbytes = internal::DEFAULT_INITIAL_NBYTES)
inlineexplicit

Construct a resizable stack allocator initially holding the specified number of bytes.

Parameters
initial_nbytesInitial number of bytes for the allocator. Defaults to (1 << 16) = 64KB initial bytes.
Exceptions
std::runtime_errorif the underlying malloc is not 8-byte aligned.

Definition at line 131 of file stack_alloc.hpp.