1 #ifndef VIENNACL_LINALG_OPENCL_COMMON_HPP_
2 #define VIENNACL_LINALG_OPENCL_COMMON_HPP_
41 return static_cast<cl_uint
>( ((length > 1) ? (cl_uint(length) << 2) : 0) + (reciprocal ? 2 : 0) + (flip_sign ? 1 : 0) );
50 if (B_row_major && C_row_major)
51 return "trans_mat_mult_row_row";
52 if (B_row_major && !C_row_major)
53 return "trans_mat_mult_row_col";
54 if (!B_row_major && C_row_major)
55 return "trans_mat_mult_col_row";
57 return "trans_mat_mult_col_col";
60 if (B_row_major && C_row_major)
61 return "mat_mult_row_row";
62 if (B_row_major && !C_row_major)
63 return "mat_mult_row_col";
64 if (!B_row_major && C_row_major)
65 return "mat_mult_col_row";
67 return "mat_mult_col_col";
A tag class representing the cosh() function.
Definition: forwards.h:107
std::size_t vcl_size_t
Definition: forwards.h:58
A tag class representing the tan() function.
Definition: forwards.h:133
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...
Definition: common.hpp:46
A tag class representing the modulus function for integers.
Definition: forwards.h:93
A tag class representing the ceil() function.
Definition: forwards.h:103
This file provides the forward declarations for the main types used within ViennaCL.
A tag class representing the log() function.
Definition: forwards.h:123
A tag class representing the tanh() function.
Definition: forwards.h:135
A tag class representing the fabs() function.
Definition: forwards.h:111
A tag class representing the atan() function.
Definition: forwards.h:99
A tag class representing the sinh() function.
Definition: forwards.h:129
A tag class representing the exp() function.
Definition: forwards.h:109
NumericT flip_sign(NumericT val)
Definition: vector_operations.hpp:54
cl_uint make_options(vcl_size_t length, bool reciprocal, bool flip_sign)
Definition: common.hpp:39
A tag class representing the sqrt() function.
Definition: forwards.h:131
A tag class representing the sin() function.
Definition: forwards.h:127
A tag class representing the floor() function.
Definition: forwards.h:115
A tag class representing the asin() function.
Definition: forwards.h:97
A tag class representing the acos() function.
Definition: forwards.h:95
std::string op_to_string(op_abs)
Definition: common.hpp:71
A tag class representing the log10() function.
Definition: forwards.h:125
A tag class representing the cos() function.
Definition: forwards.h:105