![]() |
Stan Math Library
2.15.0
reverse mode automatic differentiation
|
Structure for building up arrays in an expression (rather than in statements) using an argumentchaining add() method and a getter method array() to return the result. More...
#include <array_builder.hpp>
Public Member Functions | |
array_builder () | |
Construct an array_builder. More... | |
template<typename S > | |
array_builder & | add (const S &u) |
Add one element of type S to array, promoting to type T. More... | |
std::vector< T > | array () |
Getter method to return array itself. More... | |
Structure for building up arrays in an expression (rather than in statements) using an argumentchaining 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 19 of file array_builder.hpp.
|
inline |
Construct an array_builder.
Definition at line 27 of file array_builder.hpp.
|
inline |
Add one element of type S to array, promoting to type T.
u | element to add |
Definition at line 36 of file array_builder.hpp.
|
inline |
Getter method to return array itself.
Definition at line 46 of file array_builder.hpp.