1 #ifndef VIENNACL_LINALG_OPENCL_COMMON_HPP_ 
    2 #define VIENNACL_LINALG_OPENCL_COMMON_HPP_ 
   44   return static_cast<cl_uint
>( ((length > 1) ? (cl_uint(length) << 2) : 0) + (reciprocal ? 2 : 0) + (flip_sign ? 1 : 0) );
 
   53     if (B_row_major && C_row_major)
 
   54       return "trans_mat_mult_row_row";
 
   55     if (B_row_major && !C_row_major)
 
   56       return "trans_mat_mult_row_col";
 
   57     if (!B_row_major && C_row_major)
 
   58       return "trans_mat_mult_col_row";
 
   60     return "trans_mat_mult_col_col";
 
   63   if (B_row_major && C_row_major)
 
   64     return "mat_mult_row_row";
 
   65   if (B_row_major && !C_row_major)
 
   66     return "mat_mult_row_col";
 
   67   if (!B_row_major && C_row_major)
 
   68     return "mat_mult_col_row";
 
   70   return "mat_mult_col_col";
 
   75 template<
typename SomeT>
 
A tag class representing the cosh() function. 
A tag class representing the tan() function. 
std::string sparse_dense_matmult_kernel_name(bool B_transposed, bool B_row_major, bool C_row_major)
Returns the OpenCL kernel string for the operation C = A * B with A sparse, B, C dense matrices...
A tag class representing the modulus function for integers. 
A tag class representing the ceil() function. 
A class representing a compute device (e.g. a GPU) 
This file provides the forward declarations for the main types used within ViennaCL. 
A tag class representing the log() function. 
A tag class representing the tanh() function. 
A tag class representing the fabs() function. 
A tag class representing the atan() function. 
A tag class representing the sinh() function. 
A tag class representing the exp() function. 
NumericT flip_sign(NumericT val)
cl_uint make_options(vcl_size_t length, bool reciprocal, bool flip_sign)
ocl::device const & current_device(SomeT const &obj)
A tag class representing the sqrt() function. 
A tag class representing the sin() function. 
A tag class representing the floor() function. 
A tag class representing the asin() function. 
Extracts the underlying OpenCL handle from a vector, a matrix, an expression etc. ...
A tag class representing the acos() function. 
std::string op_to_string(op_abs)
A tag class representing the log10() function. 
A tag class representing the cos() function.