1 #ifndef STAN_MATH_FWD_MAT_FUN_SQUARED_DISTANCE_HPP
2 #define STAN_MATH_FWD_MAT_FUN_SQUARED_DISTANCE_HPP
28 template<
typename T,
int R,
int C>
31 const Eigen::Matrix<double, R, C>& v2) {
37 Eigen::Matrix<stan::math::fvar<T>, R, C> v3
57 template<
typename T,
int R1,
int C1,
int R2,
int C2>
60 const Eigen::Matrix<double, R2, C2>& v2) {
66 Eigen::Matrix<double, R1, C1> t_v2 = v2.transpose();
67 Eigen::Matrix<stan::math::fvar<T>, R1, C1> v3
85 template<
typename T,
int R,
int C>
94 Eigen::Matrix<stan::math::fvar<T>, R, C> v3
114 template<
typename T,
int R1,
int C1,
int R2,
int C2>
123 Eigen::Matrix<double, R2, C2> t_v1 = v1.transpose();
124 Eigen::Matrix<stan::math::fvar<T>, R2, C2> v3
141 template<
typename T,
int R,
int C>
150 Eigen::Matrix<stan::math::fvar<T>, R, C> v3
170 template<
typename T,
int R1,
int C1,
int R2,
int C2>
179 Eigen::Matrix<stan::math::fvar<T>, R2, C2> t_v1 = v1.transpose();
180 Eigen::Matrix<stan::math::fvar<T>, R2, C2> v3
bool check_vector(const char *function, const char *name, const Eigen::Matrix< T, R, C > &x)
Return true if the matrix is either a row vector or column vector.
Eigen::Matrix< typename boost::math::tools::promote_args< T1, T2 >::type, R, C > subtract(const Eigen::Matrix< T1, R, C > &m1, const Eigen::Matrix< T2, R, C > &m2)
Return the result of subtracting the second specified matrix from the first specified matrix...
fvar< T > dot_self(const Eigen::Matrix< fvar< T >, R, C > &v)
stan::math::fvar< T > squared_distance(const Eigen::Matrix< stan::math::fvar< T >, R, C > &v1, const Eigen::Matrix< double, R, C > &v2)
Returns the squared distance between the specified vectors of the same dimensions.
bool check_matching_sizes(const char *function, const char *name1, const T_y1 &y1, const char *name2, const T_y2 &y2)
Return true if two structures at the same size.