TIOVX User Guide
tiovx.matrix.Matrix Class Reference

Matrix object (OpenVX equivalent = vx_matrix) More...

Inherits tiovx.reference.Reference.

Public Member Functions

def __init__ (self, data_type, columns, rows, access_type="Host", in_file_addr="./", out_file_addr="./", name="default")
 Constructor used to create this object. More...
 

Detailed Description

Matrix object (OpenVX equivalent = vx_matrix)

Example Usage: Create a matrix object of size 10x10
from tiovx import *
my_mat1 = Matrix(Type.UINT16, 10, 10, name="mymat")
my_mat2 = Matrix(Type.UINT16, 10, 10)

Definition at line 77 of file matrix.py.

Constructor & Destructor Documentation

◆ __init__()

def tiovx.matrix.Matrix.__init__ (   self,
  data_type,
  columns,
  rows,
  access_type = "Host",
  in_file_addr = "./",
  out_file_addr = "./",
  name = "default" 
)

Constructor used to create this object.

See also
vxCreateMatrix for more details about the parameters
Parameters
data_type[in] Data type. tiovx::enums::Type
columns[in] Columns
rows[in] Rows
access_type[in] [optional] Memory access type
in_file_addr[in] [optional] In the case of memory accessed from file, the path to the input file
out_file_addr[in] [optional] In the case of memory outputted to file, the path to the output file
name[in] [optional] Name of the object

Definition at line 89 of file matrix.py.


The documentation for this class was generated from the following file: