Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Namespaces | Functions
dist.hpp File Reference
#include <stan/math/matrix/Eigen.hpp>
#include <stan/math/matrix/validate_vector.hpp>
#include <stan/math/matrix/validate_matching_sizes.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<int R1, int C1, int R2, int C2>
double stan::math::dist (const Eigen::Matrix< double, R1, C1 > &v1, const Eigen::Matrix< double, R2, C2 > &v2)
 Returns the distance between the specified vectors.
 
template<int R1, int C1, int R2, int C2>
double stan::math::squared_dist (const Eigen::Matrix< double, R1, C1 > &v1, const Eigen::Matrix< double, R2, C2 > &v2)
 Returns the squared distance between the specified vectors.
 

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