Stan Math Library
4.9.0
Automatic Differentiation
|
__kernel void stan::math::opencl_kernels::is_symmetric | ( | __global double * | A, |
__global int * | flag, | ||
unsigned int | rows, | ||
unsigned int | cols, | ||
double | tolerance | ||
) |
Check if the matrix_cl
is symmetric.
[in] | A | The matrix to check. |
rows | The number of rows in matrix A. | |
cols | The number of columns in matrix A. | |
[out] | flag | the flag to be written to if any diagonal is zero. |
tolerance | The numerical tolerance to check whether two values are equal |
const char*
held in is_symmetric_kernel_code.
Kernel for stan/math/opencl/err/check_symmetric.hpp. This kernel uses the helper macros available in helpers.cl. Definition at line 29 of file check_symmetric.hpp.