Skip to content

Commit

Permalink
variations
Browse files Browse the repository at this point in the history
  • Loading branch information
vmchale committed Feb 10, 2025
1 parent 54b9a59 commit b153171
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions VARIATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ Vec 3 [10.0, 15.0, 20.0]
> [(+)/x%ℝ(:x)]\`7 (frange 0 9 10)
Vec 4 [3.0, 4.0, 5.0, 6.0]
> [(+)/x%ℝ(:x)]⨳{7} (frange 0 9 10)
Vec 4 [3.0, 4.0, 5.0, 6.0]
> (Ξ»xs. (+)/xs%ℝ(:xs))'([x]\`7 (frange 0 9 10))
Vec 4 [3.0, 4.0, 5.0, 6.0]
```

Expand Down
4 changes: 3 additions & 1 deletion i/ex/doc.🍎
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}. ([x]\`7 ⍳9)
~`{1∘[2]}⟨⟨0,1⟩,⟨1,0::int⟩,⟨2,4⟩⟩
~'⟨⟨0,1⟩,⟨1,0::int⟩,⟨2,4⟩⟩
[(+)/x%ℝ(:x)]'([x]β‘„7 frange 0 9 10)
(Ξ»xs. (+)/xs%ℝ(:xs))'([x]β‘„7 frange 0 9 10)
[(+)/x%ℝ(:x)]\` 7 frange 0 9 10
[(+)/x%ℝ(:x)]⨳ {7} frange 0 9 10
[}.\`7 x] (⍳9)
Expand All @@ -24,3 +24,5 @@
[(Λ™)`(x::M int) xαΆ₯] (1..4 〃 4)
[x] # {2∘2} (frange 0 9 10)
⟨0,1βŸ©βŠ‚βŸ¨βŸ¨1.0,1,2⟩,⟨3,1,1⟩,⟨1,3,1⟩⟩
(Ξ»a.Ξ»b. [(+)/β‚’ x y]`{0,1∘[2]} a (b::M float)) ⟨1,2,3⟩ ⟨⟨4.0,5⟩,⟨6,7⟩,⟨8,9⟩⟩
(λa.λb. [(+)/x]`{1∘[2]} ((<|)`{0,1∘[2]} a (b::M float))) ⟨1,2,3⟩ ⟨⟨4.0,5⟩,⟨6,7⟩,⟨8,9⟩⟩
2 changes: 2 additions & 0 deletions i/golden/doc.out
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ Arr (5Γ—2) [ [0.0, 1.0]
, [8.0, 9.0] ]
Arr (2Γ—3) [ [1.0, 1.0, 2.0]
, [3.0, 1.0, 0.0] ]
Vec 3 [10.0, 15.0, 20.0]
Vec 3 [10.0, 15.0, 20.0]
Binary file modified tex/papers/simd.pdf
Binary file not shown.

0 comments on commit b153171

Please sign in to comment.