mirror of
https://github.com/TREX-CoE/Sherman-Morrison.git
synced 2024-12-24 13:23:45 +01:00
Small changes to help with performance measurements.
This commit is contained in:
parent
0bd71c1968
commit
b094b74e48
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
||||
## Compilers, compiler flags & external libs
|
||||
ifeq ($(ENV),INTEL)
|
||||
CXX = icpx
|
||||
CXX = icpc
|
||||
FC = ifort
|
||||
ARCH = -xCORE-AVX2
|
||||
OPT = -O3
|
||||
|
@ -2,7 +2,7 @@ Sold = dlmread('Slater_old.dat');
|
||||
Sold_inv = dlmread('Slater_old_inv.dat');
|
||||
S = dlmread('Slater.dat');
|
||||
S_inv = dlmread('Slater_inv.dat');
|
||||
dim = columns(S);
|
||||
dim = columns(Sold);
|
||||
cutoff = 1e-3;
|
||||
|
||||
printf("\n")
|
||||
@ -13,6 +13,24 @@ printf("Determinant of S x S_inv - Id : %f\n", det(Sold*Sold_inv-eye(dim)))
|
||||
printf("Trace of S x S_inv - Id : %f\n", trace(Sold*Sold_inv-eye(dim)))
|
||||
printf("Norm of S x S_inv - Id : %f\n", norm(Sold*Sold_inv-eye(dim)))
|
||||
|
||||
printf("\n")
|
||||
printf("Cutoff set to %e: S x S_inv - Id = \n", cutoff)
|
||||
printf("--------------------------------------------\n")
|
||||
res=Sold*Sold_inv-eye(dim);
|
||||
for i = 1:dim
|
||||
for j = 1:dim
|
||||
if ( abs(res(i,j)) < cutoff )
|
||||
res(i,j) = 0;
|
||||
elseif ( abs(res(i,j) - 1) < cutoff )
|
||||
res(i,j) = 1;
|
||||
endif
|
||||
endfor
|
||||
endfor
|
||||
format free;
|
||||
disp(res);
|
||||
printf("===========================================\n")
|
||||
|
||||
|
||||
printf("\n")
|
||||
printf("NEW Slater-matrix and inverse\n")
|
||||
printf("--------------------------------------------\n")
|
||||
|
2
qmckl
2
qmckl
@ -1 +1 @@
|
||||
Subproject commit de03986bda2be207377875ed5a0852cb721b86b9
|
||||
Subproject commit df6a1bdb0e47b77b541dfc3647585b7e18be06ad
|
Loading…
Reference in New Issue
Block a user