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

◆ bytes_allocated()

size_t stan::math::stack_alloc::bytes_allocated ( ) const
inline

Return number of bytes allocated to this instance by the heap.

This is not the same as the number of bytes allocated through calls to memalloc_. The latter number is not calculatable because space is wasted at the end of blocks if the next alloc request doesn't fit. (Perhaps we could trim down to what is actually used?)

Returns
number of bytes allocated to this instance

Definition at line 264 of file stack_alloc.hpp.