Skip to content

Commit

Permalink
Change offsetGet for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
yuichiis committed Apr 29, 2024
1 parent 2123cad commit dad2917
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _mathematics/matrix/arrayobjects.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ Returns the specified range as an NDArray. Buffer is also shared at this time.

```php
# $a is 2-D array of float32 on NDArray
$b = $a[[1,3]];
$b = $a[[1,4]];
# $b is 2-D array of float32 NDArray referring 1 to 3
```

> In Version 1 it was [1,3], but from Version 2 it is now written as [1,4].
> The reason for this is to align with other systems and in many cases to simplify writing.

#### offsetSet
Set items using offsetSet of ArrayAccess interface.
Expand Down

0 comments on commit dad2917

Please sign in to comment.