diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2009-12-16 05:07:26 +0000 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2009-12-16 05:07:26 +0000 |
commit | 45ecfe6e1dfc4e69251a69e923b9b78bd73d1a19 (patch) | |
tree | ab88b1bb305ccaeb36705a0025edea41565fe06e /test.m | |
parent | 0dd6c4648c7103bb8cb01b79b3491b9e7a594cd6 (diff) | |
download | multi_mode_eit-45ecfe6e1dfc4e69251a69e923b9b78bd73d1a19.tar.gz multi_mode_eit-45ecfe6e1dfc4e69251a69e923b9b78bd73d1a19.zip |
added test cases
Diffstat (limited to 'test.m')
-rw-r--r-- | test.m | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -158,18 +158,23 @@ L=Liouville_operator_matrix( %solving for density matrix vector rhoLiouville=L\rhoLiouville_dot; +rho_2=rhoOfFreq(rhoLiouville, 2, Nlevels); +rho_1=rhoOfFreq(rhoLiouville, 1, Nlevels); L_new=L; rhoLiouville_new=rhoLiouville; +rho_2_new=rho_2; +rho_1_new=rho_1; % uncomment to update reference file -%save 'L_and_rhoL_referenced.mat' L rhoLiouville +% save 'L_and_rhoL_referenced.mat' L rhoLiouville rho_1 rho_2 -clear L rhoLiouville; +clear L rhoLiouville rho_2 rho_1; load 'L_and_rhoL_referenced.mat' diff_with_reference_L=sum(sum(abs(L_new-L))) - diff_with_reference_rhoL=(sum(abs(rhoLiouville_new -rhoLiouville))) +diff_with_rho_1=(sum(sum(abs(rho_1_new -rho_1)))) +diff_with_rho_2=(sum(sum(abs(rho_2_new -rho_2)))) elapsed_time = etime (clock (), t0) |