Skip to content

Commit d221e0b

Browse files
committed
blah
1 parent 4af815c commit d221e0b

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

lib/fastmath2d.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
fm2d_unittest
2828
2929
fm2d_flatmatmul_inplace_of_ijk
30-
fm2d_flatmat_mu_sigma
30+
fm2d_flatmat_mu_sigma_of_dim
3131
fm2d_flatmat_xmV_M_xmV_of_dim
3232
3333
zz_fm2d_flatmatmul_inplace_of_ijk_abc
@@ -152,6 +152,12 @@ function fm2d_flatmatmul_inplace_of_ijk( /*integer*/I, /*integer*/J, /*integer*/
152152
}
153153

154154
function fm2d_flatmat_mu_sigma_of_dim( /*integer*/dim )
155+
// Returns a function `f` that computes the mean vector and covariance
156+
// (flat)matrix of an array of vectors `v_arr`.
157+
//
158+
// The returned function `f` itself takes as input `v_arr`, and
159+
// optionally pre-allocated output arrays: `maybe_mu` & `maybe_sigma`,
160+
// both (Float64)Arrays of numbers. Returned value : `{mu,sigma}`
155161
{
156162
if (!(dim in fm2d_flatmat_mu_sigma_of_dim))
157163
fm2d_flatmat_mu_sigma_of_dim[ dim ] = zz_fm2d_flatmat_mu_sigma_of_dim( dim );

lib/fastmath2d_speedtest.html

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@
3838
<body>
3939
<h1>fastmath2d_speedtest</h1>
4040

41+
<section>
42+
<p>
43+
<emph>This page provides interactive speed tests for <code>fastmath2d.js</code>, a
44+
library of fast math functions for 2-D&nbsp;matrices stored as
45+
flat&nbsp;(1-D) arrays of numbers.</emph>
46+
</p>
47+
48+
<p>[to the <a href="../index.html">main article</a>, to the GitHub file <a href="https://github.com/glathoud/flatorize/blob/master/lib/fastmath2d.js">flatmat2d.js</a>]
49+
</p>
50+
</section>
51+
4152
<section>
4253
<p>Measure the speed of the in-place multiplication of two matrices.</p>
4354
<div>
@@ -91,7 +102,9 @@ <h1>fastmath2d_speedtest</h1>
91102

92103

93104
<section>
94-
105+
106+
<p>The source files used for the tests. Alternatively you can look at them on <a href="https://github.com/glathoud/flatorize/blob/master/lib/">GitHub</a>
107+
95108
<div class="shown">
96109

97110
<span id="src_fastmath2d_speedtest">
@@ -100,7 +113,7 @@ <h1>fastmath2d_speedtest</h1>
100113
<button class="src-btn" onclick="this.parentNode.classList[this.parentNode.classList.contains('shown')?'remove':'add']('shown')"><span class="when_hidden">show</span><span class="when_shown">hide</span> source</button>
101114

102115
<div class="when_shown">
103-
<object class="codesource prettyprint lang-js" data="fastmath2d_speedtest.js" type="text/javascript" style="height:1500px;">
116+
<object class="codesource prettyprint lang-js" data="fastmath2d_speedtest.js" type="text/javascript" style="height:3400px;">
104117
<a href="fastmath2d_speedtest.js">fastmath2d_speedtest.js</a>
105118
</object>
106119
</div>
@@ -117,7 +130,7 @@ <h1>fastmath2d_speedtest</h1>
117130
<button class="src-btn" onclick="this.parentNode.classList[this.parentNode.classList.contains('shown')?'remove':'add']('shown')"><span class="when_hidden">show</span><span class="when_shown">hide</span> source</button>
118131

119132
<div class="when_shown">
120-
<object class="codesource prettyprint lang-js" data="fastmath2d.js" type="text/javascript" style="height:3500px;">
133+
<object class="codesource prettyprint lang-js" data="fastmath2d.js" type="text/javascript" style="height:5200px;">
121134
<a href="fastmath2d.js">fastmath2d.js</a>
122135
</object>
123136
</div>

0 commit comments

Comments
 (0)