<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":kmath-tensors:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword">abstract </span><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="lu.html"><spanclass="token function">lu</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">structureND<spanclass="token operator">: </span><ahref="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="index.html">T</a><spanclass="token operator">></span></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-triple/index.html">Triple</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="index.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">, </span><spanclass="token keyword"></span><ahref="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="index.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">, </span><spanclass="token keyword"></span><ahref="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="index.html">T</a><spanclass="token operator">></span><spanclass="token operator">></span><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-tensors/src/commonMain/kotlin/space/kscience/kmath/tensors/api/LinearOpsTensorAlgebra.kt#L78">source</a>)</span></span></div><pclass="paragraph">LUP decomposition</p><pclass="paragraph">Computes the LUP decomposition of a matrix or a batch of matrices. Given a tensor <codeclass="lang-kotlin">input</code>, return tensors (P, L, U) satisfying <codeclass="lang-kotlin">P dot input = L dot U</code>, with <codeclass="lang-kotlin">P</code> being a permutation matrix or batch of matrices, <codeclass="lang-kotlin">L</code> being a lower triangular matrix or batch of matrices, <codeclass="lang-kotlin">U</code> being an upper triangular matrix or batch of matrices.</p><spanclass="kdoc-tag"><h4class="">Receiver</h4><pclass="paragraph">the <codeclass="lang-kotlin">input</code>.</p></span><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">triple of P, L and U tensors</p></span></div></div>