| Stan Math Library 2.11.0 reverse mode automatic differentiation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Namespaces | Functions
unit_vector_constrain.hpp File Reference
`#include <stan/math/prim/arr/err/check_nonzero_size.hpp>`
`#include <stan/math/prim/mat/fun/Eigen.hpp>`
`#include <stan/math/prim/mat/fun/dot_self.hpp>`
`#include <stan/math/prim/mat/err/check_vector.hpp>`
`#include <stan/math/prim/scal/err/check_positive_finite.hpp>`
`#include <stan/math/rev/core.hpp>`
`#include <stan/math/rev/mat/fun/dot_self.hpp>`
`#include <cmath>`

Go to the source code of this file.

## Namespaces
| stan
| stan::math
| Matrices and templated mathematical functions.

## Functions
template<int R, int C>
Eigen::Matrix< var, R, C > | stan::math::unit_vector_constrain (const Eigen::Matrix< var, R, C > &y)
| Return the unit length vector corresponding to the free vector y. More...
template<int R, int C>
Eigen::Matrix< var, R, C > | stan::math::unit_vector_constrain (const Eigen::Matrix< var, R, C > &y, var &lp)
| Return the unit length vector corresponding to the free vector y. More...

## Variable Documentation

const int idx_

Definition at line 22 of file unit_vector_constrain.hpp.

const double norm_

Definition at line 23 of file unit_vector_constrain.hpp.

const int size_

Definition at line 21 of file unit_vector_constrain.hpp.

const double* unit_vector_y_

Definition at line 20 of file unit_vector_constrain.hpp.

vari** y_

Definition at line 19 of file unit_vector_constrain.hpp.

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