Automatic Differentiation
 
Loading...
Searching...
No Matches
tcrossprod.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_PRIM_FUN_TCROSSPROD_HPP
2#define STAN_MATH_OPENCL_PRIM_FUN_TCROSSPROD_HPP
3#ifdef STAN_OPENCL
4
8
9namespace stan {
10namespace math {
19template <typename T_A,
20 typename = require_all_kernel_expressions_and_none_scalar_t<T_A>>
23 = std::forward<T_A>(A);
24 return multiply_transpose(A_eval);
25}
26} // namespace math
27} // namespace stan
28#endif
29#endif
Represents an arithmetic matrix on the OpenCL device.
Definition matrix_cl.hpp:47
matrix_cl< T > multiply_transpose(const matrix_cl< T > &A)
Computes the product of a square OpenCL matrix with its transpose.
Eigen::Matrix< value_type_t< EigMat >, EigMat::RowsAtCompileTime, EigMat::RowsAtCompileTime > tcrossprod(const EigMat &m)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...