Stan Math Library  2.6.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
Namespaces | Functions
unit_vector_constrain.hpp File Reference
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/meta/index_type.hpp>
#include <cmath>

Go to the source code of this file.

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T >
Eigen::Matrix< T,
Eigen::Dynamic, 1 > 
stan::math::unit_vector_constrain (const Eigen::Matrix< T, Eigen::Dynamic, 1 > &y)
 Return the unit length vector corresponding to the free vector y. More...
 
template<typename T >
Eigen::Matrix< T,
Eigen::Dynamic, 1 > 
stan::math::unit_vector_constrain (const Eigen::Matrix< T, Eigen::Dynamic, 1 > &y, T &lp)
 Return the unit length vector corresponding to the free vector y. More...
 

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