3.3.6 VectorWindow

Description

VectorWindow applies a window to a given source vector and stores the resulting windowed vector in a destination vector.

Prototype

fractional* VectorWindow (int numElems, fractional* dstV, fractional* srcV, fractional* window);

Arguments

Parameters

Description

numElems

Number of elements in the source vectors.

dstV

Pointer to the destination vector.

srcV

Pointer to the source vector.

window

Pointer to the initialized window.

Returns

Pointer to the base address of the destination vector.

Remarks

The window vector must have already been initialized, with exactly numElems number of elements.

This function can be computed in place.

This function can be self-applicable.

This function uses VectorMultiply.

Source File

  • dowindow_aa.s

Function Profile

Device

Program Words

Cycles

PIC32A

2

11

Note:
  1. The above-mentioned program word and cycle counts pertain solely to VectorWindow. However, as this function inherently utilizes VectorMultiply, the respective counts for VectorMultiply must also be considered.
  2. In the description of VectorMultiply, the number of cycles reported includes four cycles of C-function call overhead. Thus, the number of actual cycles from VectorMultiply to add to VectorWindow is four less than whatever number is reported for a stand-alone VectorMultiply.

System resource usage

  • None. (VectorWindow just includes a function to call to VectorMultiply.)