Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Namespaces | Functions
softmax.hpp File Reference
#include <stan/math/matrix/Eigen.hpp>
#include <stan/math/matrix/validate_nonzero_size.hpp>

Go to the source code of this file.

Namespaces

namespace  stan
 Probability, optimization and sampling library.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T >
Eigen::Matrix< T,
Eigen::Dynamic, 1 > 
stan::math::softmax (const Eigen::Matrix< T, Eigen::Dynamic, 1 > &v)
 Return the softmax of the specified vector.
 

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