CoreFlow 1.0.0
A modern orchestration and execution runtime
|
The Internal Matrix API. More...
Namespaces | |
namespace | coreflow |
The internal representation of a vx_array. | |
Functions | |
coreflow::Matrix::Matrix (vx_context context, vx_reference scope) | |
Construct a new Matrix object. | |
coreflow::Matrix::Matrix (vx_context context, vx_type_e type, vx_reference scope) | |
Construct a new Matrix object. | |
static vx_matrix | coreflow::Matrix::createMatrix (vx_context context, vx_enum data_type, vx_size columns, vx_size rows) |
Create a matrix object. | |
vx_enum | coreflow::Matrix::dataType () const |
Get the data type of the matrix. | |
vx_size | coreflow::Matrix::numRows () const |
Get the number of rows in the matrix. | |
vx_size | coreflow::Matrix::numCols () const |
Get the number of columns in the matrix. | |
vx_coordinates2d_t | coreflow::Matrix::originCoord () const |
Get the origin coordinates of the matrix. | |
vx_enum | coreflow::Matrix::patternType () const |
Get the pattern type of the matrix. | |
vx_status | coreflow::Matrix::read (void *array) |
Read the matrix data into an array. | |
vx_status | coreflow::Matrix::write (const void *array) |
Write the matrix data from an array. | |
vx_status | coreflow::Matrix::copy (void *ptr, vx_enum usage, vx_enum mem_type) |
Copy the matrix data to/from a pointer. | |
coreflow::Matrix::~Matrix () | |
Destroy the Matrix object. | |
void | coreflow::Matrix::destruct () override |
Destroys a matrix objects. | |
The Internal Matrix API.
#include <vx_matrix.h>
Copy the matrix data to/from a pointer.
ptr | The pointer to copy the matrix data to/from. |
usage | The usage flags for the memory operation. |
mem_type | The type of memory used (e.g., OpenCL buffer). |
|
static |
#include <vx_matrix.h>
Create a matrix object.
context | The context associated with this obj |
data_type | The data type of the matrix |
columns | The number of columns in the matrix |
rows | The number of rows in the matrix |
vx_enum coreflow::Matrix::dataType | ( | ) | const |
|
overridevirtual |
coreflow::Matrix::Matrix | ( | vx_context | context, |
vx_reference | scope ) |
#include <vx_matrix.h>
Construct a new Matrix object.
context | The context associated with this obj |
scope | The parent ref of this obj |
coreflow::Matrix::Matrix | ( | vx_context | context, |
vx_type_e | type, | ||
vx_reference | scope ) |
#include <vx_matrix.h>
Construct a new Matrix object.
context | The context associated with this obj |
type | The data type of matrix |
scope | The parent ref of this obj |
vx_size coreflow::Matrix::numCols | ( | ) | const |
#include <vx_matrix.h>
Get the number of columns in the matrix.
vx_size coreflow::Matrix::numRows | ( | ) | const |
#include <vx_matrix.h>
Get the number of rows in the matrix.
vx_coordinates2d_t coreflow::Matrix::originCoord | ( | ) | const |
#include <vx_matrix.h>
Get the origin coordinates of the matrix.
vx_enum coreflow::Matrix::patternType | ( | ) | const |
#include <vx_matrix.h>
Get the pattern type of the matrix.
vx_status coreflow::Matrix::read | ( | void * | array | ) |
#include <vx_matrix.h>
Read the matrix data into an array.
array | The array to read the matrix data into. |
vx_status coreflow::Matrix::write | ( | const void * | array | ) |
#include <vx_matrix.h>
Write the matrix data from an array.
array | The array containing the matrix data to write. |
coreflow::Matrix::~Matrix | ( | ) |
#include <vx_matrix.h>
Destroy the Matrix object.