Primitives of this library can be found both in the DE and SDF domain, they provide access to vectors and matrices.
Three kinds of vector primitives are available for handling:
Integer and Float vectors can only contain integers and floats respectively. For generic vectors you can insert as elements, any data structure type including vectors, to simulate matrix operations. Provided are also primitives to write to and access vectors and elements of vectors that are stored in memories.
Name |
Domain |
Vector Type |
Description |
---|---|---|---|
AppendToxVector |
DE |
Float / General / Int |
Appends the input value to the input vector. |
AccessElementxVector |
DE / SDF |
Float / General / Int |
Outputs the element at the specified position in the vector coming on the input port. |
ChangeLengthxVector |
DE / SDF |
General |
Changes the length of the input vector and places it on the output port. |
CreatexVector |
DE / SDF |
Float / General / Int |
Creates a vector data structure with the specified length. |
GlobalMemoryAppendToxVector |
DE |
Float / General / Int |
Appends the input value to a vector stored in a global memory. |
GlobalMemoryInitxVector |
DE |
Float / General / Int |
Initializes a global memory with an Integer or Float vector of a given length. |
IndexOfValueIVector |
DE / SDF |
Int |
Search for a specified value in a range of elements in vector and returns the index of the first occurrence. |
LastModifiedElemOfxVector |
DE |
Float / General / Int |
Outputs the index of the vector element which was last modified. |
LengthOfxVector |
DE / SDF |
Float / General / Int |
Outputs the length of the vector. |
MemoryAccessxVector |
DE / SDF |
Float / General / Int |
Outputs the element at the specified position in a vector stored in a Memory. |
MemoryAddxVector |
DE |
Float / Int |
Increments by one an element at the specified index in an Integer or Float Vector. |
MemoryAddxVectorWithxOut |
DE |
Float / Int |
Increments by one an element at the specified index in an Integer or Float Vector and the new value is placed on the output port. |
MemoryAppendToxVector |
DE |
Float / General / Int |
Appends the input value to a vector stored in a Memory. |
MemoryChangeLengthxVector |
DE |
Float / Int |
Change the length of a vector stored in a Memory. |
MemoryInitxVector |
DE |
Float / General / Int |
Initializes a memory with a vector of given length. |
MemoryLargestInRangexVector |
DE / SDF |
Float / Int |
Outputs the element with the greatest value in an Integer or Float vector that is stored in a Memory. |
MemoryLengthxVector |
DE / SDF |
Float / General / Int |
Outputs the length of a vector stored in a Memory. |
MemorySetxVector |
DE |
Float / General / Int |
Sets an element at the specified index in a vector stored in a Memory. |
MemorySmallestInRangexVector |
DE / SDF |
Float / Int |
Outputs the element with the lowest value in an Integer or Float vector that is stored in a Memory. |
ReadFilexVector |
DE / SDF |
Float / Int |
Reads a vector from a file and places it on the output port. |
SetElementxVector |
DE / SDF |
Float / General / Int |
Sets an element at the specified index in a vector coming on the input port. |
SortxVector |
DE / SDF |
Float / Int |
Sorts all the elements of the input vector and places it on the output port. |
StringToxVector |
DE / SDF |
Float / Int |
Given a string of integer or float values, constructs a corresponding Integer or Float vector and places it on the output port. |
WriteFilexVector |
DE / SDF |
Float / Int |
Writes the incoming vector to a specified file. |