Stan  1.0
probability, sampling & optimization
Public Types | Public Member Functions | List of all members
stan::VectorView< T, is_array > Class Template Reference

#include <traits.hpp>

Public Types

typedef scalar_type< T >::type scalar_t
 

Public Member Functions

 VectorView (scalar_t &c)
 
 VectorView (std::vector< scalar_t > &v)
 
template<int R, int C>
 VectorView (Eigen::Matrix< scalar_t, R, C > &m)
 
 VectorView (scalar_t *x)
 
scalar_toperator[] (int i)
 

Detailed Description

template<typename T, bool is_array = stan::is_vector_like<T>::value>
class stan::VectorView< T, is_array >

Definition at line 206 of file traits.hpp.

Member Typedef Documentation

◆ scalar_t

template<typename T , bool is_array = stan::is_vector_like<T>::value>
typedef scalar_type<T>::type stan::VectorView< T, is_array >::scalar_t

Definition at line 208 of file traits.hpp.

Constructor & Destructor Documentation

◆ VectorView() [1/4]

template<typename T , bool is_array = stan::is_vector_like<T>::value>
stan::VectorView< T, is_array >::VectorView ( scalar_t c)
inline

Definition at line 210 of file traits.hpp.

◆ VectorView() [2/4]

template<typename T , bool is_array = stan::is_vector_like<T>::value>
stan::VectorView< T, is_array >::VectorView ( std::vector< scalar_t > &  v)
inline

Definition at line 212 of file traits.hpp.

◆ VectorView() [3/4]

template<typename T , bool is_array = stan::is_vector_like<T>::value>
template<int R, int C>
stan::VectorView< T, is_array >::VectorView ( Eigen::Matrix< scalar_t, R, C > &  m)
inline

Definition at line 215 of file traits.hpp.

◆ VectorView() [4/4]

template<typename T , bool is_array = stan::is_vector_like<T>::value>
stan::VectorView< T, is_array >::VectorView ( scalar_t x)
inline

Definition at line 217 of file traits.hpp.

Member Function Documentation

◆ operator[]()

template<typename T , bool is_array = stan::is_vector_like<T>::value>
scalar_t& stan::VectorView< T, is_array >::operator[] ( int  i)
inline

Definition at line 219 of file traits.hpp.


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

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