List of commits:
Subject Hash Author Date (UTC)
Add convenience-fct row_wise_generator.m d6c089c823e10db53d16255040043b520b2f3d02 Jason Hoelscher-Obermaier 2017-04-19 08:40:06
Move show_plot to daughter class dual_homo_measurement 9429e3564bd7d9ee39be7b9984cb1191d3bb565e Jason Hoelscher-Obermaier 2017-04-18 08:01:56
Allow to specify which traces to plot in show_plot (used e.g. by show_NPS) e59a8b7ac08d2f8d0f2b6535d764b8e3bf9e5a55 Jason Hoelscher-Obermaier 2017-04-18 07:59:45
Add options to plot_cuts: wrap legend title, switch number format in legend 6b4df721198584fe4a0f24d64f6666a2c319845c Jason Hoelscher-Obermaier 2017-04-18 07:54:22
Add support for parallel computation to run_simulation_evaluation_direct.m 79e020013e744be9353a48c49998345533218007 Jason Hoelscher-Obermaier 2017-04-13 15:15:07
Speed up calculation of entanglement from simulation streams. 4fe4db313d502c3694cfcf6770b41387afdbbc19 Jason Hoelscher-Obermaier 2017-04-12 13:06:31
Fix inconsistent code style in repo (only *.m-files) 1a87b28a285ad84af1836154f80761430554700c Jason Hoelscher-Obermaier 2017-04-12 10:36:03
Set default code style using .editorconfig in root of repository 83719dc571b5a4fce247907ea50fdb5841b5d5f6 Jason Hoelscher-Obermaier 2017-04-12 09:18:43
Refactor calculatePulsedQuadratures to prepare for increased efficiency... 7247ee11d4e93ab24f5c38d49e135ac283855f1b Jason Hoelscher-Obermaier 2017-04-12 08:44:18
Decrease verbosity: suppress output from pdfcrop in meta_ev.m f51caf728c9e727ea7036d1066ed5638d5f5adef Jason Hoelscher-Obermaier 2017-04-12 08:41:23
Try to suppress display of figures in meta_ev_test.m (unsuccessful) c87cedfa3c1e53a8f25ad8c4119704c8bdfe9b2f Jason Hoelscher-Obermaier 2017-04-11 09:22:12
Add class dual_homo_simulation which emulates a dual_homo_measurement but with simulated traces 41792061b163af8e7d57738c19382409e0321190 Jason Hoelscher-Obermaier 2017-04-10 11:07:24
Turn off warning regarding default_sample_no in PXItrace 0c6322c334c051e08198ba79ca85170ebd5e8e12 Jason Hoelscher-Obermaier 2017-04-10 11:04:03
Fix num2eng.m: correct display of 0 (w. tolerance of +-eps) and +-inf. 6345574b61460fec8dd19832056d6273a07f23e9 Jason Hoelscher-Obermaier 2017-04-10 10:44:17
Extend functionality of method 'plot_cuts' of class 'meta_ev' af350f1084ba30f3f56f70367b8dd7ea3071f1a9 Jason Hoelscher-Obermaier 2017-04-08 16:30:56
Bug fix in num2eng.m: Input 0 (or +/- eps) will now yield '0' as expected 7ab33199240f75e7013223cddf02e69cd83e3272 Jason Hoelscher-Obermaier 2017-04-08 16:27:52
Refactor meta_ev: move plotting methods to separate files. 6e5df82a5739d8f1ef7a209822f7a448ced1721c Jason Hoelscher-Obermaier 2017-04-08 09:27:21
Additional options for method plot_cuts in meta_ev.m eabae3d9b5b934c5b9d56396374cfdd6c9f5ed3f Jason Hoelscher-Obermaier 2017-04-08 08:53:29
Add class homotrace_simulated as wrapper around homotrace if simulation-data-streams are to be used... b09e4d8431e7784d3021ae949edd557291c8d482 Jason Hoelscher-Obermaier 2017-04-06 14:56:34
Replace unnecessary switch-expression in assert_consistency_of_varargin by isequal-test 0c946942de73edb17b0d1f7b62748b9c8f0a98d0 Jason Hoelscher-Obermaier 2017-04-06 14:27:26
Commit d6c089c823e10db53d16255040043b520b2f3d02 - Add convenience-fct row_wise_generator.m
- takes a list and returns a generator iterating over this list
- similar to python generators
- iterates element-wise through row- or column-vectors
- iterates row by row through matrices
- NOTE: after last element/row of list was returned it starts again
from 1st element/row
Author: Jason Hoelscher-Obermaier
Author date (UTC): 2017-04-19 08:40
Committer name: Jason Hoelscher-Obermaier
Committer date (UTC): 2017-04-19 08:40
Parent(s): 9429e3564bd7d9ee39be7b9984cb1191d3bb565e
Signing key:
Tree: 4a7ac087eb996d92d532b1f93fe311f4d60b241a
File Lines added Lines deleted
misc/convenience/row_wise_generator.m 30 0
File misc/convenience/row_wise_generator.m added (mode: 100644) (index 0000000..0b54461)
1 function yield = row_wise_generator(list)
2 % provide generator expressions similar to python
3 % takes a list and returns a handle to a function
4 % which iteratively returns elements of the list
5 % if all elements are consumed it starts from the beginning
6 assert(isvector(list) || ismatrix(list),...
7 'Expect vector or matrix as input.')
8 counter = 1;
9
10 % if vector: convert to column vector
11 if isvector(list)
12 list = list(:);
13 end
14
15 max_counter = size(list,1);
16 function next_row = yield_fct()
17 if isvector(list)
18 next_row = list(counter);
19 elseif ismatrix(list)
20 next_row = list(counter,:);
21 end
22 if counter == max_counter
23 counter = 1;
24 else
25 counter = counter + 1;
26 end
27 end
28
29 yield = @yield_fct;
30 end
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/gutc61/Membrane

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/gutc61/Membrane

Clone this repository using git:
git clone git://git.rocketgit.com/user/gutc61/Membrane

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main