Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::array_builder< T > Class Template Reference

Detailed Description

template<typename T>
class stan::math::array_builder< T >

Structure for building up arrays in an expression (rather than in statements) using an argument-chaining add() method and a getter method array() to return the result.

Array elements are held in std::vector of type T.

Template Parameters
Ttype of array elements

Definition at line 20 of file array_builder.hpp.

#include <array_builder.hpp>

Public Member Functions

 array_builder ()
 Construct an array_builder.
 
template<typename S >
array_builderadd (const S &u)
 Add one element of type S to array, promoting to type T.
 
std::vector< T > array ()
 Getter method to return array itself.
 

Private Attributes

std::vector< T > x_
 

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