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

#include <traits.hpp>

Public Types

typedef scalar_type< T >::type scalar_t
 

Public Member Functions

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

Detailed Description

template<typename T, bool is_array>
class stan::VectorView< const T, is_array >

Definition at line 228 of file traits.hpp.

Member Typedef Documentation

◆ scalar_t

template<typename T , bool is_array>
typedef scalar_type<T>::type stan::VectorView< const T, is_array >::scalar_t

Definition at line 230 of file traits.hpp.

Constructor & Destructor Documentation

◆ VectorView() [1/4]

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

Definition at line 232 of file traits.hpp.

◆ VectorView() [2/4]

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

Definition at line 234 of file traits.hpp.

◆ VectorView() [3/4]

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

Definition at line 236 of file traits.hpp.

◆ VectorView() [4/4]

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

Definition at line 239 of file traits.hpp.

Member Function Documentation

◆ operator[]()

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

Definition at line 241 of file traits.hpp.


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

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