TIOVX User Guide
tiovx.array.Array Class Reference

Array object (OpenVX equivalent = vx_array) More...

Inherits tiovx.reference.Reference.

Public Member Functions

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

Detailed Description

Array object (OpenVX equivalent = vx_array)

Example Usage: Create a array object
from tiovx import *
my_array1 = Array(Type.UINT8, 10, name="myarray")
my_array2 = Array(Type.UINT32, 10)

Definition at line 77 of file array.py.

Constructor & Destructor Documentation

◆ __init__()

def tiovx.array.Array.__init__ (   self,
  item_type,
  capacity,
  access_type = "Host",
  in_file_addr = "./",
  out_file_addr = "./",
  name = "default" 
)

Constructor used to create this object.

See also
vxCreateArray for more details about the parameters
Parameters
item_type[in] Data type. tiovx::enums::Type
capacity[in] Number of elements that can be stored in the Array
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 88 of file array.py.


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