![]() |
Stan Math Library
2.20.0
reverse mode automatic differentiation
|
Functions | |
template<TriangularViewCL triangular_view_A = TriangularViewCL::Entire, TriangularViewCL triangular_view_B = TriangularViewCL::Entire> | |
auto | multiply (const matrix_cl &A, const matrix_cl &B) |
Computes the product of the specified matrices with the option of specifying the triangularity of either input matrices. More... | |
template<int N> | |
cl::size_t< N > | to_size_t (const size_t(&values)[N]) |
A helper function to convert an array to a cl::size_t<N>. More... | |
template<> | |
cl::size_t< 3 > | to_size_t (const size_t(&values)[3]) |
A template specialization of the helper function to convert an array to a cl::size_t<3>. More... | |
|
inline |
Computes the product of the specified matrices with the option of specifying the triangularity of either input matrices.
Computes the matrix multiplication C[M, K] = A[M, N] x B[N, K]
A | first matrix |
B | second matrix |
triangular_view_A | specifies whether the matrix A is a lower/upper triangular or a rectangular matrix |
triangular_view_B | specifies whether the matrix B is a lower/upper triangular or a rectangular matrix |
<code>std::invalid_argument</code> | if the number of columns in A and rows in B do not match |
Definition at line 36 of file multiply.hpp.
|
inline |
A helper function to convert an array to a cl::size_t<N>.
This implementation throws because cl::size_t<N> for N!=3 should throw.
values | the input array to be converted |
Definition at line 45 of file opencl_context.hpp.
|
inline |
A template specialization of the helper function to convert an array to a cl::size_t<3>.
values | the input array to be converted |
Definition at line 57 of file opencl_context.hpp.