Automatic Differentiation
 
Loading...
Searching...
No Matches
optional_broadcast.hpp File Reference

Go to the source code of this file.

Classes

class  stan::math::optional_broadcast_< T, Colwise, Rowwise >
 Represents an optional broadcasting operation in kernel generator expressions. More...
 

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<bool Colwise, bool Rowwise, typename T , typename = require_all_kernel_expressions_and_none_scalar_t<T>>
optional_broadcast_< as_operation_cl_t< T >, Colwise, Rowwise > stan::math::optional_broadcast (T &&a)
 Broadcast an expression in specified dimension(s) if the size along that dimension equals 1.
 
template<typename T , typename = require_all_kernel_expressions_and_none_scalar_t<T>>
auto stan::math::rowwise_optional_broadcast (T &&a)
 Broadcast an expression in rowwise dimmension if the number of columns equals to 1.
 
template<typename T , typename = require_all_kernel_expressions_and_none_scalar_t<T>>
auto stan::math::colwise_optional_broadcast (T &&a)
 Broadcast an expression in colwise dimmension if the number of rows equals to 1.