Stan Math Library
5.0.0
Automatic Differentiation
|
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.
T | type 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_builder & | add (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_ |