Skip to content

Commit f0934e1

Browse files
committed
Auto-generated commit
1 parent a2a1c06 commit f0934e1

File tree

13 files changed

+218
-532
lines changed

13 files changed

+218
-532
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@ indent_style = tab
165165
indent_style = space
166166
indent_size = 2
167167
168+
# Ignore generated lock files for GitHub Agentic Workflows:
169+
[*.lock.yml]
170+
charset = unset
171+
end_of_line = unset
172+
indent_style = unset
173+
indent_size = unset
174+
trim_trailing_whitespace = unset
175+
insert_final_newline = unset
176+
168177
# Set properties for GYP files:
169178
[binding.gyp]
170179
indent_style = space

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@ Makefile linguist-vendored
6464

6565
# Configure files which should be included in GitHub language statistics:
6666
docs/types/*.d.ts -linguist-documentation
67+
68+
.github/workflows/*.lock.yml linguist-generated=true merge=ours

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2026-03-25)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`ff1c6e2`](https://github.com/stdlib-js/stdlib/commit/ff1c6e2ff7d740b54dab525047eb5d7786854276) - **docs:** update docs and examples to accommodate dtype instances _(by Athan Reines)_
16+
- [`15b0d66`](https://github.com/stdlib-js/stdlib/commit/15b0d6624fb1dcbfb63b43291354c1ef6fbbd75b) - **refactor:** remove unnecessary offset calculation _(by Athan Reines)_
17+
18+
</details>
19+
20+
</section>
21+
22+
<!-- /.commits -->
23+
24+
<section class="contributors">
25+
26+
### Contributors
27+
28+
A total of 1 person contributed to this release. Thank you to this contributor:
29+
30+
- Athan Reines
31+
32+
</section>
33+
34+
<!-- /.contributors -->
35+
36+
</section>
37+
38+
<!-- /.release -->
39+
540
<section class="release" id="v0.3.2">
641

742
## 0.3.2 (2026-02-08)

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var getDType = require( '@stdlib/ndarray-dtype' );
8383
var zeros = require( '@stdlib/ndarray-zeros' );
8484

8585
var x = zeros( [ 2, 2 ] );
86-
// returns <ndarray>
86+
// returns <ndarray>[ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ]
8787

8888
var y = emptyLike( x );
8989
// returns <ndarray>
@@ -100,8 +100,8 @@ The function supports the following `options`:
100100
- **dtype**: output [ndarray][@stdlib/ndarray/ctor] [data type][@stdlib/ndarray/dtypes]. Overrides the input ndarray's inferred [data type][@stdlib/ndarray/dtypes].
101101
- **shape**: output [ndarray][@stdlib/ndarray/ctor] shape. Overrides the input ndarray's inferred shape.
102102
- **order**: specifies whether the output [ndarray][@stdlib/ndarray/ctor] should be `'row-major'` (C-style) or `'column-major'` (Fortran-style). Overrides the input ndarray's inferred order.
103-
- **mode**: specifies how to handle indices which exceed array dimensions (see [`ndarray`][@stdlib/ndarray/ctor]). Default: `'throw'`.
104-
- **submode**: a mode array which specifies for each dimension how to handle subscripts which exceed array dimensions (see [`ndarray`][@stdlib/ndarray/ctor]). If provided fewer modes than dimensions, the constructor recycles modes using modulo arithmetic. Default: `[ options.mode ]`.
103+
- **mode**: specifies how to handle indices which exceed array dimensions (see [ndarray][@stdlib/ndarray/ctor]). Default: `'throw'`.
104+
- **submode**: a mode array which specifies for each dimension how to handle subscripts which exceed array dimensions (see [ndarray][@stdlib/ndarray/ctor]). If provided fewer modes than dimensions, the constructor recycles modes using modulo arithmetic. Default: `[ options.mode ]`.
105105

106106
To override either the `dtype`, `shape`, or `order`, specify the corresponding option. For example, to override the inferred [data type][@stdlib/ndarray/dtypes],
107107

@@ -111,7 +111,7 @@ var getDType = require( '@stdlib/ndarray-dtype' );
111111
var zeros = require( '@stdlib/ndarray-zeros' );
112112

113113
var x = zeros( [ 2, 2 ] );
114-
// returns <ndarray>
114+
// returns <ndarray>[ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ]
115115

116116
var dt = String( getDType( x ) );
117117
// returns 'float64'
@@ -154,9 +154,9 @@ dt = String( getDType( y ) );
154154
<!-- eslint no-undef: "error" -->
155155

156156
```javascript
157-
var getData = require( '@stdlib/ndarray-data-buffer' );
158157
var dtypes = require( '@stdlib/ndarray-dtypes' );
159158
var empty = require( '@stdlib/ndarray-empty' );
159+
var ndarray2array = require( '@stdlib/ndarray-to-array' );
160160
var emptyLike = require( '@stdlib/ndarray-empty-like' );
161161

162162
// Get a list of data types:
@@ -171,7 +171,7 @@ for ( i = 0; i < dt.length; i++ ) {
171171
'dtype': dt[ i ]
172172
});
173173
y = emptyLike( x );
174-
console.log( getData( y ) );
174+
console.log( ndarray2array( y ) );
175175
}
176176
```
177177

dist/index.js

Lines changed: 18 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)