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 vectors
- float vectors
- generic vectors

*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 |
---|---|---|---|

AppendTo |
DE |
Float / General / Int |
Appends the input value to the input vector. |

AccessElement |
DE / SDF |
Float / General / Int |
Outputs the element at the specified position in the vector coming on the input port. |

ChangeLength |
DE / SDF |
General |
Changes the length of the input vector and places it on the output port. |

Create |
DE / SDF |
Float / General / Int |
Creates a vector data structure with the specified length. |

GlobalMemoryAppendTo |
DE |
Float / General / Int |
Appends the input value to a vector stored in a global memory. |

GlobalMemoryInit |
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. |

LastModifiedElemOf |
DE |
Float / General / Int |
Outputs the index of the vector element which was last modified. |

LengthOf |
DE / SDF |
Float / General / Int |
Outputs the length of the vector. |

MemoryAccess |
DE / SDF |
Float / General / Int |
Outputs the element at the specified position in a vector stored in a Memory. |

MemoryAdd |
DE |
Float / Int |
Increments by one an element at the specified index in an Integer or Float Vector. |

MemoryAdd |
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. |

MemoryAppendTo |
DE |
Float / General / Int |
Appends the input value to a vector stored in a Memory. |

MemoryChangeLength |
DE |
Float / Int |
Change the length of a vector stored in a Memory. |

MemoryInit |
DE |
Float / General / Int |
Initializes a memory with a vector of given length. |

MemoryLargestInRange |
DE / SDF |
Float / Int |
Outputs the element with the greatest value in an Integer or Float vector that is stored in a Memory. |

MemoryLength |
DE / SDF |
Float / General / Int |
Outputs the length of a vector stored in a Memory. |

MemorySet |
DE |
Float / General / Int |
Sets an element at the specified index in a vector stored in a Memory. |

MemorySmallestInRange |
DE / SDF |
Float / Int |
Outputs the element with the lowest value in an Integer or Float vector that is stored in a Memory. |

ReadFile |
DE / SDF |
Float / Int |
Reads a vector from a file and places it on the output port. |

SetElement |
DE / SDF |
Float / General / Int |
Sets an element at the specified index in a vector coming on the input port. |

Sort |
DE / SDF |
Float / Int |
Sorts all the elements of the input vector and places it on the output port. |

StringTo |
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. |

WriteFile |
DE / SDF |
Float / Int |
Writes the incoming vector to a specified file. |