Skip to content

Commit 1f9a29a

Browse files
committed
Auto-generated commit
1 parent a954ee8 commit 1f9a29a

File tree

9 files changed

+43
-41
lines changed

9 files changed

+43
-41
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-09-15)
7+
## Unreleased (2024-09-18)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`0c2eafb`](https://github.com/stdlib-js/stdlib/commit/0c2eafb772442a6b2ec4be78490c19f0a70d6235) - **docs:** fix copy and remove extraneous newline _(by Athan Reines)_
2526
- [`6f6df5d`](https://github.com/stdlib-js/stdlib/commit/6f6df5d539a8035cb3af7b1ceec0ead1ee943bee) - **feat:** add `strided/base/strided2object` _(by Athan Reines)_
2627

2728
</details>

CONTRIBUTORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# Contributors listed in alphabetical order.
44

5+
Aayush Khanna <[email protected]>
56
Adarsh Palaskar <[email protected]>
67
Aditya Sapra <[email protected]>
78
AgPriyanshu18 <[email protected]>
@@ -39,6 +40,7 @@ Joey Reed <[email protected]>
3940
Jordan Gallivan <[email protected]>
4041
Joris Labie <[email protected]>
4142
Justin Dennison <[email protected]>
43+
Kaif Mohd <[email protected]>
4244
Karthik Prakash <[email protected]>
4345
4446
Krishnendu Das <[email protected]>

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ limitations under the License.
3333

3434
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
3535

36-
> Convert a strided array and associated meta data to an object likely to have the same "shape".
36+
> Convert a strided array and associated metadata to an object likely to have the same "shape".
3737
3838
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
3939

@@ -75,7 +75,7 @@ var strided2object = require( '@stdlib/strided-base-strided2object' );
7575

7676
#### strided2object( N, x, stride, offset )
7777

78-
Converts a strided array and associated meta data to an object likely to have the same "shape".
78+
Converts a strided array and associated metadata to an object likely to have the same "shape".
7979

8080
```javascript
8181
var obj = strided2object( 4, [ 1, 2, 3, 4 ], 1, 0 );
@@ -113,7 +113,7 @@ var obj = strided2object( 4, [ 1, 2, 3, 4 ], 1, 0 );
113113
- **idx**: element index.
114114
- **value**: value to set.
115115

116-
- This function is intended as a potential performance optimization. In V8, for example, even if two objects share common properties, if those properties were added in different orders or if one object has additional properties not shared by the other object, then those objects will have different "hidden" classes. If a function is provided many objects having different "shapes", some JavaScript VMs (e.g., V8) will consider the function "megamorphic" and fail to perform various runtime optimizations. Accordingly, the intent of this function is to standardize the "shape" of the object holding strided array meta data to ensure that internal functions operating on strided arrays are provided consistent argument "shapes".
116+
- This function is intended as a potential performance optimization. In V8, for example, even if two objects share common properties, if those properties were added in different orders or if one object has additional properties not shared by the other object, then those objects will have different "hidden" classes. If a function is provided many objects having different "shapes", some JavaScript VMs (e.g., V8) will consider the function "megamorphic" and fail to perform various runtime optimizations. Accordingly, the intent of this function is to standardize the "shape" of the object holding strided array metadata to ensure that internal functions operating on strided arrays are provided consistent argument "shapes".
117117

118118
</section>
119119

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{{alias}}( N, x, stride, offset )
3-
Converts a strided array and associated meta data to an object likely to
4-
have the same "shape".
3+
Converts a strided array and associated metadata to an object likely to have
4+
the same "shape".
55

66
The returned object has the following properties:
77

0 commit comments

Comments
 (0)