Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added note on stacking.

  • Loading branch information...
commit 86d7742940aaec7f9834c655e3dd406b45f3b032 1 parent fc649d0
tpapp authored

Showing 1 changed file with 13 additions and 0 deletions. Show diff stats Hide diff stats

  1. 13  README.org
13  README.org
Source Rendered
@@ -161,6 +161,19 @@ Library functions treat non-array objects as if they were equivalent to 0-dimens
161 161
   (ao:recycle 4 :inner '(2 2)) ; => #2A((4 4) (4 4))
162 162
 #+END_SRC
163 163
 
  164
+** Stacking
  165
+
  166
+You can also stack compatible arrays along any axis:
  167
+#+BEGIN_SRC lisp
  168
+  (defparameter *a1* #(0 1 2))
  169
+  (defparameter *a2* #(3 5 7))
  170
+  (ao:stack 0 *a1* *a2*) ; => #(0 1 2 3 5 7)
  171
+  (ao:stack 1
  172
+            (ao:reshape-col *a1*)
  173
+            (ao:reshape-col *a2*)) ; => #2A((0 3) (1 5) (2 7))
  174
+  
  175
+#+END_SRC
  176
+
164 177
 ** Shared structure
165 178
 
166 179
 *Rules for that aren't finalized yet, see the source.*  Suggestions are welcome.

0 notes on commit 86d7742

Please sign in to comment.
Something went wrong with that request. Please try again.