Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
sort.hpp File Reference
#include <valarray>
#include <stan/agrad/rev/var.hpp>
#include <stan/agrad/rev/internal/v_vari.hpp>
#include <stan/agrad/rev/operators/operator_greater_than.hpp>
#include <stan/agrad/rev/operators/operator_less_than.hpp>
#include <vector>
#include <stan/math/matrix/Eigen.hpp>
#include <algorithm>
#include <functional>

Go to the source code of this file.

Namespaces

 stan
 Probability, optimization and sampling library.
 
 stan::agrad
 Function gradients via reverse-mode automatic differentiation.
 

Functions

std::vector< var > stan::agrad::sort_asc (std::vector< var > xs)
 Return the specified standard vector in ascending order with gradients kept. More...
 
std::vector< var > stan::agrad::sort_desc (std::vector< var > xs)
 Return the specified standard vector in descending order with gradients kept. More...
 
template<int R, int C>
Eigen::Matrix< var, R, C > stan::agrad::sort_asc (Eigen::Matrix< var, R, C > xs)
 Return the specified eigen vector in ascending order with gradients kept. More...
 
template<int R, int C>
Eigen::Matrix< var, R, C > stan::agrad::sort_desc (Eigen::Matrix< var, R, C > xs)
 Return the specified eigen vector in descending order with gradients kept. More...
 

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