Stan Math Library  2.20.0
reverse mode automatic differentiation
Public Member Functions | List of all members
stan::math::internal::broadcast_array< T > Class Template Reference

#include <broadcast_array.hpp>

Public Member Functions

 broadcast_array (T &prim)
 
T & operator[] (int)
 
template<typename Y >
void operator= (const Y &m)
 We can assign any right hand side which allows for indexing to a broadcast_array. More...
 

Detailed Description

template<typename T>
class stan::math::internal::broadcast_array< T >

Definition at line 10 of file broadcast_array.hpp.

Constructor & Destructor Documentation

◆ broadcast_array()

template<typename T>
stan::math::internal::broadcast_array< T >::broadcast_array ( T &  prim)
inlineexplicit

Definition at line 15 of file broadcast_array.hpp.

Member Function Documentation

◆ operator=()

template<typename T>
template<typename Y >
void stan::math::internal::broadcast_array< T >::operator= ( const Y &  m)
inline

We can assign any right hand side which allows for indexing to a broadcast_array.

The idea is that the entry for the first index is what gets assigned. The most common use-case should be where the rhs is some container of length 1.

Definition at line 26 of file broadcast_array.hpp.

◆ operator[]()

template<typename T>
T& stan::math::internal::broadcast_array< T >::operator[] ( int  )
inline

Definition at line 17 of file broadcast_array.hpp.


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

     [ Stan Home Page ] © 2011–2018, Stan Development Team.