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

Detailed Description

template<bool used, typename T1, typename... Args>
class stan::VectorBuilder< used, T1, Args >

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 27 of file VectorBuilder.hpp.

#include <VectorBuilder.hpp>

Public Types

using type = typename helper::type
 

Public Member Functions

 VectorBuilder (size_t n)
 
T1 & operator[] (size_t i)
 
type data ()
 

Public Attributes

helper a
 

Private Types

using helper = VectorBuilderHelper< T1, used, math::disjunction< is_vector< Args >... >::value >
 

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