Skip to content

Commit

Permalink
Update artifacts
Browse files Browse the repository at this point in the history
stdlib-bot committed Oct 30, 2024
1 parent e228551 commit aac7d68
Showing 9 changed files with 215 additions and 352 deletions.
1 change: 1 addition & 0 deletions blas/ext/base/dnansumkbn/coverage.ndjson
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[440,440,100,40,40,100,4,4,100,440,440,100,"a9016c65a013cbabcf819c0733c05c59618d198c","2024-03-26 08:55:12 -0400"]
[440,440,100,40,40,100,4,4,100,440,440,100,"3080f032a477cbd046b4201d7ffdd407c9d93816","2024-03-29 11:47:48 -0400"]
[392,394,99.4924,22,23,95.6522,4,4,100,392,394,99.4924,"371a49427e62050eb23947678b66aa529ee3890b","2024-10-29 20:51:13 -0400"]
133 changes: 11 additions & 122 deletions blas/ext/base/dnansumkbn/dnansumkbn.js.html
Original file line number Diff line number Diff line change
@@ -25,14 +25,14 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<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'>60/60</span>
</div>


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


@@ -46,7 +46,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<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'>60/60</span>
</div>


@@ -123,44 +123,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<a name='L58'></a><a href='#L58'>58</a>
<a name='L59'></a><a href='#L59'>59</a>
<a name='L60'></a><a href='#L60'>60</a>
<a name='L61'></a><a href='#L61'>61</a>
<a name='L62'></a><a href='#L62'>62</a>
<a name='L63'></a><a href='#L63'>63</a>
<a name='L64'></a><a href='#L64'>64</a>
<a name='L65'></a><a href='#L65'>65</a>
<a name='L66'></a><a href='#L66'>66</a>
<a name='L67'></a><a href='#L67'>67</a>
<a name='L68'></a><a href='#L68'>68</a>
<a name='L69'></a><a href='#L69'>69</a>
<a name='L70'></a><a href='#L70'>70</a>
<a name='L71'></a><a href='#L71'>71</a>
<a name='L72'></a><a href='#L72'>72</a>
<a name='L73'></a><a href='#L73'>73</a>
<a name='L74'></a><a href='#L74'>74</a>
<a name='L75'></a><a href='#L75'>75</a>
<a name='L76'></a><a href='#L76'>76</a>
<a name='L77'></a><a href='#L77'>77</a>
<a name='L78'></a><a href='#L78'>78</a>
<a name='L79'></a><a href='#L79'>79</a>
<a name='L80'></a><a href='#L80'>80</a>
<a name='L81'></a><a href='#L81'>81</a>
<a name='L82'></a><a href='#L82'>82</a>
<a name='L83'></a><a href='#L83'>83</a>
<a name='L84'></a><a href='#L84'>84</a>
<a name='L85'></a><a href='#L85'>85</a>
<a name='L86'></a><a href='#L86'>86</a>
<a name='L87'></a><a href='#L87'>87</a>
<a name='L88'></a><a href='#L88'>88</a>
<a name='L89'></a><a href='#L89'>89</a>
<a name='L90'></a><a href='#L90'>90</a>
<a name='L91'></a><a href='#L91'>91</a>
<a name='L92'></a><a href='#L92'>92</a>
<a name='L93'></a><a href='#L93'>93</a>
<a name='L94'></a><a href='#L94'>94</a>
<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">2x</span>
<a name='L61'></a><a href='#L61'>61</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
@@ -212,48 +175,11 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</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">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">8x</span>
<span class="cline-any cline-yes">8x</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">45x</span>
<span class="cline-any cline-yes">45x</span>
<span class="cline-any cline-yes">34x</span>
<span class="cline-any cline-yes">34x</span>
<span class="cline-any cline-yes">13x</span>
<span class="cline-any cline-yes">34x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">34x</span>
<span class="cline-any cline-yes">34x</span>
<span class="cline-any cline-yes">45x</span>
<span class="cline-any cline-yes">45x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
@@ -279,8 +205,8 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
&nbsp;
// MODULES //
&nbsp;
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var abs = require( '@stdlib/math/base/special/abs' );
var stride2offset = require( '@stdlib/strided/base/stride2offset' );
var ndarray = require( './ndarray.js' );
&nbsp;
&nbsp;
// MAIN //
@@ -298,56 +224,19 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
*
* @param {PositiveInteger} N - number of indexed elements
* @param {Float64Array} x - input array
* @param {integer} stride - stride length
* @param {integer} strideX - stride length
* @returns {number} sum
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
*
* var x = new Float64Array( [ 1.0, -2.0, NaN, 2.0 ] );
* var N = x.length;
*
* var v = dnansumkbn( N, x, 1 );
* var v = dnansumkbn( x.length, x, 1 );
* // returns 1.0
*/
function dnansumkbn( N, x, stride ) {
var sum;
var ix;
var v;
var t;
var c;
var i;
&nbsp;
if ( N &lt;= 0 ) {
return 0.0;
}
if ( N === 1 || stride === 0 ) {
if ( isnan( x[ 0 ] ) ) {
return 0.0;
}
return x[ 0 ];
}
if ( stride &lt; 0 ) {
ix = (1-N) * stride;
} else {
ix = 0;
}
sum = 0.0;
c = 0.0;
for ( i = 0; i &lt; N; i++ ) {
v = x[ ix ];
if ( isnan( v ) === false ) {
t = sum + v;
if ( abs( sum ) &gt;= abs( v ) ) {
c += (sum-t) + v;
} else {
c += (v-t) + sum;
}
sum = t;
}
ix += stride;
}
return sum + c;
function dnansumkbn( N, x, strideX ) {
return ndarray( N, x, strideX, stride2offset( N, strideX ) );
}
&nbsp;
&nbsp;
@@ -361,7 +250,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<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-03-29T15:51:36.540Z
at 2024-10-30T00:53:16.129Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
119 changes: 58 additions & 61 deletions blas/ext/base/dnansumkbn/dnansumkbn.native.js.html
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>52/52</span>
<span class='fraction'>51/51</span>
</div>


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


@@ -114,59 +114,57 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<a name='L49'></a><a href='#L49'>49</a>
<a name='L50'></a><a href='#L50'>50</a>
<a name='L51'></a><a href='#L51'>51</a>
<a name='L52'></a><a href='#L52'>52</a>
<a name='L53'></a><a href='#L53'>53</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">55x</span>
<span class="cline-any cline-yes">55x</span>
<span class="cline-any cline-yes">55x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<a name='L52'></a><a href='#L52'>52</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">40x</span>
<span class="cline-any cline-yes">40x</span>
<span class="cline-any cline-yes">40x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">/**
* @license Apache-2.0
*
@@ -199,20 +197,19 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
*
* @param {PositiveInteger} N - number of indexed elements
* @param {Float64Array} x - input array
* @param {integer} stride - stride length
* @param {integer} strideX - stride length
* @returns {number} sum
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
*
* var x = new Float64Array( [ 1.0, -2.0, NaN, 2.0 ] );
* var N = x.length;
*
* var v = dnansumkbn( N, x, 1 );
* var v = dnansumkbn( x.length, x, 1 );
* // returns 1.0
*/
function dnansumkbn( N, x, stride ) {
return addon( N, x, stride );
function dnansumkbn( N, x, strideX ) {
return addon( N, x, strideX );
}
&nbsp;
&nbsp;
@@ -226,7 +223,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<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-03-29T15:51:36.540Z
at 2024-10-30T00:53:16.129Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
44 changes: 22 additions & 22 deletions blas/ext/base/dnansumkbn/index.html
Original file line number Diff line number Diff line change
@@ -23,16 +23,16 @@ <h1><a href="../../../../../index.html">All files</a> blas/ext/base/dnansumkbn/l
<div class='clearfix'>

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


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


@@ -44,9 +44,9 @@ <h1><a href="../../../../../index.html">All files</a> blas/ext/base/dnansumkbn/l


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


@@ -84,13 +84,13 @@ <h1><a href="../../../../../index.html">All files</a> blas/ext/base/dnansumkbn/l
<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="60" class="abs high">60/60</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="17" class="abs high">17/17</td>
<td data-value="2" class="abs high">2/2</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="60" class="abs high">60/60</td>
</tr>

<tr>
@@ -99,13 +99,13 @@ <h1><a href="../../../../../index.html">All files</a> blas/ext/base/dnansumkbn/l
<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="52" class="abs high">52/52</td>
<td data-value="51" class="abs high">51/51</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">2/2</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="52" class="abs high">52/52</td>
<td data-value="51" class="abs high">51/51</td>
</tr>

<tr>
@@ -155,17 +155,17 @@ <h1><a href="../../../../../index.html">All files</a> blas/ext/base/dnansumkbn/l

<tr>
<td class="file high" data-value="ndarray.js"><a href="ndarray.js.html">ndarray.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 data-value="97.84" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 97%"></div><div class="cover-empty" style="width: 3%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="93" class="abs high">93/93</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="14" class="abs high">14/14</td>
<td data-value="97.84" class="pct high">97.84%</td>
<td data-value="93" class="abs high">91/93</td>
<td data-value="91.66" class="pct high">91.66%</td>
<td data-value="12" class="abs high">11/12</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="93" class="abs high">93/93</td>
<td data-value="97.84" class="pct high">97.84%</td>
<td data-value="93" class="abs high">91/93</td>
</tr>

<tr>
@@ -174,13 +174,13 @@ <h1><a href="../../../../../index.html">All files</a> blas/ext/base/dnansumkbn/l
<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="60" class="abs high">60/60</td>
<td data-value="52" class="abs high">52/52</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">2/2</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="60" class="abs high">60/60</td>
<td data-value="52" class="abs high">52/52</td>
</tr>

</tbody>
@@ -191,7 +191,7 @@ <h1><a href="../../../../../index.html">All files</a> blas/ext/base/dnansumkbn/l
<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-03-29T15:51:36.540Z
at 2024-10-30T00:53:16.129Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
2 changes: 1 addition & 1 deletion blas/ext/base/dnansumkbn/index.js.html
Original file line number Diff line number Diff line change
@@ -274,7 +274,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<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-03-29T15:51:36.540Z
at 2024-10-30T00:53:16.129Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
2 changes: 1 addition & 1 deletion blas/ext/base/dnansumkbn/main.js.html
Original file line number Diff line number Diff line change
@@ -175,7 +175,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<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-03-29T15:51:36.540Z
at 2024-10-30T00:53:16.129Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
2 changes: 1 addition & 1 deletion blas/ext/base/dnansumkbn/native.js.html
Original file line number Diff line number Diff line change
@@ -175,7 +175,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<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-03-29T15:51:36.540Z
at 2024-10-30T00:53:16.129Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
222 changes: 111 additions & 111 deletions blas/ext/base/dnansumkbn/ndarray.js.html
Original file line number Diff line number Diff line change
@@ -23,16 +23,16 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<div class='clearfix'>

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


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


@@ -44,9 +44,9 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla


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


@@ -156,99 +156,99 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<a name='L91'></a><a href='#L91'>91</a>
<a name='L92'></a><a href='#L92'>92</a>
<a name='L93'></a><a href='#L93'>93</a>
<a name='L94'></a><a href='#L94'>94</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</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">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">15x</span>
<a name='L94'></a><a href='#L94'>94</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</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">42x</span>
<span class="cline-any cline-yes">42x</span>
<span class="cline-any cline-yes">34x</span>
<span class="cline-any cline-yes">34x</span>
<span class="cline-any cline-yes">13x</span>
<span class="cline-any cline-yes">34x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">21x</span>
<span class="cline-any cline-yes">34x</span>
<span class="cline-any cline-yes">34x</span>
<span class="cline-any cline-yes">42x</span>
<span class="cline-any cline-yes">42x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">15x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">26x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">24x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">93x</span>
<span class="cline-any cline-yes">93x</span>
<span class="cline-any cline-yes">72x</span>
<span class="cline-any cline-yes">72x</span>
<span class="cline-any cline-yes">26x</span>
<span class="cline-any cline-yes">72x</span>
<span class="cline-any cline-yes">46x</span>
<span class="cline-any cline-yes">46x</span>
<span class="cline-any cline-yes">72x</span>
<span class="cline-any cline-yes">72x</span>
<span class="cline-any cline-yes">93x</span>
<span class="cline-any cline-yes">93x</span>
<span class="cline-any cline-yes">24x</span>
<span class="cline-any cline-yes">30x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">/**
* @license Apache-2.0
*
@@ -290,8 +290,8 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
*
* @param {PositiveInteger} N - number of indexed elements
* @param {Float64Array} x - input array
* @param {integer} stride - stride length
* @param {NonNegativeInteger} offset - starting index
* @param {integer} strideX - stride length
* @param {NonNegativeInteger} offsetX - starting index
* @returns {number} sum
*
* @example
@@ -302,25 +302,25 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
* var v = dnansumkbn( 5, x, 2, 1 );
* // returns 5.0
*/
function dnansumkbn( N, x, stride, offset ) {
function dnansumkbn( N, x, strideX, offsetX ) {
var sum;
var ix;
var v;
var t;
var c;
var i;
&nbsp;
sum = 0.0;
if ( N &lt;= 0 ) {
return 0.0;
return sum;
}
if ( N === 1 || stride === 0 ) {
if ( isnan( x[ offset ] ) ) {
return 0.0;
}
return x[ offset ];
ix = offsetX;
if ( strideX === 0 ) {
if ( isnan( x[ ix ] ) ) <span class="branch-0 cbranch-no" title="branch not covered" >{</span>
<span class="cstat-no" title="statement not covered" > return sum;</span>
<span class="cstat-no" title="statement not covered" > }</span>
return x[ ix ] * N;
}
ix = offset;
sum = 0.0;
c = 0.0;
for ( i = 0; i &lt; N; i++ ) {
v = x[ ix ];
@@ -333,7 +333,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
}
sum = t;
}
ix += stride;
ix += strideX;
}
return sum + c;
}
@@ -349,7 +349,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<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-03-29T15:51:36.540Z
at 2024-10-30T00:53:16.129Z
</div>
<script src="../../../../../prettify.js"></script>
<script>
42 changes: 9 additions & 33 deletions blas/ext/base/dnansumkbn/ndarray.native.js.html
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>60/60</span>
<span class='fraction'>52/52</span>
</div>


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


@@ -115,15 +115,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<a name='L50'></a><a href='#L50'>50</a>
<a name='L51'></a><a href='#L51'>51</a>
<a name='L52'></a><a href='#L52'>52</a>
<a name='L53'></a><a href='#L53'>53</a>
<a name='L54'></a><a href='#L54'>54</a>
<a name='L55'></a><a href='#L55'>55</a>
<a name='L56'></a><a href='#L56'>56</a>
<a name='L57'></a><a href='#L57'>57</a>
<a name='L58'></a><a href='#L58'>58</a>
<a name='L59'></a><a href='#L59'>59</a>
<a name='L60'></a><a href='#L60'>60</a>
<a name='L61'></a><a href='#L61'>61</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
<a name='L53'></a><a href='#L53'>53</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
@@ -167,14 +159,6 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</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>
@@ -205,9 +189,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
&nbsp;
// MODULES //
&nbsp;
var minViewBufferIndex = require( '@stdlib/strided/base/min-view-buffer-index' );
var offsetView = require( '@stdlib/strided/base/offset-view' );
var addon = require( './dnansumkbn.native.js' );
var addon = require( './../src/addon.node' );
&nbsp;
&nbsp;
// MAIN //
@@ -217,8 +199,8 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
*
* @param {PositiveInteger} N - number of indexed elements
* @param {Float64Array} x - input array
* @param {integer} stride - stride length
* @param {NonNegativeInteger} offset - starting index
* @param {integer} strideX - stride length
* @param {NonNegativeInteger} offsetX - starting index
* @returns {number} sum
*
* @example
@@ -229,14 +211,8 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
* var v = dnansumkbn( 5, x, 2, 1 );
* // returns 5.0
*/
function dnansumkbn( N, x, stride, offset ) {
var view;
&nbsp;
offset = minViewBufferIndex( N, stride, offset );
&nbsp;
view = offsetView( x, offset );
&nbsp;
return addon( N, view, stride );
function dnansumkbn( N, x, strideX, offsetX ) {
return addon.ndarray( N, x, strideX, offsetX );
}
&nbsp;
&nbsp;
@@ -250,7 +226,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">bla
<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-03-29T15:51:36.540Z
at 2024-10-30T00:53:16.129Z
</div>
<script src="../../../../../prettify.js"></script>
<script>

0 comments on commit aac7d68

Please sign in to comment.