From d126c785fe4f8b102bfd6195fb20bc09a5a25bf1 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Thu, 5 Nov 2015 20:14:59 +0100 Subject: [PATCH] add exercise output files to git --- programming/code/logicalIndexingBenchmark.out | 6 ++++++ programming/code/logicalVector.out | 12 ++++++++++++ programming/code/vectorsize.out | 4 ++++ 3 files changed, 22 insertions(+) create mode 100644 programming/code/logicalIndexingBenchmark.out create mode 100644 programming/code/logicalVector.out create mode 100644 programming/code/vectorsize.out diff --git a/programming/code/logicalIndexingBenchmark.out b/programming/code/logicalIndexingBenchmark.out new file mode 100644 index 0000000..3161e95 --- /dev/null +++ b/programming/code/logicalIndexingBenchmark.out @@ -0,0 +1,6 @@ +>> logicalIndexingBenchmark +time needed to manually filter elements smaller than 0.5 in a vector of length 100000 +Elapsed time is 0.008562 seconds. + +time needed to do the same with logical indexing +Elapsed time is 0.001543 seconds. \ No newline at end of file diff --git a/programming/code/logicalVector.out b/programming/code/logicalVector.out new file mode 100644 index 0000000..950933a --- /dev/null +++ b/programming/code/logicalVector.out @@ -0,0 +1,12 @@ +>> logicalVector +Logischer Vektor y: + +y = + 1 1 1 1 0 0 0 0 0 0 + +Datentyp von y: logical + +Alle Elemente aus x, die kleiner als 5 sind: + +ans = + 1 2 3 4 diff --git a/programming/code/vectorsize.out b/programming/code/vectorsize.out new file mode 100644 index 0000000..c848de2 --- /dev/null +++ b/programming/code/vectorsize.out @@ -0,0 +1,4 @@ +>> vectorsize +length of a: 10 +number of dimensions (rank) of size_of_a: 2 +number of entries in the 2nd dimesion of a: 10 \ No newline at end of file