mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r947482 - in /websites/staging/mahout/trunk/content: ./ users/environment/in-core-reference.html
Date Tue, 14 Apr 2015 01:51:51 GMT
Author: buildbot
Date: Tue Apr 14 01:51:50 2015
New Revision: 947482

Log:
Staging update by buildbot for mahout

Modified:
    websites/staging/mahout/trunk/content/   (props changed)
    websites/staging/mahout/trunk/content/users/environment/in-core-reference.html

Propchange: websites/staging/mahout/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr 14 01:51:50 2015
@@ -1 +1 @@
-1673322
+1673336

Modified: websites/staging/mahout/trunk/content/users/environment/in-core-reference.html
==============================================================================
--- websites/staging/mahout/trunk/content/users/environment/in-core-reference.html (original)
+++ websites/staging/mahout/trunk/content/users/environment/in-core-reference.html Tue Apr
14 01:51:50 2015
@@ -467,6 +467,11 @@ val sparseVec1 = svec((5 -> 1.0) :: (
 
 <p>will not therefore incur any additional data copying.</p>
 <h4 id="decompositions">Decompositions</h4>
+<p>Matrix decompositions require an additional import:</p>
+<div class="codehilite"><pre><span class="n">import</span> <span
class="n">org</span><span class="p">.</span><span class="n">apache</span><span
class="p">.</span><span class="n">mahout</span><span class="p">.</span><span
class="n">math</span><span class="p">.</span><span class="n">decompositions</span><span
class="p">.</span><span class="n">_</span>
+</pre></div>
+
+
 <p>All arguments in the following are matricies.</p>
 <p><strong>Cholesky decomposition</strong></p>
 <div class="codehilite"><pre><span class="n">val</span> <span
class="n">ch</span> <span class="p">=</span> <span class="n">chol</span><span
class="p">(</span><span class="n">M</span><span class="p">)</span>
@@ -479,7 +484,7 @@ val sparseVec1 = svec((5 -&gt; 1.0) :: (
 
 
 <p><strong>EigenDecomposition</strong></p>
-<div class="codehilite"><pre><span class="n">val</span> <span
class="p">(</span><span class="n">Q</span><span class="p">,</span>
<span class="n">R</span><span class="p">)</span> <span class="p">=</span>
<span class="n">eigen</span><span class="p">(</span><span class="n">M</span><span
class="p">)</span>
+<div class="codehilite"><pre><span class="n">val</span> <span
class="p">(</span><span class="n">V</span><span class="p">,</span>
<span class="n">d</span><span class="p">)</span> <span class="p">=</span>
<span class="n">eigen</span><span class="p">(</span><span class="n">M</span><span
class="p">)</span>
 </pre></div>
 
 
@@ -540,17 +545,17 @@ val sparseVec1 = svec((5 -&gt; 1.0) :: (
 
 
 <h4 id="random-matrices">Random Matrices</h4>
-<p><code>\(\mathcal{U}\)</code><em>(0,1) random matrix view</em></p>
+<p><code>\(\mathcal{U}\)</code>(0,1) random matrix view:</p>
 <div class="codehilite"><pre><span class="n">val</span> <span
class="n">incCoreA</span> <span class="p">=</span> <span class="n">Matrices</span><span
class="p">.</span><span class="n">uniformView</span><span class="p">(</span><span
class="n">m</span><span class="p">,</span> <span class="n">n</span><span
class="p">,</span> <span class="n">seed</span><span class="p">)</span>
 </pre></div>
 
 
-<p><code>\(\mathcal{U}\)</code><em>(-1,1) random matrix view</em></p>
+<p><code>\(\mathcal{U}\)</code>(-1,1) random matrix view:</p>
 <div class="codehilite"><pre><span class="n">val</span> <span
class="n">incCoreA</span> <span class="p">=</span> <span class="n">Matrices</span><span
class="p">.</span><span class="n">symmetricUniformView</span><span
class="p">(</span><span class="n">m</span><span class="p">,</span>
<span class="n">n</span><span class="p">,</span> <span class="n">seed</span><span
class="p">)</span>
 </pre></div>
 
 
-<p><code>\(\mathcal{N}\)</code><em>(-1,1) random matrix view</em></p>
+<p><code>\(\mathcal{N}\)</code>(-1,1) random matrix view:</p>
 <div class="codehilite"><pre><span class="n">val</span> <span
class="n">incCoreA</span> <span class="p">=</span> <span class="n">Matrices</span><span
class="p">.</span><span class="n">gaussianView</span><span class="p">(</span><span
class="n">m</span><span class="p">,</span> <span class="n">n</span><span
class="p">,</span> <span class="n">seed</span><span class="p">)</span>
 </pre></div>
 



Mime
View raw message