Skip to content

Commit

Permalink
Merge pull request #38 from scicloj/linalg1
Browse files Browse the repository at this point in the history
linear algebra intro - draft
  • Loading branch information
daslu authored Oct 2, 2024
2 parents 290782d + 8996da7 commit 66fe887
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
4 changes: 3 additions & 1 deletion notebooks/chapters.edn
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
"interactions_ols"]}
{:part "Data Visualization"
:chapters ["echarts"
"visualizing_correlation_matrices"]}]
"visualizing_correlation_matrices"]}
{:part "Linear Algebra"
:chapters ["linear_algebra_intro"]}]
21 changes: 21 additions & 0 deletions notebooks/noj_book/linear_algebra_intro.clj
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 66fe887

Please sign in to comment.