Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::VectorBuilderHelper< T1, used, is_vec > Class Template Reference

Detailed Description

template<typename T1, bool used, bool is_vec>
class stan::VectorBuilderHelper< T1, used, is_vec >

VectorBuilder allocates type T1 values to be used as intermediate values.

There are 2 template parameters:

  • used: boolean variable indicating whether this instance is used. If this is false, there is no storage allocated and operator[] throws.
  • is_vec: boolean variable indicating whether this instance should allocate a vector, if it is used. If this is false, the instance will only allocate a single double value. If this is true, it will allocate the number requested. Note that this is calculated based on template parameters T2 through T7.

These values are mutable.

Definition at line 25 of file VectorBuilderHelper.hpp.

#include <VectorBuilderHelper.hpp>

Public Types

using type = T1
 

Public Member Functions

 VectorBuilderHelper (size_t)
 
T1 & operator[] (size_t)
 
typedata ()
 

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