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

Go to the source code of this file.

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.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Enumerations

enum class  stan::math::internal::COPY_TYPE : uint8_t {
  stan::math::internal::SHALLOW = 0 ,
  stan::math::internal::DEEP = 1
}
 Decide if object should be deep or shallow copied when using conditional_copy_and_promote . More...
 

Functions

template<template< typename... > class Filter, typename PromotedType = stan::math::var, COPY_TYPE CopyType = COPY_TYPE::DEEP, typename... Args>
auto stan::math::internal::conditional_copy_and_promote (Args &&... args)
 Conditional copy and promote a type's scalar type to a PromotedType.
 
template<typename PromotedType , typename... Args>
auto stan::math::internal::deep_copy_vargs (Args &&... args)
 Conditional deep copy types with a var scalar type to PromotedType.
 
template<typename PromotedType , typename... Args>
auto stan::math::internal::shallow_copy_vargs (Args &&... args)
 Conditional shallow copy types with a var scalar type to PromotedType.