lapacke_*tp_trans: condition should be inverted
authoreugene.chereshnev <eugenechereshnev@gmail.com>
Wed, 1 Feb 2017 20:07:06 +0000 (12:07 -0800)
committereugene.chereshnev <eugenechereshnev@gmail.com>
Sat, 4 Feb 2017 02:47:03 +0000 (18:47 -0800)
commit91dafb23ef8f0fe7379784b0d470169b0af06ef5
treeadf1ec6e1f1e7ec11e753d998e25f98c2c97f1eb
parent301204bb169d9a207ff7818077a1ee1b4853bb50
lapacke_*tp_trans: condition should be inverted

The function converts <in> from <matrix_layout> to opposite layout.
E.g. for upper case (all indices are 0-based):
col-major, upper: a(i,j) is stored in ap[(1 + j)*j/2 + i]
row-major, upper: a(i,j) is stored in ap[(n + n-i+1)*i/2 + j-i]
LAPACKE/utils/lapacke_ctp_trans.c
LAPACKE/utils/lapacke_dtp_trans.c
LAPACKE/utils/lapacke_stp_trans.c
LAPACKE/utils/lapacke_ztp_trans.c