Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Feb 10, 2024
1 parent 6478f0e commit b5d3c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions to-fancy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ v = y[ ':' ];
// returns [ 6, 6, 6, 6 ]
```

Fancy array broadcasting follows the [same rules][@stdlib/ndarray/base/broadcast-shapes] as for [ndarrays][@stdlib/ndarray/ctor]. Consequently, when assigning arrays to slices, the array on the right-hand-side must be broadcast-compatible with number of elements in the slice. For example,
Fancy array broadcasting follows the [same rules][@stdlib/ndarray/base/broadcast-shapes] as for [ndarrays][@stdlib/ndarray/ctor]. Consequently, when assigning arrays to slices, the array on the right-hand-side must be broadcast-compatible with number of elements in the slice. For example, each assignment expression in the following example follows broadcast rules and is thus valid.

```javascript
var y = array2fancy( [ 1, 2, 3, 4 ] );
Expand Down Expand Up @@ -208,7 +208,7 @@ v = y[ ':' ];
// returns [ 5, 12, 7, 12 ]
```

are all valid. However,
However, the following assignment expressions are not valid.

<!-- run throws: true -->

Expand Down

0 comments on commit b5d3c85

Please sign in to comment.