| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_402) on Mon Apr 15 02:01:49 UTC 2024 --> |
| <title>BLAS (Spark 3.4.3 JavaDoc)</title> |
| <meta name="date" content="2024-04-15"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="BLAS (Spark 3.4.3 JavaDoc)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../../org/apache/spark/ml/linalg/DenseMatrix.html" title="class in org.apache.spark.ml.linalg"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/spark/ml/linalg/BLAS.html" target="_top">Frames</a></li> |
| <li><a href="BLAS.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.spark.ml.linalg</div> |
| <h2 title="Class BLAS" class="title">Class BLAS</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.spark.ml.linalg.BLAS</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">BLAS</span> |
| extends Object</pre> |
| <div class="block">BLAS routines for MLlib's vectors and matrices.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#BLAS--">BLAS</a></span>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#axpy-double-org.apache.spark.ml.linalg.Vector-org.apache.spark.ml.linalg.Vector-">axpy</a></span>(double a, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> y)</code> |
| <div class="block">y += a * x</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#copy-org.apache.spark.ml.linalg.Vector-org.apache.spark.ml.linalg.Vector-">copy</a></span>(<a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> y)</code> |
| <div class="block">y = x</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#dot-org.apache.spark.ml.linalg.Vector-org.apache.spark.ml.linalg.Vector-">dot</a></span>(<a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> y)</code> |
| <div class="block">dot(x, y)</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#dspmv-int-double-org.apache.spark.ml.linalg.DenseVector-org.apache.spark.ml.linalg.DenseVector-double-org.apache.spark.ml.linalg.DenseVector-">dspmv</a></span>(int n, |
| double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg">DenseVector</a> A, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg">DenseVector</a> x, |
| double beta, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg">DenseVector</a> y)</code> |
| <div class="block">y := alpha*A*x + beta*y</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#gemm-double-org.apache.spark.ml.linalg.Matrix-org.apache.spark.ml.linalg.DenseMatrix-double-org.apache.spark.ml.linalg.DenseMatrix-">gemm</a></span>(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Matrix.html" title="interface in org.apache.spark.ml.linalg">Matrix</a> A, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseMatrix.html" title="class in org.apache.spark.ml.linalg">DenseMatrix</a> B, |
| double beta, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseMatrix.html" title="class in org.apache.spark.ml.linalg">DenseMatrix</a> C)</code> |
| <div class="block">C := alpha * A * B + beta * C</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#gemm-double-org.apache.spark.ml.linalg.Matrix-org.apache.spark.ml.linalg.DenseMatrix-double-double:A-">gemm</a></span>(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Matrix.html" title="interface in org.apache.spark.ml.linalg">Matrix</a> A, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseMatrix.html" title="class in org.apache.spark.ml.linalg">DenseMatrix</a> B, |
| double beta, |
| double[] CValues)</code> |
| <div class="block">CValues[0: A.numRows * B.numCols] := alpha * A * B + beta * CValues[0: A.numRows * B.numCols]</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#gemv-double-org.apache.spark.ml.linalg.Matrix-double:A-double-double:A-">gemv</a></span>(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Matrix.html" title="interface in org.apache.spark.ml.linalg">Matrix</a> A, |
| double[] x, |
| double beta, |
| double[] y)</code> |
| <div class="block">y[0: A.numRows] := alpha * A * x[0: A.numCols] + beta * y[0: A.numRows]</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#gemv-double-org.apache.spark.ml.linalg.Matrix-org.apache.spark.ml.linalg.Vector-double-org.apache.spark.ml.linalg.DenseVector-">gemv</a></span>(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Matrix.html" title="interface in org.apache.spark.ml.linalg">Matrix</a> A, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x, |
| double beta, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg">DenseVector</a> y)</code> |
| <div class="block">y := alpha * A * x + beta * y</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#scal-double-org.apache.spark.ml.linalg.Vector-">scal</a></span>(double a, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x)</code> |
| <div class="block">x = a * x</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#spr-double-org.apache.spark.ml.linalg.Vector-org.apache.spark.ml.linalg.DenseVector-">spr</a></span>(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> v, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg">DenseVector</a> U)</code> |
| <div class="block">Adds alpha * x * x.t to a matrix in-place.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#spr-double-org.apache.spark.ml.linalg.Vector-double:A-">spr</a></span>(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> v, |
| double[] U)</code> |
| <div class="block">Adds alpha * v * v.t to a matrix in-place.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/spark/ml/linalg/BLAS.html#syr-double-org.apache.spark.ml.linalg.Vector-org.apache.spark.ml.linalg.DenseMatrix-">syr</a></span>(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseMatrix.html" title="class in org.apache.spark.ml.linalg">DenseMatrix</a> A)</code> |
| <div class="block">A := alpha * x * x^T^ + A</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class Object</h3> |
| <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="BLAS--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>BLAS</h4> |
| <pre>public BLAS()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="axpy-double-org.apache.spark.ml.linalg.Vector-org.apache.spark.ml.linalg.Vector-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>axpy</h4> |
| <pre>public static void axpy(double a, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> y)</pre> |
| <div class="block">y += a * x</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - (undocumented)</dd> |
| <dd><code>x</code> - (undocumented)</dd> |
| <dd><code>y</code> - (undocumented)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="dot-org.apache.spark.ml.linalg.Vector-org.apache.spark.ml.linalg.Vector-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dot</h4> |
| <pre>public static double dot(<a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> y)</pre> |
| <div class="block">dot(x, y)</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>x</code> - (undocumented)</dd> |
| <dd><code>y</code> - (undocumented)</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>(undocumented)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copy-org.apache.spark.ml.linalg.Vector-org.apache.spark.ml.linalg.Vector-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copy</h4> |
| <pre>public static void copy(<a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> y)</pre> |
| <div class="block">y = x</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>x</code> - (undocumented)</dd> |
| <dd><code>y</code> - (undocumented)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="scal-double-org.apache.spark.ml.linalg.Vector-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>scal</h4> |
| <pre>public static void scal(double a, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x)</pre> |
| <div class="block">x = a * x</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - (undocumented)</dd> |
| <dd><code>x</code> - (undocumented)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="spr-double-org.apache.spark.ml.linalg.Vector-org.apache.spark.ml.linalg.DenseVector-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>spr</h4> |
| <pre>public static void spr(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> v, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg">DenseVector</a> U)</pre> |
| <div class="block">Adds alpha * x * x.t to a matrix in-place. This is the same as BLAS's ?SPR. |
| <p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>U</code> - the upper triangular part of the matrix in a <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg"><code>DenseVector</code></a>(column major)</dd> |
| <dd><code>alpha</code> - (undocumented)</dd> |
| <dd><code>v</code> - (undocumented)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="dspmv-int-double-org.apache.spark.ml.linalg.DenseVector-org.apache.spark.ml.linalg.DenseVector-double-org.apache.spark.ml.linalg.DenseVector-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dspmv</h4> |
| <pre>public static void dspmv(int n, |
| double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg">DenseVector</a> A, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg">DenseVector</a> x, |
| double beta, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg">DenseVector</a> y)</pre> |
| <div class="block">y := alpha*A*x + beta*y |
| <p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>n</code> - The order of the n by n matrix A.</dd> |
| <dd><code>A</code> - The upper triangular part of A in a <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg"><code>DenseVector</code></a> (column major).</dd> |
| <dd><code>x</code> - The <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg"><code>DenseVector</code></a> transformed by A.</dd> |
| <dd><code>y</code> - The <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg"><code>DenseVector</code></a> to be modified in place.</dd> |
| <dd><code>alpha</code> - (undocumented)</dd> |
| <dd><code>beta</code> - (undocumented)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="spr-double-org.apache.spark.ml.linalg.Vector-double:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>spr</h4> |
| <pre>public static void spr(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> v, |
| double[] U)</pre> |
| <div class="block">Adds alpha * v * v.t to a matrix in-place. This is the same as BLAS's ?SPR. |
| <p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>U</code> - the upper triangular part of the matrix packed in an array (column major)</dd> |
| <dd><code>alpha</code> - (undocumented)</dd> |
| <dd><code>v</code> - (undocumented)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="syr-double-org.apache.spark.ml.linalg.Vector-org.apache.spark.ml.linalg.DenseMatrix-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>syr</h4> |
| <pre>public static void syr(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseMatrix.html" title="class in org.apache.spark.ml.linalg">DenseMatrix</a> A)</pre> |
| <div class="block">A := alpha * x * x^T^ + A</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>alpha</code> - a real scalar that will be multiplied to x * x^T^.</dd> |
| <dd><code>x</code> - the vector x that contains the n elements.</dd> |
| <dd><code>A</code> - the symmetric matrix A. Size of n x n.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="gemm-double-org.apache.spark.ml.linalg.Matrix-org.apache.spark.ml.linalg.DenseMatrix-double-org.apache.spark.ml.linalg.DenseMatrix-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>gemm</h4> |
| <pre>public static void gemm(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Matrix.html" title="interface in org.apache.spark.ml.linalg">Matrix</a> A, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseMatrix.html" title="class in org.apache.spark.ml.linalg">DenseMatrix</a> B, |
| double beta, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseMatrix.html" title="class in org.apache.spark.ml.linalg">DenseMatrix</a> C)</pre> |
| <div class="block">C := alpha * A * B + beta * C</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>alpha</code> - a scalar to scale the multiplication A * B.</dd> |
| <dd><code>A</code> - the matrix A that will be left multiplied to B. Size of m x k.</dd> |
| <dd><code>B</code> - the matrix B that will be left multiplied by A. Size of k x n.</dd> |
| <dd><code>beta</code> - a scalar that can be used to scale matrix C.</dd> |
| <dd><code>C</code> - the resulting matrix C. Size of m x n. C.isTransposed must be false.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="gemm-double-org.apache.spark.ml.linalg.Matrix-org.apache.spark.ml.linalg.DenseMatrix-double-double:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>gemm</h4> |
| <pre>public static void gemm(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Matrix.html" title="interface in org.apache.spark.ml.linalg">Matrix</a> A, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseMatrix.html" title="class in org.apache.spark.ml.linalg">DenseMatrix</a> B, |
| double beta, |
| double[] CValues)</pre> |
| <div class="block">CValues[0: A.numRows * B.numCols] := alpha * A * B + beta * CValues[0: A.numRows * B.numCols]</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>alpha</code> - a scalar to scale the multiplication A * B.</dd> |
| <dd><code>A</code> - the matrix A that will be left multiplied to B. Size of m x k.</dd> |
| <dd><code>B</code> - the matrix B that will be left multiplied by A. Size of k x n.</dd> |
| <dd><code>beta</code> - a scalar that can be used to scale matrix C.</dd> |
| <dd><code>CValues</code> - the values of matrix C. C.isTransposed is supposed to be false.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="gemv-double-org.apache.spark.ml.linalg.Matrix-double:A-double-double:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>gemv</h4> |
| <pre>public static void gemv(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Matrix.html" title="interface in org.apache.spark.ml.linalg">Matrix</a> A, |
| double[] x, |
| double beta, |
| double[] y)</pre> |
| <div class="block">y[0: A.numRows] := alpha * A * x[0: A.numCols] + beta * y[0: A.numRows]</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>alpha</code> - (undocumented)</dd> |
| <dd><code>A</code> - (undocumented)</dd> |
| <dd><code>x</code> - (undocumented)</dd> |
| <dd><code>beta</code> - (undocumented)</dd> |
| <dd><code>y</code> - (undocumented)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="gemv-double-org.apache.spark.ml.linalg.Matrix-org.apache.spark.ml.linalg.Vector-double-org.apache.spark.ml.linalg.DenseVector-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>gemv</h4> |
| <pre>public static void gemv(double alpha, |
| <a href="../../../../../org/apache/spark/ml/linalg/Matrix.html" title="interface in org.apache.spark.ml.linalg">Matrix</a> A, |
| <a href="../../../../../org/apache/spark/ml/linalg/Vector.html" title="interface in org.apache.spark.ml.linalg">Vector</a> x, |
| double beta, |
| <a href="../../../../../org/apache/spark/ml/linalg/DenseVector.html" title="class in org.apache.spark.ml.linalg">DenseVector</a> y)</pre> |
| <div class="block">y := alpha * A * x + beta * y</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>alpha</code> - a scalar to scale the multiplication A * x.</dd> |
| <dd><code>A</code> - the matrix A that will be left multiplied to x. Size of m x n.</dd> |
| <dd><code>x</code> - the vector x that will be left multiplied by A. Size of n x 1.</dd> |
| <dd><code>beta</code> - a scalar that can be used to scale vector y.</dd> |
| <dd><code>y</code> - the resulting vector y. Size of m x 1.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../../org/apache/spark/ml/linalg/DenseMatrix.html" title="class in org.apache.spark.ml.linalg"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/spark/ml/linalg/BLAS.html" target="_top">Frames</a></li> |
| <li><a href="BLAS.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <script defer="defer" type="text/javascript" src="../../../../../lib/jquery.js"></script><script defer="defer" type="text/javascript" src="../../../../../lib/api-javadocs.js"></script></body> |
| </html> |