This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Dsplib c66x rebuild needed?

Hi,

I am new to dsplib. Right now I'm planning to use DSPLIB, dsplib_c66x_3_1_0_0 for my TMDSEVMC6678L board. Let assume I want to use the DSPF_dp_mat_trans() function. According to the documentation, the input matrix x should be const double. In my code matrix that I want to transpose is not a constant. How can I modify so that the input remains double but not const ? Is it by modifying the DSPF_dp_mat_trans.c ? Do I need to rebuild the dsplib package? If yes, can anyone point me how to rebuild this package ?

Sorry if this type of question has been asked and answered before, but I didn't find any from this forum.

Thanks in advance.

Rizuan

  • Hi RIZUAN,

    I am not sure I completely understand your question. I looked at the documentation for DSPF_dp_mat_trans() function. Passing a dynamically created double type array to the function should work fine.

    If a function declaration defines the type of one of the parameters as const double *, that means the parameter is a pointer to a constant array of double type and cannot be used to modify the contents of the array. This will prevent the function implementation from modifying the contents of the array passed to it.

    void DSPF_dp_mat_trans(const double *restrict x, const int rows, const int cols, double *restrict y);

    In case of DSPF_dp_mat_trans(), x is defined as const double * but y is defined as double *. This means the function implementation cannot modify the contents of the array pointed to by x but it can modify the contents of the array pointed to by y

    Best,

    Ashish