@stdlib/array-base-fliplr4d 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +23 -5
- package/dist/index.js.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -2
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2026 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -120,6 +120,14 @@ console.log( y );
|
|
|
120
120
|
|
|
121
121
|
<section class="related">
|
|
122
122
|
|
|
123
|
+
* * *
|
|
124
|
+
|
|
125
|
+
## See Also
|
|
126
|
+
|
|
127
|
+
- <span class="package-name">[`@stdlib/array-base/fliplr2d`][@stdlib/array/base/fliplr2d]</span><span class="delimiter">: </span><span class="description">reverse the order of elements along the last dimension of a two-dimensional nested input array.</span>
|
|
128
|
+
- <span class="package-name">[`@stdlib/array-base/fliplr3d`][@stdlib/array/base/fliplr3d]</span><span class="delimiter">: </span><span class="description">reverse the order of elements along the last dimension of a three-dimensional nested input array.</span>
|
|
129
|
+
- <span class="package-name">[`@stdlib/array-base/fliplr5d`][@stdlib/array/base/fliplr5d]</span><span class="delimiter">: </span><span class="description">reverse the order of elements along the last dimension of a five-dimensional nested input array.</span>
|
|
130
|
+
|
|
123
131
|
</section>
|
|
124
132
|
|
|
125
133
|
<!-- /.related -->
|
|
@@ -150,7 +158,7 @@ See [LICENSE][stdlib-license].
|
|
|
150
158
|
|
|
151
159
|
## Copyright
|
|
152
160
|
|
|
153
|
-
Copyright © 2016-
|
|
161
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
154
162
|
|
|
155
163
|
</section>
|
|
156
164
|
|
|
@@ -163,8 +171,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
163
171
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/array-base-fliplr4d.svg
|
|
164
172
|
[npm-url]: https://npmjs.org/package/@stdlib/array-base-fliplr4d
|
|
165
173
|
|
|
166
|
-
[test-image]: https://github.com/stdlib-js/array-base-fliplr4d/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
167
|
-
[test-url]: https://github.com/stdlib-js/array-base-fliplr4d/actions/workflows/test.yml?query=branch:v0.2.
|
|
174
|
+
[test-image]: https://github.com/stdlib-js/array-base-fliplr4d/actions/workflows/test.yml/badge.svg?branch=v0.2.3
|
|
175
|
+
[test-url]: https://github.com/stdlib-js/array-base-fliplr4d/actions/workflows/test.yml?query=branch:v0.2.3
|
|
168
176
|
|
|
169
177
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-base-fliplr4d/main.svg
|
|
170
178
|
[coverage-url]: https://codecov.io/github/stdlib-js/array-base-fliplr4d?branch=main
|
|
@@ -176,8 +184,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
176
184
|
|
|
177
185
|
-->
|
|
178
186
|
|
|
179
|
-
[chat-image]: https://img.shields.io/
|
|
180
|
-
[chat-url]: https://
|
|
187
|
+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
|
|
188
|
+
[chat-url]: https://stdlib.zulipchat.com
|
|
181
189
|
|
|
182
190
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
183
191
|
|
|
@@ -196,6 +204,16 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
196
204
|
|
|
197
205
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/array-base-fliplr4d/main/LICENSE
|
|
198
206
|
|
|
207
|
+
<!-- <related-links> -->
|
|
208
|
+
|
|
209
|
+
[@stdlib/array/base/fliplr2d]: https://www.npmjs.com/package/@stdlib/array-base-fliplr2d
|
|
210
|
+
|
|
211
|
+
[@stdlib/array/base/fliplr3d]: https://www.npmjs.com/package/@stdlib/array-base-fliplr3d
|
|
212
|
+
|
|
213
|
+
[@stdlib/array/base/fliplr5d]: https://www.npmjs.com/package/@stdlib/array-base-fliplr5d
|
|
214
|
+
|
|
215
|
+
<!-- </related-links> -->
|
|
216
|
+
|
|
199
217
|
</section>
|
|
200
218
|
|
|
201
219
|
<!-- /.links -->
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../lib/main.js", "../lib/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar fliplr3d = require( '@stdlib/array-base-fliplr3d' );\n\n\n// MAIN //\n\n/**\n* Reverses the order of elements along the last dimension of a four-dimensional nested input array.\n*\n* ## Notes\n*\n* - The function does **not** perform a deep copy of nested array elements.\n*\n* @param {ArrayLikeObject<ArrayLikeObject<ArrayLikeObject<Collection>>>} x - nested input array\n* @returns {Array<Array<Array<Collection>>>} output array\n*\n* @example\n* var x = [ [ [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ] ] ];\n*\n* var out = fliplr4d( x );\n* // returns [ [ [ [ 2, 1 ], [ 4, 3 ], [ 6, 5 ] ] ] ]\n*/\nfunction fliplr4d( x ) {\n\tvar out;\n\tvar i;\n\n\tout = [];\n\tfor ( i = 0; i < x.length; i++ ) {\n\t\tout.push( fliplr3d( x[ i ] ) );\n\t}\n\treturn out;\n}\n\n\n// EXPORTS //\n\nmodule.exports = fliplr4d;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Reverse the order of elements along the last dimension of a four-dimensional nested input array.\n*\n* @module @stdlib/array-base-fliplr4d\n*\n* @example\n* var
|
|
4
|
+
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar fliplr3d = require( '@stdlib/array-base-fliplr3d' );\n\n\n// MAIN //\n\n/**\n* Reverses the order of elements along the last dimension of a four-dimensional nested input array.\n*\n* ## Notes\n*\n* - The function does **not** perform a deep copy of nested array elements.\n*\n* @param {ArrayLikeObject<ArrayLikeObject<ArrayLikeObject<Collection>>>} x - nested input array\n* @returns {Array<Array<Array<Collection>>>} output array\n*\n* @example\n* var x = [ [ [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ] ] ];\n*\n* var out = fliplr4d( x );\n* // returns [ [ [ [ 2, 1 ], [ 4, 3 ], [ 6, 5 ] ] ] ]\n*/\nfunction fliplr4d( x ) {\n\tvar out;\n\tvar i;\n\n\tout = [];\n\tfor ( i = 0; i < x.length; i++ ) {\n\t\tout.push( fliplr3d( x[ i ] ) );\n\t}\n\treturn out;\n}\n\n\n// EXPORTS //\n\nmodule.exports = fliplr4d;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Reverse the order of elements along the last dimension of a four-dimensional nested input array.\n*\n* @module @stdlib/array-base-fliplr4d\n*\n* @example\n* var fliplr4d = require( '@stdlib/array-base-fliplr4d' );\n*\n* var x = [ [ [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ] ] ];\n*\n* var out = fliplr4d( x );\n* // returns [ [ [ [ 2, 1 ], [ 4, 3 ], [ 6, 5 ] ] ] ]\n*/\n\n// MODULES //\n\nvar main = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"],
|
|
5
5
|
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAW,QAAS,6BAA8B,EAqBtD,SAASC,EAAUC,EAAI,CACtB,IAAIC,EACAC,EAGJ,IADAD,EAAM,CAAC,EACDC,EAAI,EAAGA,EAAIF,EAAE,OAAQE,IAC1BD,EAAI,KAAMH,EAAUE,EAAGE,CAAE,CAAE,CAAE,EAE9B,OAAOD,CACR,CAKAJ,EAAO,QAAUE,ICrBjB,IAAII,EAAO,IAKX,OAAO,QAAUA",
|
|
6
6
|
"names": ["require_main", "__commonJSMin", "exports", "module", "fliplr3d", "fliplr4d", "x", "out", "i", "main"]
|
|
7
7
|
}
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/array-base-fliplr4d",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Reverse the order of elements along the last dimension of a four-dimensional nested input array.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@stdlib/array-base-fliplr3d": "^0.2.
|
|
33
|
+
"@stdlib/array-base-fliplr3d": "^0.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {},
|
|
36
36
|
"engines": {
|