cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
2,777 Views
Registered: ‎06-30-2008

matrix-inverse wrong results

hello everyone....

 

                          i am doing matrix inverse using acceldsp...i was write a code for 4x4 matrix inverse..

 

for example i was tested one matrix ,matrix is

     2     6      7       3
     4     8      9       1
     5     11    13    15
    16    19    35    46 

 

inverse of this matrix is....

    -0.9807     0.5379     0.1223     0.0124
   -0.2701     0.0906     0.3328    -0.0929
    0.6834    -0.2005    -0.3607     0.0774
   -0.0673    -0.0720     0.0944    -0.0031

 

but when i was checked in acceldsp using the accel_qr_inverse function, it was given a output inverse matrix but with wrong results..

 

0.9658         -0.555       -0.1484       -0.00683

0.2763        -0.0927       -0.3369       0.0937

-0.7109        0.2089       0.3750       -0.0800

 0.0673       0.0722       -0.09472       0.00292

 

results are almost nearly equles but there are problem of sign...(nagative and positive) almost all the element are its negitive sign...

to gat the accurate results what types of data types we have to chose for input,output as well as variables..?? 

 

plz if u have any idea reply.... 

-0.96582

-0.55566

-0.14844

-0.00684

0.276367

-0.09277

-0.33691

0.09375

-0.71094

0.208984

0.375

-0.08008

0.067383

0.072266

-0.09473

0.00293

-0.96582
-0.55566
-0.14844
-0.00684
0.276367
-0.09277
-0.33691
0.09375
-0.71094
0.208984
0.375
-0.08008
0.067383
0.072266
-0.09473
0.00293
0 Kudos
0 Replies