![]() |
Fréchet View
1.6.0
A Tool for Exploring Fréchet Distance Algorithms
|
Go to the source code of this file.
Functions | |
void | assertMatrixSize (clmatrix_t *C, clmatrix_t *A, clmatrix_t *B) |
void | clm4rm_or (clmatrix_t *C, clmatrix_t *A, clmatrix_t *B, cl_command_queue queue, clm4rm_conditions *cond) |
perform element-wise logical disjunction (OR) More... | |
void | clm4rm_and (clmatrix_t *C, clmatrix_t *A, clmatrix_t *B, cl_command_queue queue, clm4rm_conditions *cond) |
perform element-wise logical conjunction (AND). For each entry, compute C_ij := A_ij & B_ij. All input matrices must have the same size. More... | |
cl_mem | clm4rm_query_diagonal (clmatrix_t *M, cl_context ctx, cl_command_queue queue, clm4rm_conditions *cond) |
find a non-zero entry on the diagonal of a matrix. Return the column/row of the first non-zero entry, or -1 if all entries are zero. The operation does not immediately return a result. It performs asynchronously. Use the post-conditions variables to wait for the execution of the operation, then use clm4rm_query_result to retrieve the actual result. More... | |
int | clm4rm_query_result (cl_mem result_buffer, cl_command_queue queue, clm4rm_conditions *cond) |
examine the result of a previous call to clm4rm_query_diagonal More... | |
void | clm4rm_free (clmatrix_t *gpu_matrix) |
release memory (CPU and GPU) More... | |
void | clm4rm_stack (clmatrix_t *C, clmatrix_t *A, clmatrix_t *B, cl_command_queue queue, clm4rm_conditions *cond) |
concatenate two matrices More... | |
void | clm4rm_concat (clmatrix_t *C, clmatrix_t *A, clmatrix_t *B, cl_command_queue queue, clm4rm_conditions *cond) |
concatenate two matrices More... | |
Variables | |
cl_kernel | clm4rm_and_kernel |
cl_kernel | clm4rm_or_kernel |
cl_kernel | clm4rm_copy_kernel |
cl_kernel | clm4rm_query_diagonal_kernel |
void assertMatrixSize | ( | clmatrix_t * | C, |
clmatrix_t * | A, | ||
clmatrix_t * | B | ||
) |
Definition at line 5 of file clm4rm_bitwise.cpp.
void clm4rm_and | ( | clmatrix_t * | C, |
clmatrix_t * | A, | ||
clmatrix_t * | B, | ||
cl_command_queue | queue, | ||
clm4rm_conditions * | cond | ||
) |
perform element-wise logical conjunction (AND). For each entry, compute C_ij := A_ij & B_ij. All input matrices must have the same size.
C | a Boolean matrix; holds the result on return |
A | an input Boolean matrix |
B | an input Boolean matrix |
queue | OpenCL command queue |
cond | keeps track of pre-conditions and newly created post-conditions |
Definition at line 45 of file clm4rm_bitwise.cpp.
void clm4rm_concat | ( | clmatrix_t * | C, |
clmatrix_t * | A, | ||
clmatrix_t * | B, | ||
cl_command_queue | queue, | ||
clm4rm_conditions * | cond | ||
) |
concatenate two matrices
Definition at line 160 of file clm4rm_bitwise.cpp.
void clm4rm_free | ( | clmatrix_t * | gpu_matrix | ) |
void clm4rm_or | ( | clmatrix_t * | C, |
clmatrix_t * | A, | ||
clmatrix_t * | B, | ||
cl_command_queue | queue, | ||
clm4rm_conditions * | cond | ||
) |
perform element-wise logical disjunction (OR)
Definition at line 23 of file clm4rm_bitwise.cpp.
cl_mem clm4rm_query_diagonal | ( | clmatrix_t * | M, |
cl_context | ctx, | ||
cl_command_queue | queue, | ||
clm4rm_conditions * | cond | ||
) |
find a non-zero entry on the diagonal of a matrix. Return the column/row of the first non-zero entry, or -1 if all entries are zero. The operation does not immediately return a result. It performs asynchronously. Use the post-conditions variables to wait for the execution of the operation, then use clm4rm_query_result to retrieve the actual result.
M | a matrix |
ctx | OpenCL context |
queue | OpenCL command queue |
cond | keeps track of pre-conditions and newly created post-conditions |
Definition at line 67 of file clm4rm_bitwise.cpp.
int clm4rm_query_result | ( | cl_mem | result_buffer, |
cl_command_queue | queue, | ||
clm4rm_conditions * | cond | ||
) |
examine the result of a previous call to clm4rm_query_diagonal
result_buffer | buffer that holds one integer. Was returned by clm4rm_query_diagonal. Will be released. |
queue | OpenCL command queue |
cond | keeps track of pre-conditions and newly created post-conditions |
Definition at line 94 of file clm4rm_bitwise.cpp.
void clm4rm_stack | ( | clmatrix_t * | C, |
clmatrix_t * | A, | ||
clmatrix_t * | B, | ||
cl_command_queue | queue, | ||
clm4rm_conditions * | cond | ||
) |
concatenate two matrices
Definition at line 123 of file clm4rm_bitwise.cpp.
cl_kernel clm4rm_and_kernel |
Definition at line 63 of file clm4rm.cpp.
cl_kernel clm4rm_copy_kernel |
Definition at line 65 of file clm4rm.cpp.
cl_kernel clm4rm_or_kernel |
Definition at line 64 of file clm4rm.cpp.
cl_kernel clm4rm_query_diagonal_kernel |
Definition at line 66 of file clm4rm.cpp.