replacing vdsp calls for pkmmatrix