Embedded Target for Texas Instruments C6000 DSPs    
Vector Maximum Index

Compute the index of the maximum value element in each channel of an input signal

Library

C62x DSP Library--Math and Matrices

Description

The Vector Maximum Index block computes the zero-based index of the maximum value element in each channel (vector) of the input signal. The input may be any real, 16-bit, signed fixed-point data type, and the number of samples per input channel must be an integer multiple of three. The output data type is a 32-bit signed integer.

The Vector Maximum Index block supports both continuous and discrete sample times. This block also supports both little-endian and big-endian code generation.

Dialog Box

Algorithm

In simulation, the Vector Maximum Index block is equivalent to the TMS320C62x DSP Library assembly code function DSP_maxidx. During code generation, this block calls the DSP_maxidx routine to produce optimized code.


  Vector Dot Product Vector Maximum Value