Stan Math Library  2.20.0
reverse mode automatic differentiation
Public Member Functions | List of all members
stan::math::chainable_alloc Class Reference

A chainable_alloc is an object which is constructed and destructed normally but the memory lifespan is managed along with the arena allocator for the gradient calculation. More...

#include <chainable_alloc.hpp>

Inheritance diagram for stan::math::chainable_alloc:
stan::math::LDLT_alloc< R1, C1 > stan::math::internal::mdivide_left_ldlt_alloc< R1, C1, R2, C2 > stan::math::internal::mdivide_left_spd_alloc< R1, C1, R2, C2 > stan::math::internal::quad_form_vari_alloc< Ta, Ra, Ca, Tb, Rb, Cb > stan::math::internal::trace_gen_quad_form_vari_alloc< Td, Rd, Cd, Ta, Ra, Ca, Tb, Rb, Cb > stan::math::internal::trace_inv_quad_form_ldlt_impl< T2, R2, C2, T3, R3, C3 > stan::math::internal::trace_quad_form_vari_alloc< Ta, Ra, Ca, Tb, Rb, Cb > stan::math::LDLT_alloc< R, C >

Public Member Functions

 chainable_alloc ()
 
virtual ~chainable_alloc ()
 

Detailed Description

A chainable_alloc is an object which is constructed and destructed normally but the memory lifespan is managed along with the arena allocator for the gradient calculation.

A chainable_alloc instance must be created with a call to operator new for memory management.

Definition at line 16 of file chainable_alloc.hpp.

Constructor & Destructor Documentation

◆ chainable_alloc()

stan::math::chainable_alloc::chainable_alloc ( )
inline

Definition at line 18 of file chainable_alloc.hpp.

◆ ~chainable_alloc()

virtual stan::math::chainable_alloc::~chainable_alloc ( )
inlinevirtual

Definition at line 21 of file chainable_alloc.hpp.


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

     [ Stan Home Page ] © 2011–2018, Stan Development Team.