Fix compilation issue in mat = permutation (regression introduced in 0e78c04fea69) (grafted from eb30762a5baef5f9e67c43aab64129726e079c35)
Fix compilation issue in mat = permutation (regression introduced in 0e78c04fea69)
(grafted from eb30762a5baef5f9e67c43aab64129726e079c35)

ROCmSoftwarePlatform/hipeigen,ROCmSoftwarePlatform/hipeigen,ROCmSoftwarePlatform/hipeigen,ROCmSoftwarePlatform/hipeigen