covCoreStrm - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
#include "xf_fintech/covariance.hpp"
template <
    typename DT,
    int DTLEN,
    int N,
    int M,
    int TI,
    int TO
    >
void covCoreStrm (
    int rows,
    int cols,
    hls::stream <ap_uint <DTLEN*TI>>& inMatStrm,
    hls::stream <ap_uint <DTLEN*TO>>& outCovStrm
    )

covCoreStrm calculate the covariance of the input matrix, the input matrix input in the order of the columns by stream, the output covariance matrix output in the order of the rows by stream.

Parameters:

DT data type supported include float and double
DTLEN length of DT
N maximum supported row
M maximum supported column
TI the bit-width of input stream is TI * DTLEN
TO the bit-width of output stream is TO * DTLEN
rows actual row number
cols actual column number
inMatStrm according to stream way to input cols x rows matrix in the order of the columns
outCovStrm according to stream way to output rows x rows covariance matrix in the order of the rows