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>
24 return std::forward<decltype(x_)>(x_).colwise().squaredNorm();
auto columns_dot_self(const T &a)
Returns the dot product of each column of a matrix with itself.
auto make_holder(F &&func, Args &&... args)
Calls given function with given arguments.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...