Skip to content

Commit 9f6feaa

Browse files
committed
v.2.1.0, contd
* readme * typo fix
1 parent 6be6b40 commit 9f6feaa

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ version: **2.1.0** (13 kB minified)
88

99
`TensorView` is both memory-efficient and speed-efficient since it only creates ways to view array data as multidimensional tensors **without** actually creating new arrays. One can nevertheless explicitly store a TensorView instance as a single-dimensional or multi-dimensional array using `view.toArray()` or `view.toNDArray()` methods.
1010

11+
[TensorView with SciLite](https://foo123.github.io/examples/scilite/)
12+
1113
**Example** (see `/test/demo.js`)
1214

1315
```javascript

src/TensorView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function TensorView(data, o, _)
337337
self.indices = function(index) {
338338
index = index || 0;
339339
if (0 > index) index += total;
340-
if (0 > index || index >= total) throw "TensorView::_indices index ("+index+") is out of bounds (0,"+(total-1)+")!";
340+
if (0 > index || index >= total) throw "TensorView::indices index ("+index+") is out of bounds (0,"+(total-1)+")!";
341341
return compute_indices(index, ndim, is_transposed, shape);
342342
};
343343
self.get = function(/*indices*/) {

0 commit comments

Comments
 (0)