Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::Holder< ArgType, Ptrs > Class Template Reference

Detailed Description

template<typename ArgType, typename... Ptrs>
class stan::math::Holder< ArgType, Ptrs >

A no-op Eigen operation.

This object also owns pointers to dynamically allocated objects used in its argument expression. When this object is destructed, those objects are deleted.

Template Parameters
Derivedderived type
Ttype of the argument

Definition at line 115 of file holder.hpp.

#include <holder.hpp>

+ Inheritance diagram for stan::math::Holder< ArgType, Ptrs >:

Public Types

typedef Eigen::internal::ref_selector< Holder< ArgType, Ptrs... > >::type Nested
 

Public Member Functions

 Holder (ArgType &&arg, Ptrs *... pointers)
 
 Holder (const Holder< ArgType, Ptrs... > &)=default
 
 Holder (Holder< ArgType, Ptrs... > &&)=default
 
Eigen::Index rows () const
 
Eigen::Index cols () const
 
Eigen::Index innerStride () const
 
Eigen::Index outerStride () const
 
auto * data ()
 
template<typename T , require_eigen_t< T > * = nullptr>
Holder< ArgType, Ptrs... > & operator= (const T &other)
 Assignment operator assigns expresssions.
 
Holder< ArgType, Ptrs... > & operator= (const Holder< ArgType, Ptrs... > &other)
 
Holder< ArgType, Ptrs... > & operator= (Holder< ArgType, Ptrs... > &&other)
 

Public Attributes

Eigen::internal::ref_selector< ArgType >::non_const_type m_arg
 
std::tuple< std::unique_ptr< Ptrs >... > m_unique_ptrs
 

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