| <!-- HTML header for doxygen 1.8.4--> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.4"/> |
| <meta name="keywords" content="madlib,postgres,greenplum,machine learning,data mining,deep learning,ensemble methods,data science,market basket analysis,affinity analysis,pca,lda,regression,elastic net,huber white,proportional hazards,k-means,latent dirichlet allocation,bayes,support vector machines,svm"/> |
| <title>MADlib: Linear Algebra Operations</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="resize.js"></script> |
| <script type="text/javascript" src="navtree.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(initResizable); |
| $(window).load(resizeHeight); |
| </script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/search.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(function() { searchBox.OnSelectItem(0); }); |
| </script> |
| <script type="text/x-mathjax-config"> |
| MathJax.Hub.Config({ |
| extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"], |
| jax: ["input/TeX","output/HTML-CSS"], |
| }); |
| </script><script src="../mathjax/MathJax.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| <link href="madlib_extra.css" rel="stylesheet" type="text/css"/> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td> |
| <td style="padding-left: 0.5em;"> |
| <div id="projectname"> |
| <span id="projectnumber">1.7</span> <span style="font-size:10pt; font-style:italic"><a href="../latest/./group__grp__linalg.html"> A newer version is available</a></span> |
| </div> |
| <div id="projectbrief">User Documentation</div> |
| </td> |
| <td> <div id="MSearchBox" class="MSearchBoxInactive"> |
| <span class="left"> |
| <img id="MSearchSelect" src="search/mag_sel.png" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| alt=""/> |
| <input type="text" id="MSearchField" value="Search" accesskey="S" |
| onfocus="searchBox.OnSearchFieldFocus(true)" |
| onblur="searchBox.OnSearchFieldFocus(false)" |
| onkeyup="searchBox.OnSearchFieldChange(event)"/> |
| </span><span class="right"> |
| <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| </span> |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.4 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| </div><!-- top --> |
| <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| <div id="nav-tree"> |
| <div id="nav-tree-contents"> |
| <div id="nav-sync" class="sync"></div> |
| </div> |
| </div> |
| <div id="splitbar" style="-moz-user-select:none;" |
| class="ui-resizable-handle"> |
| </div> |
| </div> |
| <script type="text/javascript"> |
| $(document).ready(function(){initNavTree('group__grp__linalg.html','');}); |
| </script> |
| <div id="doc-content"> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Groups</a></div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div class="header"> |
| <div class="headertitle"> |
| <div class="title">Linear Algebra Operations<div class="ingroups"><a class="el" href="group__grp__early__stage.html">Early Stage Development</a></div></div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <div class="toc"><b>Contents</b> </p> |
| <ul> |
| <li> |
| <a href="#functions">Linear Algebra Utility Functions</a> </li> |
| <li> |
| <a href="#related">Related Functions</a> </li> |
| </ul> |
| </div><dl class="section warning"><dt>Warning</dt><dd><em> This MADlib module is still in early stage development. There may be some issues that will be addressed in a future version. Interface and implementation is subject to change. </em></dd></dl> |
| <p>The linalg module consists of useful utility functions for basic linear algebra operations. Several of these functions can be used while implementing new algorithms.</p> |
| <p>Refer to the <a class="el" href="linalg_8sql__in.html" title="SQL functions for linear algebra. ">linalg.sql_in</a> file for documentation on each of the utility functions.</p> |
| <p><a class="anchor" id="functions"></a></p> |
| <dl class="section user"><dt>Linear Algebra Utility Functions</dt><dd><table class="output"> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#a300300fe4b8576ba0b97b95d8dea3057" title="1-norm of a vector ">norm1()</a> </th><td><p class="starttd">1-norm of a vector.</p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#a50fdfe30cc0edc6888a909dbb4b4c239" title="2-norm of a vector ">norm2()</a> </th><td><p class="starttd">2-norm of a vector. </p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#aad193850e79c4b9d811ca9bc53e13476" title="1-norm of the difference between two vectors ">dist_norm1()</a> </th><td><p class="starttd">1-norm of the difference between two vectors. </p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#aa58e51526edea6ea98db30b6f250adb4" title="2-norm of the difference between two vectors ">dist_norm2()</a> </th><td><p class="starttd">2-norm of the difference between two vectors. </p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#a00a08e69f27524f2096032214e15b668" title="Squared 2-norm of the difference between two vectors. ">squared_dist_norm2()</a> </th><td><p class="starttd">Squared 2-norm of the difference between two vectors. </p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#a8c7b9281a72ff22caf06161701b27e84" title="Angle between two vectors. ">dist_angle()</a> </th><td><p class="starttd">Angle between two vectors. </p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#afa13b4c6122b99422d666dedea136c18" title="Tanimoto distance between two vectors. ">dist_tanimoto()</a> </th><td><p class="starttd">Tanimoto distance between two vectors. </p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#aa2856d10fa6cb12a5b168bab217197ed">closest_column()</a> </th><td><p class="starttd">Given matrix \( M \) and vector \( \vec x \) compute the column of \( M \) that is closest to \( \vec x \).</p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#af4f75bc80b283319fbebbe2ae3f01ec0">closest_columns()</a> </th><td><p class="starttd">Given matrix \( M \) and vector \( \vec x \) compute the columns of \( M \) that are closest to \( \vec x \). </p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#a1aa37f73fb1cd8d7d106aa518dd8c0b4" title="Compute the average of vectors. ">avg()</a> </th><td><p class="starttd">Compute the average of vectors. </p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#a0b04663ca206f03e66aed5ea2b4cc461" title="Compute the normalized average of vectors. ">normalized_avg()</a> </th><td>Compute the normalized average of vectors. </td></tr> |
| <tr> |
| <th>matrix_agg() </th><td><p class="starttd">Combine vectors to a matrix. </p> |
| <p class="endtd"></p> |
| </td></tr> |
| <tr> |
| <th><a class="el" href="linalg_8sql__in.html#a24a4f14f171a12ec31f609af2f07ac18" title="Combine vectors to a matrix. ">matrix_column()</a> </th><td><p class="starttd">Return the column of a matrix. </p> |
| <p class="endtd"></p> |
| </td></tr> |
| </table> |
| </dd></dl> |
| <p><a class="anchor" id="related"></a></p> |
| <dl class="section user"><dt>Related Topics</dt><dd>File <a class="el" href="linalg_8sql__in.html" title="SQL functions for linear algebra. ">linalg.sql_in</a> documenting the SQL functions. </dd></dl> |
| </div><!-- contents --> |
| </div><!-- doc-content --> |
| <!-- start footer part --> |
| <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| <ul> |
| <li class="footer">Generated on Tue Dec 30 2014 21:44:13 for MADlib by |
| <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.4 </li> |
| </ul> |
| </div> |
| </body> |
| </html> |