blob: fd182e5c96baaeece2305f564fbf7923487c225b [file] [log] [blame]
<!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_222) on Mon Sep 30 16:21:16 BST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LinearAlgebra (The Eclipse January API Documentation)</title>
<meta name="date" content="2019-09-30">
<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="LinearAlgebra (The Eclipse January API Documentation)";
}
}
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,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":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="class-use/LinearAlgebra.html">Use</a></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><a href="../../../../org/eclipse/january/dataset/LazyWriteableDataset.html" title="class in org.eclipse.january.dataset"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.NormOrder.html" title="enum in org.eclipse.january.dataset"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/january/dataset/LinearAlgebra.html" target="_top">Frames</a></li>
<li><a href="LinearAlgebra.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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.eclipse.january.dataset</div>
<h2 title="Class LinearAlgebra" class="title">Class LinearAlgebra</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.eclipse.january.dataset.LinearAlgebra</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.33">LinearAlgebra</a>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.NormOrder.html" title="enum in org.eclipse.january.dataset">LinearAlgebra.NormOrder</a></span></code>
<div class="block">Order value for norm</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== 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">&nbsp;</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/eclipse/january/dataset/LinearAlgebra.html#LinearAlgebra--">LinearAlgebra</a></span>()</code>&nbsp;</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">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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 <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcCholeskyDecomposition-org.eclipse.january.dataset.Dataset-">calcCholeskyDecomposition</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>
<div class="block">Calculate Cholesky decomposition <code>A = L L^T</code></div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcConditionNumber-org.eclipse.january.dataset.Dataset-">calcConditionNumber</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>
<div class="block">Calculate condition number of matrix by singular value decomposition method</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcConjugateGradient-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">calcConjugateGradient</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;v)</code>
<div class="block">Calculation <code>A x = v</code> by conjugate gradient method with the stopping criterion being
that the estimated residual <code>r = v - A x</code> satisfies <code>||r|| &lt; ||v||</code> with maximum of 100 iterations</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcConjugateGradient-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-int-double-">calcConjugateGradient</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;v,
int&nbsp;maxIterations,
double&nbsp;delta)</code>
<div class="block">Calculation <code>A x = v</code> by conjugate gradient method with the stopping criterion being
that the estimated residual <code>r = v - A x</code> satisfies <code>||r|| &lt; delta ||v||</code></div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcDeterminant-org.eclipse.january.dataset.Dataset-">calcDeterminant</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcEigenDecomposition-org.eclipse.january.dataset.Dataset-">calcEigenDecomposition</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>
<div class="block">Calculate eigen-decomposition <code>A = V D V^T</code></div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcEigenvalues-org.eclipse.january.dataset.Dataset-">calcEigenvalues</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcInverse-org.eclipse.january.dataset.Dataset-">calcInverse</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>
<div class="block">Calculate inverse of square dataset</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcLUDecomposition-org.eclipse.january.dataset.Dataset-">calcLUDecomposition</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>
<div class="block">Calculate LU decomposition <code>A = P^-1 L U</code></div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcMatrixRank-org.eclipse.january.dataset.Dataset-">calcMatrixRank</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>
<div class="block">Calculate matrix rank by singular value decomposition method</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcPseudoInverse-org.eclipse.january.dataset.Dataset-">calcPseudoInverse</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>
<div class="block">Calculate (Moore-Penrose) pseudo-inverse</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcQRDecomposition-org.eclipse.january.dataset.Dataset-">calcQRDecomposition</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>
<div class="block">Calculate QR decomposition <code>A = Q R</code></div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcSingularValueDecomposition-org.eclipse.january.dataset.Dataset-">calcSingularValueDecomposition</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>
<div class="block">Calculate singular value decomposition <code>A = U S V^T</code></div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static double[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#calcSingularValues-org.eclipse.january.dataset.Dataset-">calcSingularValues</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#crossProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">crossProduct</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b)</code>
<div class="block">Calculate the cross product of two datasets.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#crossProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-int-int-int-">crossProduct</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b,
int&nbsp;axisA,
int&nbsp;axisB,
int&nbsp;axisC)</code>
<div class="block">Calculate the cross product of two datasets.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#dotProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">dotProduct</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b)</code>
<div class="block">Calculate the dot product of two datasets.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#kroneckerProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">kroneckerProduct</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b)</code>
<div class="block">Create the Kronecker product as defined by
<code>kron[k0,...,kN] = a[i0,...,iN] * b[j0,...,jN]</code>
where <code>kn = sn * in + jn</code> for <code>n = 0...N</code> and <code>s</code> is shape of <code>b</code></div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#norm-org.eclipse.january.dataset.Dataset-">norm</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#norm-org.eclipse.january.dataset.Dataset-double-">norm</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
double&nbsp;p)</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#norm-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.LinearAlgebra.NormOrder-">norm</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/LinearAlgebra.NormOrder.html" title="enum in org.eclipse.january.dataset">LinearAlgebra.NormOrder</a>&nbsp;order)</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#outerProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">outerProduct</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b)</code>
<div class="block">Calculate the outer product of two datasets</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#power-org.eclipse.january.dataset.Dataset-int-">power</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
int&nbsp;n)</code>
<div class="block">Raise dataset to given power by matrix multiplication</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#solve-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">solve</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;v)</code>
<div class="block">Solve linear matrix equation <code>A x = v</code></div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#solveSVD-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">solveSVD</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;v)</code>
<div class="block">Solve least squares matrix equation <code>A x = v</code> by SVD</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#tensorDotProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-int:A-int:A-">tensorDotProduct</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b,
int[]&nbsp;axisa,
int[]&nbsp;axisb)</code>
<div class="block">Calculate the tensor dot product over given axes.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#tensorDotProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-int-int-">tensorDotProduct</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b,
int&nbsp;axisa,
int&nbsp;axisb)</code>
<div class="block">Calculate the tensor dot product over given axes.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#trace-org.eclipse.january.dataset.Dataset-">trace</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>
<div class="block">Calculate trace of dataset - sum of values over 1st axis and 2nd axis</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.html#trace-org.eclipse.january.dataset.Dataset-int-int-int-">trace</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
int&nbsp;offset,
int&nbsp;axis1,
int&nbsp;axis2)</code>
<div class="block">Calculate trace of dataset - sum of values over axis1 and axis2 where axis2 is offset</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></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="LinearAlgebra--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LinearAlgebra</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.33">LinearAlgebra</a>()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="tensorDotProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tensorDotProduct</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.46">tensorDotProduct</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b,
int&nbsp;axisa,
int&nbsp;axisb)</pre>
<div class="block">Calculate the tensor dot product over given axes. This is the sum of products of elements selected
from the given axes in each dataset</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>b</code> - </dd>
<dd><code>axisa</code> - axis dimension in a to sum over (can be -ve)</dd>
<dd><code>axisb</code> - axis dimension in b to sum over (can be -ve)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>tensor dot product</dd>
</dl>
</li>
</ul>
<a name="tensorDotProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-int:A-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tensorDotProduct</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.117">tensorDotProduct</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b,
int[]&nbsp;axisa,
int[]&nbsp;axisb)</pre>
<div class="block">Calculate the tensor dot product over given axes. This is the sum of products of elements selected
from the given axes in each dataset</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>b</code> - </dd>
<dd><code>axisa</code> - axis dimensions in a to sum over (can be -ve)</dd>
<dd><code>axisb</code> - axis dimensions in b to sum over (can be -ve)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>tensor dot product</dd>
</dl>
</li>
</ul>
<a name="dotProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dotProduct</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.205">dotProduct</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b)</pre>
<div class="block">Calculate the dot product of two datasets. When <b>b</b> is a 1D dataset, the sum product over
the last axis of <b>a</b> and <b>b</b> is returned. Where <b>a</b> is also a 1D dataset, a zero-rank dataset
is returned. If <b>b</b> is 2D or higher, its second-to-last axis is used</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>b</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>dot product</dd>
</dl>
</li>
</ul>
<a name="outerProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>outerProduct</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.217">outerProduct</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b)</pre>
<div class="block">Calculate the outer product of two datasets</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>b</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>outer product</dd>
</dl>
</li>
</ul>
<a name="crossProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>crossProduct</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.255">crossProduct</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b)</pre>
<div class="block">Calculate the cross product of two datasets. Datasets must be broadcastable and
possess last dimensions of length 2 or 3</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>b</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>cross product</dd>
</dl>
</li>
</ul>
<a name="crossProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>crossProduct</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.270">crossProduct</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b,
int&nbsp;axisA,
int&nbsp;axisB,
int&nbsp;axisC)</pre>
<div class="block">Calculate the cross product of two datasets. Datasets must be broadcastable and
possess dimensions of length 2 or 3. The axis parameters can be negative to indicate
dimensions from the end of their shapes</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>b</code> - </dd>
<dd><code>axisA</code> - dimension to be used a vector (must have length of 2 or 3)</dd>
<dd><code>axisB</code> - dimension to be used a vector (must have length of 2 or 3)</dd>
<dd><code>axisC</code> - dimension to assign as cross-product</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>cross product</dd>
</dl>
</li>
</ul>
<a name="power-org.eclipse.january.dataset.Dataset-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>power</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.495">power</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
int&nbsp;n)</pre>
<div class="block">Raise dataset to given power by matrix multiplication</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>n</code> - power</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>a ** n</code></dd>
</dl>
</li>
</ul>
<a name="kroneckerProduct-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>kroneckerProduct</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.515">kroneckerProduct</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;b)</pre>
<div class="block">Create the Kronecker product as defined by
<code>kron[k0,...,kN] = a[i0,...,iN] * b[j0,...,jN]</code>
where <code>kn = sn * in + jn</code> for <code>n = 0...N</code> and <code>s</code> is shape of <code>b</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>b</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Kronecker product of a and b</dd>
</dl>
</li>
</ul>
<a name="trace-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trace</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.611">trace</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<div class="block">Calculate trace of dataset - sum of values over 1st axis and 2nd axis</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>trace of dataset</dd>
</dl>
</li>
</ul>
<a name="trace-org.eclipse.january.dataset.Dataset-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trace</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.623">trace</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
int&nbsp;offset,
int&nbsp;axis1,
int&nbsp;axis2)</pre>
<div class="block">Calculate trace of dataset - sum of values over axis1 and axis2 where axis2 is offset</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>offset</code> - </dd>
<dd><code>axis1</code> - </dd>
<dd><code>axis2</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>trace of dataset</dd>
</dl>
</li>
</ul>
<a name="norm-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>norm</h4>
<pre>public static&nbsp;double&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.744">norm</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>norm of dataset</dd>
</dl>
</li>
</ul>
<a name="norm-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.LinearAlgebra.NormOrder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>norm</h4>
<pre>public static&nbsp;double&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.753">norm</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/LinearAlgebra.NormOrder.html" title="enum in org.eclipse.january.dataset">LinearAlgebra.NormOrder</a>&nbsp;order)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>order</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>norm of dataset</dd>
</dl>
</li>
</ul>
<a name="norm-org.eclipse.january.dataset.Dataset-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>norm</h4>
<pre>public static&nbsp;double&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.859">norm</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
double&nbsp;p)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>p</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>p-norm of dataset</dd>
</dl>
</li>
</ul>
<a name="calcSingularValues-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcSingularValues</h4>
<pre>public static&nbsp;double[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.977">calcSingularValues</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>array of singular values</dd>
</dl>
</li>
</ul>
<a name="calcSingularValueDecomposition-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcSingularValueDecomposition</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.988">calcSingularValueDecomposition</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<div class="block">Calculate singular value decomposition <code>A = U S V^T</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>array of U - orthogonal matrix, s - singular values vector, V - orthogonal matrix</dd>
</dl>
</li>
</ul>
<a name="calcPseudoInverse-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcPseudoInverse</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.999">calcPseudoInverse</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<div class="block">Calculate (Moore-Penrose) pseudo-inverse</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>pseudo-inverse</dd>
</dl>
</li>
</ul>
<a name="calcMatrixRank-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcMatrixRank</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1009">calcMatrixRank</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<div class="block">Calculate matrix rank by singular value decomposition method</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>effective numerical rank of matrix</dd>
</dl>
</li>
</ul>
<a name="calcConditionNumber-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcConditionNumber</h4>
<pre>public static&nbsp;double&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1019">calcConditionNumber</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<div class="block">Calculate condition number of matrix by singular value decomposition method</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>condition number</dd>
</dl>
</li>
</ul>
<a name="calcDeterminant-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcDeterminant</h4>
<pre>public static&nbsp;double&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1028">calcDeterminant</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>determinant of dataset</dd>
</dl>
</li>
</ul>
<a name="calcEigenvalues-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcEigenvalues</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1037">calcEigenvalues</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>dataset of eigenvalues (can be double or complex double)</dd>
</dl>
</li>
</ul>
<a name="calcEigenDecomposition-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcEigenDecomposition</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1053">calcEigenDecomposition</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<div class="block">Calculate eigen-decomposition <code>A = V D V^T</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>array of D eigenvalues (can be double or complex double) and V eigenvectors</dd>
</dl>
</li>
</ul>
<a name="calcQRDecomposition-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcQRDecomposition</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1073">calcQRDecomposition</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<div class="block">Calculate QR decomposition <code>A = Q R</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>array of Q and R</dd>
</dl>
</li>
</ul>
<a name="calcLUDecomposition-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcLUDecomposition</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1083">calcLUDecomposition</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<div class="block">Calculate LU decomposition <code>A = P^-1 L U</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>array of L, U and P</dd>
</dl>
</li>
</ul>
<a name="calcInverse-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcInverse</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1094">calcInverse</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<div class="block">Calculate inverse of square dataset</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>inverse</dd>
</dl>
</li>
</ul>
<a name="solve-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>solve</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1105">solve</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;v)</pre>
<div class="block">Solve linear matrix equation <code>A x = v</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>v</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>x</dd>
</dl>
</li>
</ul>
<a name="solveSVD-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>solveSVD</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1122">solveSVD</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;v)</pre>
<div class="block">Solve least squares matrix equation <code>A x = v</code> by SVD</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>v</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>x</dd>
</dl>
</li>
</ul>
<a name="calcCholeskyDecomposition-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcCholeskyDecomposition</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1137">calcCholeskyDecomposition</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<div class="block">Calculate Cholesky decomposition <code>A = L L^T</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>L</dd>
</dl>
</li>
</ul>
<a name="calcConjugateGradient-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calcConjugateGradient</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1149">calcConjugateGradient</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;v)</pre>
<div class="block">Calculation <code>A x = v</code> by conjugate gradient method with the stopping criterion being
that the estimated residual <code>r = v - A x</code> satisfies <code>||r|| &lt; ||v||</code> with maximum of 100 iterations</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>v</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>value of <code>A^-1 v</code> by conjugate gradient method</dd>
</dl>
</li>
</ul>
<a name="calcConjugateGradient-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-int-double-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>calcConjugateGradient</h4>
<pre>public static&nbsp;<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/LinearAlgebra.html#line.1162">calcConjugateGradient</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a,
<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;v,
int&nbsp;maxIterations,
double&nbsp;delta)</pre>
<div class="block">Calculation <code>A x = v</code> by conjugate gradient method with the stopping criterion being
that the estimated residual <code>r = v - A x</code> satisfies <code>||r|| &lt; delta ||v||</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - </dd>
<dd><code>v</code> - </dd>
<dd><code>maxIterations</code> - </dd>
<dd><code>delta</code> - parameter used by stopping criterion</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>value of <code>A^-1 v</code> by conjugate gradient method</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="class-use/LinearAlgebra.html">Use</a></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><a href="../../../../org/eclipse/january/dataset/LazyWriteableDataset.html" title="class in org.eclipse.january.dataset"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/eclipse/january/dataset/LinearAlgebra.NormOrder.html" title="enum in org.eclipse.january.dataset"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/january/dataset/LinearAlgebra.html" target="_top">Frames</a></li>
<li><a href="LinearAlgebra.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2014&#x2013;2019 <a href="http://www.eclipse.org/">Eclipse Foundation</a>. All rights reserved.</small></p>
</body>
</html>