1#ifndef STAN_MATH_PRIM_FUN_COLUMNS_DOT_SELF_HPP
2#define STAN_MATH_PRIM_FUN_COLUMNS_DOT_SELF_HPP
19template <
typename T, require_eigen_t<T>* =
nullptr,
20 require_not_eigen_vt<is_var, T>* =
nullptr>
23 return x.colwise().squaredNorm();
auto columns_dot_self(const T &a)
Returns the dot product of each column of a matrix with itself.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...