Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ is_symmetric()

__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.

Parameters
[in]AThe matrix to check.
rowsThe number of rows in matrix A.
colsThe number of columns in matrix A.
[out]flagthe flag to be written to if any diagonal is zero.
toleranceThe numerical tolerance to check whether two values are equal
Note
Code is a 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.