aboutsummaryrefslogtreecommitdiffstats
path: root/tempalte
diff options
context:
space:
mode:
Diffstat (limited to 'tempalte')
-rw-r--r--tempalte/Makefile18
-rw-r--r--tempalte/README.md5
-rw-r--r--tempalte/compile_flags.txt4
l---------tempalte/include1
-rw-r--r--tempalte/main.cpp14
-rw-r--r--tempalte/plots.gp14
6 files changed, 56 insertions, 0 deletions
diff --git a/tempalte/Makefile b/tempalte/Makefile
new file mode 100644
index 0000000..eb309ff
--- /dev/null
+++ b/tempalte/Makefile
@@ -0,0 +1,18 @@
+
+CFLAGS = -std=c++2c -mavx -Iinclude -ggdb
+
+.PHONY: all run_main clean gnuplot
+
+run: gnuplot
+
+gnuplot: plots.gp run_main
+ gnuplot $<
+
+run_main: main
+ ./main
+
+main: main.cpp include/*
+ $(CXX) -o $@ $< $(CFLAGS)
+
+clean:
+ rm -fr main *.png *.plot
diff --git a/tempalte/README.md b/tempalte/README.md
new file mode 100644
index 0000000..96fd716
--- /dev/null
+++ b/tempalte/README.md
@@ -0,0 +1,5 @@
+<!-- Шаблон для прака -->
+<!-- файлы, заканчивающиеся на .plot считаются генерируемыми и удаляются через make clean -->
+# Обработка <> прака
+
+
diff --git a/tempalte/compile_flags.txt b/tempalte/compile_flags.txt
new file mode 100644
index 0000000..34ae930
--- /dev/null
+++ b/tempalte/compile_flags.txt
@@ -0,0 +1,4 @@
+-Iinclude
+-std=c++2c
+-mavx2
+
diff --git a/tempalte/include b/tempalte/include
new file mode 120000
index 0000000..2225752
--- /dev/null
+++ b/tempalte/include
@@ -0,0 +1 @@
+../libprakpp/include/ \ No newline at end of file
diff --git a/tempalte/main.cpp b/tempalte/main.cpp
new file mode 100644
index 0000000..b1ce4e1
--- /dev/null
+++ b/tempalte/main.cpp
@@ -0,0 +1,14 @@
+#include <iostream>
+
+#include "include/praktable.hpp"
+
+using table = prak::table<double>;
+
+void ex1(void) {
+ table t;
+}
+
+int main() {
+ ex1();
+ return 0;
+}
diff --git a/tempalte/plots.gp b/tempalte/plots.gp
new file mode 100644
index 0000000..702408a
--- /dev/null
+++ b/tempalte/plots.gp
@@ -0,0 +1,14 @@
+set term pngcairo size 1000, 800
+set tmargin at screen 0.95
+
+f1(x) = a1*x+b1
+fit f1(x) '.plot' using 1:2:3 yerr via a1, b1
+
+set output ''
+set label "" at graph 0.5, graph 1.025 center
+set xlabel ""
+set ylabel ""
+
+plot '.plot' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \
+ f1(x) title "" lc rgb "red", \
+