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"]}] 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)