File: svd_test.ref

package info (click to toggle)
libitpp 4.3.1-14
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,952 kB
  • sloc: cpp: 73,628; makefile: 661; python: 548; sh: 261
file content (18 lines) | stat: -rw-r--r-- 926 bytes parent folder | download | duplicates (7)
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.283885 0.56497 -1.0746 -0.732016 -0.869443]
 [1.36446 -0.596145 2.36476 -2.10553 -0.0504762]
 [0.906001 -1.19732 2.36508 -0.923457 0.799682]
 [1.24942 -1.26756 1.22804 -1.89227 1.02849]
 [1.55783 -0.300385 0.234136 -0.664315 -0.900489]]
norm(A - U*diag(S)*V^T) = 0

Complex matrix
A = [[-0.160972-1.29916i 0.794379+1.03288i -0.127081+0.388325i 1.13396-0.225782i 0.562993-0.0690923i]
 [0.0361926+1.01917i -0.190616-0.710921i -0.572027-1.62447i 1.07734-0.884797i -0.822132+0.953281i]
 [-1.04693+0.760191i 1.32367+0.349763i -0.320883+0.1836i 0.465648-0.60769i -0.128067+0.278311i]
 [-0.280465+0.361084i 0.510483+0.174148i -1.02371+0.214321i 0.0533137-0.121635i 0.598587-0.190616i]
 [0.780099+0.643584i 0.475202-0.708159i -0.98353+0.261137i -0.848777-1.28903i -0.13041+0.0775548i]]
norm(A - U*diag(S)*V^H) = 0