Skip to content

Commit 7f74eb1

Browse files
committed
Auto-generated commit
1 parent 6d1bf47 commit 7f74eb1

23 files changed

Lines changed: 56 additions & 44 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ A total of 4 issues were closed in this release:
134134

135135
<details>
136136

137+
- [`32c09fd`](https://github.com/stdlib-js/stdlib/commit/32c09fd471df83a82ff9dcb5ccf08684555c0d5e) - **refactor:** resolve consensus memory layout _(by Athan Reines)_
138+
- [`100ca4c`](https://github.com/stdlib-js/stdlib/commit/100ca4c8d76ab8b40dfbb30bbbe77e86a2221a81) - **refactor:** resolve consensus order _(by Athan Reines)_
137139
- [`e152ec2`](https://github.com/stdlib-js/stdlib/commit/e152ec2a7c7aa789bf3eaf483398768457930b62) - **feat:** add `ndarray/base/kernels/generic/ternary-strided1d/unblocked` [(#15630)](https://github.com/stdlib-js/stdlib/pull/15630) _(by Kaustubh Patange)_
138140
- [`0fc57ae`](https://github.com/stdlib-js/stdlib/commit/0fc57ae60dd9acfefb3dc8cc9d489a02190a4936) - **docs:** fix description [(#15322)](https://github.com/stdlib-js/stdlib/pull/15322) _(by Philipp Burckhardt)_
139141
- [`25aa58a`](https://github.com/stdlib-js/stdlib/commit/25aa58ae7756fbb2460bb9f423fa9467b3f9acf2) - **feat:** add `ndarray/base/kernels/generic/ternary-strided1d/blocked` [(#15558)](https://github.com/stdlib-js/stdlib/pull/15558) _(by Kaustubh Patange)_

‎base/kernels/generic/binary-strided1d/blocked/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ The returned function accepts the following arguments:
181181
- **strategyZ**: strategy for marshaling data to and from an output ndarray view.
182182
- **options**: function options which are passed through to `fcn`.
183183

184-
The returned function iterates over ndarray elements according to the memory layout of the first input ndarray.
185-
186184
<!-- lint disable maximum-heading-length -->
187185

188186
#### kernel.kernel2d( fcn, arrays, views, shape, stridesX, stridesY, stridesZ, strategyX, strategyY, strategyZ, options )

‎base/kernels/generic/binary-strided1d/unblocked/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ The returned function accepts the following arguments:
181181
- **strategyZ**: strategy for marshaling data to and from an output ndarray view.
182182
- **options**: function options which are passed through to `fcn`.
183183

184-
The returned function iterates over ndarray elements according to the memory layout of the first input ndarray.
185-
186184
<!-- lint disable maximum-heading-length -->
187185

188186
#### kernel.kernel0d( fcn, arrays, views, shape, stridesX, stridesY, stridesZ, strategyX, strategyY, strategyZ, options )

‎base/kernels/generic/binary-strided1d/unblocked/lib/10d.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../../../../base/assert/is-row-major' );
25+
var isRowMajor = require( './../../../../../../base/assert/is-row-major-string' );
26+
var consensusOrder = require( './../../../../../../base/consensus-order' );
2627
var copyIndexed = require( '@stdlib/array/base/copy-indexed' );
2728
var incrementOffsets = require( './../../../../../../base/kernels/utils/increment-offsets' );
2829
var setViewOffsets = require( './../../../../../../base/set-descriptor-offsets' );
@@ -197,7 +198,7 @@ function kernel( fcn, arrays, views, shape, stridesX, stridesY, stridesZ, strate
197198
// Note on variable naming convention: S#, dv#, i# where # corresponds to the loop number, with `0` being the innermost loop...
198199

199200
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
200-
if ( isRowMajor( stridesX ) ) {
201+
if ( isRowMajor( consensusOrder( stridesX, stridesY, stridesZ ) ) ) {
201202
// For row-major ndarrays, the last dimensions have the fastest changing indices...
202203
S0 = shape[ 9 ];
203204
S1 = shape[ 8 ];

‎base/kernels/generic/binary-strided1d/unblocked/lib/2d.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( './../../../../../../base/assert/is-row-major' );
23+
var isRowMajor = require( './../../../../../../base/assert/is-row-major-string' );
24+
var consensusOrder = require( './../../../../../../base/consensus-order' );
2425
var copyIndexed = require( '@stdlib/array/base/copy-indexed' );
2526
var incrementOffsets = require( './../../../../../../base/kernels/utils/increment-offsets' );
2627
var setViewOffsets = require( './../../../../../../base/set-descriptor-offsets' );
@@ -171,7 +172,7 @@ function kernel( fcn, arrays, views, shape, stridesX, stridesY, stridesZ, strate
171172
// Note on variable naming convention: S#, dv#, i# where # corresponds to the loop number, with `0` being the innermost loop...
172173

173174
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
174-
if ( isRowMajor( stridesX ) ) {
175+
if ( isRowMajor( consensusOrder( stridesX, stridesY, stridesZ ) ) ) {
175176
// For row-major ndarrays, the last dimensions have the fastest changing indices...
176177
S0 = shape[ 1 ];
177178
S1 = shape[ 0 ];

‎base/kernels/generic/binary-strided1d/unblocked/lib/3d.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( './../../../../../../base/assert/is-row-major' );
23+
var isRowMajor = require( './../../../../../../base/assert/is-row-major-string' );
24+
var consensusOrder = require( './../../../../../../base/consensus-order' );
2425
var copyIndexed = require( '@stdlib/array/base/copy-indexed' );
2526
var incrementOffsets = require( './../../../../../../base/kernels/utils/increment-offsets' );
2627
var setViewOffsets = require( './../../../../../../base/set-descriptor-offsets' );
@@ -174,7 +175,7 @@ function kernel( fcn, arrays, views, shape, stridesX, stridesY, stridesZ, strate
174175
// Note on variable naming convention: S#, dv#, i# where # corresponds to the loop number, with `0` being the innermost loop...
175176

176177
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
177-
if ( isRowMajor( stridesX ) ) {
178+
if ( isRowMajor( consensusOrder( stridesX, stridesY, stridesZ ) ) ) {
178179
// For row-major ndarrays, the last dimensions have the fastest changing indices...
179180
S0 = shape[ 2 ];
180181
S1 = shape[ 1 ];

‎base/kernels/generic/binary-strided1d/unblocked/lib/4d.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( './../../../../../../base/assert/is-row-major' );
23+
var isRowMajor = require( './../../../../../../base/assert/is-row-major-string' );
24+
var consensusOrder = require( './../../../../../../base/consensus-order' );
2425
var copyIndexed = require( '@stdlib/array/base/copy-indexed' );
2526
var incrementOffsets = require( './../../../../../../base/kernels/utils/increment-offsets' );
2627
var setViewOffsets = require( './../../../../../../base/set-descriptor-offsets' );
@@ -177,7 +178,7 @@ function kernel( fcn, arrays, views, shape, stridesX, stridesY, stridesZ, strate
177178
// Note on variable naming convention: S#, dv#, i# where # corresponds to the loop number, with `0` being the innermost loop...
178179

179180
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
180-
if ( isRowMajor( stridesX ) ) {
181+
if ( isRowMajor( consensusOrder( stridesX, stridesY, stridesZ ) ) ) {
181182
// For row-major ndarrays, the last dimensions have the fastest changing indices...
182183
S0 = shape[ 3 ];
183184
S1 = shape[ 2 ];

‎base/kernels/generic/binary-strided1d/unblocked/lib/5d.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
// MODULES //
2222

23-
var isRowMajor = require( './../../../../../../base/assert/is-row-major' );
23+
var isRowMajor = require( './../../../../../../base/assert/is-row-major-string' );
24+
var consensusOrder = require( './../../../../../../base/consensus-order' );
2425
var copyIndexed = require( '@stdlib/array/base/copy-indexed' );
2526
var incrementOffsets = require( './../../../../../../base/kernels/utils/increment-offsets' );
2627
var setViewOffsets = require( './../../../../../../base/set-descriptor-offsets' );
@@ -180,7 +181,7 @@ function kernel( fcn, arrays, views, shape, stridesX, stridesY, stridesZ, strate
180181
// Note on variable naming convention: S#, dv#, i# where # corresponds to the loop number, with `0` being the innermost loop...
181182

182183
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
183-
if ( isRowMajor( stridesX ) ) {
184+
if ( isRowMajor( consensusOrder( stridesX, stridesY, stridesZ ) ) ) {
184185
// For row-major ndarrays, the last dimensions have the fastest changing indices...
185186
S0 = shape[ 4 ];
186187
S1 = shape[ 3 ];

‎base/kernels/generic/binary-strided1d/unblocked/lib/6d.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../../../../base/assert/is-row-major' );
25+
var isRowMajor = require( './../../../../../../base/assert/is-row-major-string' );
26+
var consensusOrder = require( './../../../../../../base/consensus-order' );
2627
var copyIndexed = require( '@stdlib/array/base/copy-indexed' );
2728
var incrementOffsets = require( './../../../../../../base/kernels/utils/increment-offsets' );
2829
var setViewOffsets = require( './../../../../../../base/set-descriptor-offsets' );
@@ -185,7 +186,7 @@ function kernel( fcn, arrays, views, shape, stridesX, stridesY, stridesZ, strate
185186
// Note on variable naming convention: S#, dv#, i# where # corresponds to the loop number, with `0` being the innermost loop...
186187

187188
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
188-
if ( isRowMajor( stridesX ) ) {
189+
if ( isRowMajor( consensusOrder( stridesX, stridesY, stridesZ ) ) ) {
189190
// For row-major ndarrays, the last dimensions have the fastest changing indices...
190191
S0 = shape[ 5 ];
191192
S1 = shape[ 4 ];

‎base/kernels/generic/binary-strided1d/unblocked/lib/7d.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
// MODULES //
2424

25-
var isRowMajor = require( './../../../../../../base/assert/is-row-major' );
25+
var isRowMajor = require( './../../../../../../base/assert/is-row-major-string' );
26+
var consensusOrder = require( './../../../../../../base/consensus-order' );
2627
var copyIndexed = require( '@stdlib/array/base/copy-indexed' );
2728
var incrementOffsets = require( './../../../../../../base/kernels/utils/increment-offsets' );
2829
var setViewOffsets = require( './../../../../../../base/set-descriptor-offsets' );
@@ -188,7 +189,7 @@ function kernel( fcn, arrays, views, shape, stridesX, stridesY, stridesZ, strate
188189
// Note on variable naming convention: S#, dv#, i# where # corresponds to the loop number, with `0` being the innermost loop...
189190

190191
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
191-
if ( isRowMajor( stridesX ) ) {
192+
if ( isRowMajor( consensusOrder( stridesX, stridesY, stridesZ ) ) ) {
192193
// For row-major ndarrays, the last dimensions have the fastest changing indices...
193194
S0 = shape[ 6 ];
194195
S1 = shape[ 5 ];

0 commit comments

Comments
 (0)