Skip to content

Commit

Permalink
Update artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jan 27, 2024
1 parent 8098230 commit 983cc63
Show file tree
Hide file tree
Showing 179 changed files with 1,029 additions and 316 deletions.
1 change: 1 addition & 0 deletions array/base/cartesian-power/coverage.ndjson
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
[139,139,100,12,12,100,1,1,100,139,139,100,"e21bcc8ee95d7211b3f8699e8bc1552c7cfed961","2023-08-24 13:14:54 -0700"]
[144,144,100,12,12,100,1,1,100,144,144,100,"24736d2f857ec3ab94b035a2dca2d602bb9c08c9","2024-01-26 22:45:32 -0800"]
10 changes: 5 additions & 5 deletions array/base/cartesian-power/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1><a href="../../../../index.html">All files</a> array/base/cartesian-power/li
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>139/139</span>
<span class='fraction'>144/144</span>
</div>


Expand All @@ -46,7 +46,7 @@ <h1><a href="../../../../index.html">All files</a> array/base/cartesian-power/li
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>139/139</span>
<span class='fraction'>144/144</span>
</div>


Expand Down Expand Up @@ -99,13 +99,13 @@ <h1><a href="../../../../index.html">All files</a> array/base/cartesian-power/li
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="97" class="abs high">97/97</td>
<td data-value="102" class="abs high">102/102</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="11" class="abs high">11/11</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="97" class="abs high">97/97</td>
<td data-value="102" class="abs high">102/102</td>
</tr>

</tbody>
Expand All @@ -116,7 +116,7 @@ <h1><a href="../../../../index.html">All files</a> array/base/cartesian-power/li
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-08-24T20:17:28.135Z
at 2024-01-27T06:48:08.652Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion array/base/cartesian-power/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-08-24T20:17:28.135Z
at 2024-01-27T06:48:08.652Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
111 changes: 63 additions & 48 deletions array/base/cartesian-power/main.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>97/97</span>
<span class='fraction'>102/102</span>
</div>


Expand All @@ -46,7 +46,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>97/97</span>
<span class='fraction'>102/102</span>
</div>


Expand Down Expand Up @@ -160,7 +160,12 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<a name='L95'></a><a href='#L95'>95</a>
<a name='L96'></a><a href='#L96'>96</a>
<a name='L97'></a><a href='#L97'>97</a>
<a name='L98'></a><a href='#L98'>98</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<a name='L98'></a><a href='#L98'>98</a>
<a name='L99'></a><a href='#L99'>99</a>
<a name='L100'></a><a href='#L100'>100</a>
<a name='L101'></a><a href='#L101'>101</a>
<a name='L102'></a><a href='#L102'>102</a>
<a name='L103'></a><a href='#L103'>103</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -209,49 +214,54 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">18x</span>
<span class="cline-any cline-yes">18x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">56x</span>
<span class="cline-any cline-yes">56x</span>
<span class="cline-any cline-yes">56x</span>
<span class="cline-any cline-yes">142x</span>
<span class="cline-any cline-yes">142x</span>
<span class="cline-any cline-yes">142x</span>
<span class="cline-any cline-yes">142x</span>
<span class="cline-any cline-yes">142x</span>
<span class="cline-any cline-yes">56x</span>
<span class="cline-any cline-yes">56x</span>
<span class="cline-any cline-yes">56x</span>
<span class="cline-any cline-yes">142x</span>
<span class="cline-any cline-yes">142x</span>
<span class="cline-any cline-yes">56x</span>
<span class="cline-any cline-yes">56x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">27x</span>
<span class="cline-any cline-yes">27x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">92x</span>
<span class="cline-any cline-yes">92x</span>
<span class="cline-any cline-yes">92x</span>
<span class="cline-any cline-yes">250x</span>
<span class="cline-any cline-yes">250x</span>
<span class="cline-any cline-yes">250x</span>
<span class="cline-any cline-yes">250x</span>
<span class="cline-any cline-yes">250x</span>
<span class="cline-any cline-yes">92x</span>
<span class="cline-any cline-yes">92x</span>
<span class="cline-any cline-yes">92x</span>
<span class="cline-any cline-yes">250x</span>
<span class="cline-any cline-yes">250x</span>
<span class="cline-any cline-yes">92x</span>
<span class="cline-any cline-yes">92x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -279,6 +289,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
&nbsp;
// MODULES //
&nbsp;
var resolveGetter = require( '@stdlib/array/base/resolve-getter' );
var pow = require( '@stdlib/math/base/special/pow' );
&nbsp;
&nbsp;
Expand All @@ -289,14 +300,14 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
*
* ## Notes
*
* - The Cartesian power is an n-fold Cartesian product involving a single array. The main insight of this implementation is that the n-fold Cartesian product can be presented as an n-dimensional array stored in row-major order. As such, we can
* - The Cartesian power is an n-fold Cartesian product involving a single array. The main insight of this implementation is that the n-fold Cartesian product can be represented as an n-dimensional array stored in row-major order. As such, we can
*
* - Compute the total number of tuples, which is simply the size of the provided array (set) raised to the specified power `n`. For n-dimensional arrays, this is the equivalent of computing the product of array dimensions to determine the total number of elements.
* - Initialize an array for storing indices for indexing into the provided array. For n-dimensional arrays, the index array is equivalent to an array of subscripts for indexing into each dimension.
* - For the outermost loop, treat the loop index as a linear index into an n-dimensional array and resolve the corresponding subscripts.
* - Continue iterating until all tuples have been generated.
*
* @param {ArrayLikeObject} x - input array
* @param {Collection} x - input array
* @param {NonNegativeInteger} n - power
* @returns {Array&lt;Array&gt;} list of ordered tuples comprising the Cartesian product
*
Expand All @@ -307,6 +318,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
* // returns [ [ 1, 1 ], [ 1, 2 ], [ 2, 1 ], [ 2, 2 ] ]
*/
function cartesianPower( x, n ) {
var get;
var out;
var tmp;
var idx;
Expand All @@ -321,6 +333,9 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
if ( N &lt;= 0 || n &lt;= 0 ) {
return [];
}
// Resolve an array element accessor:
get = resolveGetter( x );
&nbsp;
// Compute the total number of ordered tuples:
len = pow( N, n );
&nbsp;
Expand All @@ -343,7 +358,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
// Generate the next ordered tuple...
tmp = [];
for ( j = 0; j &lt; n; j++ ) {
tmp.push( x[ idx[ j ] ] );
tmp.push( get( x, idx[ j ] ) );
}
out.push( tmp );
}
Expand All @@ -361,7 +376,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-08-24T20:17:28.135Z
at 2024-01-27T06:48:08.652Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
1 change: 1 addition & 0 deletions array/cartesian-power/coverage.ndjson
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[101,101,100,7,7,100,1,1,100,101,101,100,"24736d2f857ec3ab94b035a2dca2d602bb9c08c9","2024-01-26 22:45:32 -0800"]
131 changes: 131 additions & 0 deletions array/cartesian-power/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@

<!doctype html>
<html lang="en">

<head>
<title>Code coverage report for array/cartesian-power/lib</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../../prettify.css" />
<link rel="stylesheet" href="../../../base.css" />
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(../../../sort-arrow-sprite.png);
}
</style>
</head>

<body>
<div class='wrapper'>
<div class='pad1'>
<h1><a href="../../../index.html">All files</a> array/cartesian-power/lib</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>101/101</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>7/7</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>1/1</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>101/101</span>
</div>


</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
</div>
</template>
</div>
<div class='status-line high'></div>
<div class="pad1">
<table class="coverage-summary">
<thead>
<tr>
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
</tr>
</thead>
<tbody><tr>
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
<td data-value="100" class="pic high">
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="42" class="abs high">42/42</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">0/0</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="42" class="abs high">42/42</td>
</tr>

<tr>
<td class="file high" data-value="main.js"><a href="main.js.html">main.js</a></td>
<td data-value="100" class="pic high">
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="59" class="abs high">59/59</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="6" class="abs high">6/6</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="59" class="abs high">59/59</td>
</tr>

</tbody>
</table>
</div>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-01-27T06:48:11.076Z
</div>
<script src="../../../prettify.js"></script>
<script>
window.onload = function () {
prettyPrint();
};
</script>
<script src="../../../sorter.js"></script>
<script src="../../../block-navigation.js"></script>
</body>
</html>

Loading

0 comments on commit 983cc63

Please sign in to comment.