All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
columns_dot_self.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_COLUMNS_DOT_SELF_HPP
#define STAN_MATH_PRIM_MAT_FUN_COLUMNS_DOT_SELF_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
namespace stan {
namespace math {
template<typename T, int R, int C>
inline Eigen::Matrix<T, 1, C>
columns_dot_self(const Eigen::Matrix<T, R, C>& x) {
return x.colwise().squaredNorm();
}
}
}
#endif
Eigen.hpp
stan::math::columns_dot_self
Eigen::Matrix< fvar< T >, 1, C > columns_dot_self(const Eigen::Matrix< fvar< T >, R, C > &x)
Definition: columns_dot_self.hpp:15

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