Stan Math Library  2.20.0
reverse mode automatic differentiation
Namespaces | Functions | Variables
subtract.hpp File Reference
#include <stan/math/opencl/kernel_cl.hpp>
#include <stan/math/opencl/buffer_types.hpp>

Go to the source code of this file.

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 
 stan::math::opencl_kernels
 

Functions

__kernel void stan::math::opencl_kernels::subtract (__global double *C, __global double *A, __global double *B, unsigned int rows, unsigned int cols)
 Matrix subtraction on the OpenCL device Subtracts the second matrix from the first matrix and stores the result in the third matrix (C=A-B). More...
 

Variables

const kernel_cl< out_buffer, in_buffer, in_buffer, int, int > stan::math::opencl_kernels::subtract ("subtract", {indexing_helpers, subtract_kernel_code})
 See the docs for subtract() . More...
 

     [ Stan Home Page ] © 2011–2018, Stan Development Team.