Skip to content

Commit

Permalink
readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherzimmerman committed Oct 14, 2019
1 parent ea4f860 commit 0e8746d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Expand Up @@ -30,10 +30,17 @@ Bottle provides a Vector class that supports integer and float data types.
dv = Vector.new [1.0, 2, 3, 4, 5] # dtype is Float64
iv = Vector.new [1, 2, 3, 4, 5] # dtype is Int32
iv[1...] # slice of vector
iv[[1, 2, 3]] # copy of vector, multi-indexing
iv[1...] # slice of vector
iv[[1, 2, 3]] # copy of vector, multi-indexing
iv[[1, 2, 3]] = [6, 7, 8] # in place multiple assignment
iv + iv # elementwise addition of vectors
iv + iv # elementwise operations on vectors
iv * iv
iv / iv
iv / 5 # elementwise operations using constants
iv - 8
iv.dot(iv) # BLAS backed routines
iv.norm
```

## Development
Expand Down

0 comments on commit 0e8746d

Please sign in to comment.