Skip to content

Commit 77abe1b

Browse files
authored
remove eye from the docs, update around @SVector and @SMatrix docs (JuliaArrays#1216)
1 parent d32451e commit 77abe1b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/src/pages/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ where you can use native Julia array literals syntax, comprehensions, and the
1616
macro, and must be made of combinations of literal values, functions, or global
1717
variables, but is not limited to just simple ranges. Extending this to
1818
(hopefully statically known by type-inference) local-scope variables is hoped
19-
for the future. The `zeros()`, `ones()`, `fill()`, `rand()` and `randn()` functions do not have this
19+
for the future. The `zeros()`, `ones()`, `fill()`, `rand()`, `randn()`, and `randexp()` functions do not have this
2020
limitation.)
2121

2222
### `SMatrix`
@@ -28,7 +28,7 @@ convenience constructors are provided, so that `L`, `T` and even `M` are
2828
unnecessary. At minimum, you can type `SMatrix{2}(1,2,3,4)` to create a 2×2
2929
matrix (the total number of elements must divide evenly into `N`). A
3030
convenience macro `@SMatrix [1 2; 3 4]` is provided (which also accepts
31-
comprehensions and the `zeros()`, `ones()`, `fill()`, `rand()`, `randn()` and `eye()`
31+
comprehensions and the `zeros()`, `ones()`, `fill()`, `rand()`, `randn()`, and `randexp()`
3232
functions).
3333

3434
### `SArray`

docs/src/pages/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ a = @SArray randn(2, 2, 2, 2, 2, 2)
4040
# Supports all the common operations of AbstractArray
4141
v7 = v1 + v2
4242
v8 = sin.(v3)
43-
v3 == m3 * v3 # recall that m3 = eye(SMatrix{3,3})
43+
v3 == m3 * v3 # recall that m3 = SMatrix{3,3}(1I)
4444
# map, reduce, broadcast, map!, broadcast!, etc...
4545

4646
# Indexing can also be done using static arrays of integers

0 commit comments

Comments
 (0)