Skip to content

Commit e9946b7

Browse files
committed
Fix readme, sorta
1 parent ae90c86 commit e9946b7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@
55
## Example
66

77
```javascript
8+
var linspace = require('ndarray-linspace')
89

910
linspace(2, 3, 5)
10-
// => [ 2, 2.25, 2.5, 2.75, 3 ]
11+
// => ndarray([2, 2.25, 2.5, 2.75, 3])
1112

1213
linspace(2, 3, 4, {endpoint: false})
13-
// => [ 2, 2.25, 2.5, 2.75 ]
14+
// => ndarray([2, 2.25, 2.5, 2.75])
1415

1516
linspace(2, 4, 10, {dtype: 'int8'})
16-
// => [ 2, 2, 2, 2, 2, 3, 3, 3, 3, 4 ]
17+
// => ndarray([2, 2, 2, 2, 2, 3, 3, 3, 3, 4])
1718

1819
var y = pool.zeros([5])
1920
linspace(y, 1, 3, 5)
20-
// y => [ 1, 1.5, 2, 2.5, 3 ]
21+
// y => ndarray([1, 1.5, 2, 2.5, 3])
2122

2223
var y = pool.zeros([2, 2])
2324
linspace(y, 0, 1, 2)

0 commit comments

Comments
 (0)