1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
================================
Test of svd routines
================================
Real matrix
A = [[0.764873 0.355365 -0.946328 -0.0494359 1.02093]
[-1.13073 -0.556704 0.403829 -0.235643 1.25461]
[0.452336 1.00977 -0.129499 -0.268905 1.00032]
[-0.451817 0.251912 0.28002 -1.53793 -1.12474]
[1.36468 -0.902459 -0.439783 1.67876 0.369076]]
norm(A - U*diag(S)*V^T) = 0
Complex matrix
A = [[0.432532-0.0565171i 0.0729376-0.609413i -0.117384+0.314781i -0.108213+0.131127i 0.0559068+0.214591i]
[-0.0718804+0.727733i -0.297478+0.210593i 0.255673-0.524515i 0.774733-0.396762i -0.161286+0.557317i]
[-0.975402-0.377971i -0.20257+0.104277i 0.343174+0.178492i 0.109828+0.743216i -0.667273-0.802313i]
[1.07181-0.0820541i -0.829977+0.0806219i 0.704202-0.0609598i -0.443451-1.16267i 0.783623-0.87016i]
[0.841014-0.0749022i 0.369791-0.393648i -0.284082+0.668861i 0.999606-0.725603i 1.1201+0.0713311i]]
norm(A - U*diag(S)*V^H) = 0
|