NAG Library Manual, Mark 30.3
Interfaces:  FL   CL   CPP   AD 

NAG AD Library Introduction
Example description

F07AR_A1W_F C++ Header Example Program Results

   A
             1           2           3           4
 1     -1.3400      0.2800     -6.3900      0.7200
        2.5500      3.1700     -2.2000     -0.9200

 2     -0.1700      3.3100     -0.1500      1.2900
       -1.4100     -0.1500      1.3400      1.3800

 3     -3.2900     -1.9100     -0.1400      1.7200
       -2.3900      4.4200     -1.3500      1.3500

 4      2.4100     -0.5600     -0.8300     -1.9600
        0.3900      1.4700     -0.6900      0.6700


   Inverse
             1           2           3           4
 1      0.0757      1.6512      1.2663      3.8181
       -0.4324     -3.1342      0.0418      1.1195

 2     -0.1942     -1.1900     -0.2401     -0.0101
        0.0798     -0.1426     -0.5889     -1.4969

 3     -0.0957      0.7371      0.3224      0.6887
       -0.0491     -0.4290      0.0776      0.7891

 4      0.3702      3.7253      1.7014      3.9367
       -0.5040     -3.1813      0.7267      3.3255



 Derivatives calculated: First order adjoints
 Computational mode    : algorithmic

 Derivatives of inverse diagonal w.r.t diagonal of A:

    d(real(ai(i,i)))/da(j,j)
             1           2           3           4
 1      0.1812      0.0705      0.1191     -1.9776
       -0.0654      0.7403     -0.0662     -1.5098

 2      0.0705     -1.3957      0.4296      4.7996
        0.7403      0.3395     -0.3310     -5.5442

 3      0.1191      0.4296     -0.0979     -0.5983
       -0.0662     -0.3310      0.0500      1.8431

 4     -1.9776      4.7996     -0.5983     -4.4386
       -1.5098     -5.5442      1.8431     26.1827


    d(real(ai(i,i)))/da(j,j)
             1           2           3           4
 1      0.0654     -0.7403      0.0662      1.5098
        0.1812      0.0705      0.1191     -1.9776

 2     -0.7403     -0.3395      0.3310      5.5442
        0.0705     -1.3957      0.4296      4.7996

 3      0.0662      0.3310     -0.0500     -1.8431
        0.1191      0.4296     -0.0979     -0.5983

 4      1.5098      5.5442     -1.8431    -26.1827
       -1.9776      4.7996     -0.5983     -4.4386