Automatic Differentiation
 
Loading...
Searching...
No Matches
crossprod.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_PRIM_FUN_CROSSPROD_HPP
2#define STAN_MATH_OPENCL_PRIM_FUN_CROSSPROD_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 = transpose(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
auto transpose(Arg &&a)
Transposes a kernel generator expression.
matrix_cl< T > multiply_transpose(const matrix_cl< T > &A)
Computes the product of a square OpenCL matrix with its transpose.
matrix_cl< typename std::decay_t< T_A >::Scalar > crossprod(T_A &&A)
Returns the result of pre-multiplying a matrix by its own transpose.
Definition crossprod.hpp:21
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...