From 43af1b9d03f6b33a6bfd7fddcca0178a4a545bed Mon Sep 17 00:00:00 2001 From: daslu Date: Wed, 2 Oct 2024 23:44:53 +0300 Subject: [PATCH 1/2] linear algebra tutorial --- notebooks/noj_book/linear_algebra_intro.clj | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 notebooks/noj_book/linear_algebra_intro.clj diff --git a/notebooks/noj_book/linear_algebra_intro.clj b/notebooks/noj_book/linear_algebra_intro.clj new file mode 100644 index 0000000..3f4a1a5 --- /dev/null +++ b/notebooks/noj_book/linear_algebra_intro.clj @@ -0,0 +1,21 @@ +;; # Intro to Linear Algebra - DRAFT 🛠 + +;; In this tutorial, we introduce basic linear algebra concepts +;; and the way they can be computed using [Fastmath](https://github.com/generateme/fastmath). + +;; For additional backgrounds, see +;; [Introduction to Applied Linear Algebra – Vectors, Matrices, and Least Squares](https://web.stanford.edu/~boyd/vmls/) +;; by Stephen Boyd & Lieven Vandenberghe, Cambridge University Press, UK, 2018. + +(ns noj-book.linear-algebra-intro + (:require [fastmath.vector :as vec])) + +;; ## Addition + +(vec/add [1 9] + [0 -3]) + +;; ## Scalar multiplication + +(vec/mult [1 9] + 1000) From 8996da7441f2734a0974e374e8c0cc00db8db177 Mon Sep 17 00:00:00 2001 From: daslu Date: Wed, 2 Oct 2024 23:45:21 +0300 Subject: [PATCH 2/2] updated chapters --- notebooks/chapters.edn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/notebooks/chapters.edn b/notebooks/chapters.edn index 0bdb931..eb733d5 100644 --- a/notebooks/chapters.edn +++ b/notebooks/chapters.edn @@ -11,4 +11,6 @@ "interactions_ols"]} {:part "Data Visualization" :chapters ["echarts" - "visualizing_correlation_matrices"]}] + "visualizing_correlation_matrices"]} + {:part "Linear Algebra" + :chapters ["linear_algebra_intro"]}]