@stdlib/math-iter-special-trunc2 0.0.5 → 0.0.6
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 +43 -2
- package/package.json +2 -1
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2022 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ limitations under the License.
|
|
|
20
20
|
|
|
21
21
|
# iterTrunc2
|
|
22
22
|
|
|
23
|
-
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
|
|
23
|
+
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
24
24
|
|
|
25
25
|
> Create an [iterator][mdn-iterator-protocol] which [rounds][@stdlib/math/base/special/trunc2] each iterated value to the nearest power of two toward zero.
|
|
26
26
|
|
|
@@ -140,6 +140,24 @@ while ( true ) {
|
|
|
140
140
|
|
|
141
141
|
<!-- /.references -->
|
|
142
142
|
|
|
143
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
144
|
+
|
|
145
|
+
<section class="related">
|
|
146
|
+
|
|
147
|
+
* * *
|
|
148
|
+
|
|
149
|
+
## See Also
|
|
150
|
+
|
|
151
|
+
- <span class="package-name">[`@stdlib/math/base/special/trunc2`][@stdlib/math/base/special/trunc2]</span><span class="delimiter">: </span><span class="description">round a numeric value to the nearest power of two toward zero.</span>
|
|
152
|
+
- <span class="package-name">[`@stdlib/math/iter/special/ceil2`][@stdlib/math/iter/special/ceil2]</span><span class="delimiter">: </span><span class="description">create an iterator which rounds each iterated value to the nearest power of two toward positive infinity.</span>
|
|
153
|
+
- <span class="package-name">[`@stdlib/math/iter/special/floor2`][@stdlib/math/iter/special/floor2]</span><span class="delimiter">: </span><span class="description">create an iterator which rounds each iterated value to the nearest power of two toward negative infinity.</span>
|
|
154
|
+
- <span class="package-name">[`@stdlib/math/iter/special/round2`][@stdlib/math/iter/special/round2]</span><span class="delimiter">: </span><span class="description">create an iterator which rounds each iterated value to the nearest power of two on a linear scale.</span>
|
|
155
|
+
- <span class="package-name">[`@stdlib/math/iter/special/trunc`][@stdlib/math/iter/special/trunc]</span><span class="delimiter">: </span><span class="description">create an iterator which rounds each iterated value toward zero.</span>
|
|
156
|
+
|
|
157
|
+
</section>
|
|
158
|
+
|
|
159
|
+
<!-- /.related -->
|
|
160
|
+
|
|
143
161
|
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
144
162
|
|
|
145
163
|
|
|
@@ -166,7 +184,7 @@ See [LICENSE][stdlib-license].
|
|
|
166
184
|
|
|
167
185
|
## Copyright
|
|
168
186
|
|
|
169
|
-
Copyright © 2016-
|
|
187
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
170
188
|
|
|
171
189
|
</section>
|
|
172
190
|
|
|
@@ -185,9 +203,20 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
185
203
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-iter-special-trunc2/main.svg
|
|
186
204
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-iter-special-trunc2?branch=main
|
|
187
205
|
|
|
206
|
+
<!--
|
|
207
|
+
|
|
188
208
|
[dependencies-image]: https://img.shields.io/david/stdlib-js/math-iter-special-trunc2.svg
|
|
189
209
|
[dependencies-url]: https://david-dm.org/stdlib-js/math-iter-special-trunc2/main
|
|
190
210
|
|
|
211
|
+
-->
|
|
212
|
+
|
|
213
|
+
[umd]: https://github.com/umdjs/umd
|
|
214
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
215
|
+
|
|
216
|
+
[deno-url]: https://github.com/stdlib-js/math-iter-special-trunc2/tree/deno
|
|
217
|
+
[umd-url]: https://github.com/stdlib-js/math-iter-special-trunc2/tree/umd
|
|
218
|
+
[esm-url]: https://github.com/stdlib-js/math-iter-special-trunc2/tree/esm
|
|
219
|
+
|
|
191
220
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
192
221
|
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
193
222
|
|
|
@@ -199,8 +228,20 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
199
228
|
|
|
200
229
|
[mdn-iterator-protocol]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterator_protocol
|
|
201
230
|
|
|
231
|
+
<!-- <related-links> -->
|
|
232
|
+
|
|
202
233
|
[@stdlib/math/base/special/trunc2]: https://www.npmjs.com/package/@stdlib/math-base-special-trunc2
|
|
203
234
|
|
|
235
|
+
[@stdlib/math/iter/special/ceil2]: https://www.npmjs.com/package/@stdlib/math-iter-special-ceil2
|
|
236
|
+
|
|
237
|
+
[@stdlib/math/iter/special/floor2]: https://www.npmjs.com/package/@stdlib/math-iter-special-floor2
|
|
238
|
+
|
|
239
|
+
[@stdlib/math/iter/special/round2]: https://www.npmjs.com/package/@stdlib/math-iter-special-round2
|
|
240
|
+
|
|
241
|
+
[@stdlib/math/iter/special/trunc]: https://www.npmjs.com/package/@stdlib/math-iter-special-trunc
|
|
242
|
+
|
|
243
|
+
<!-- </related-links> -->
|
|
244
|
+
|
|
204
245
|
</section>
|
|
205
246
|
|
|
206
247
|
<!-- /.links -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-iter-special-trunc2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Create an iterator which rounds each iterated value to the nearest power of two toward zero.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@stdlib/types": "^0.0.x"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
+
"@stdlib/array-to-iterator": "^0.0.x",
|
|
45
46
|
"@stdlib/assert-is-iterator-like": "^0.0.x",
|
|
46
47
|
"@stdlib/bench": "^0.0.x",
|
|
47
48
|
"@stdlib/iter-linspace": "^0.0.x",
|