<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-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="../../../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><ahref="lu.html"><spanclass="token function">lu</span></a><spanclass="token punctuation">(</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="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</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="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</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="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="index.html">T</a><spanclass="token operator">></span><spanclass="token operator">></span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></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><h4class="">Receiver</h4><pclass="paragraph">the <codeclass="lang-kotlin">input</code>.</p><h4class="">Return</h4><pclass="paragraph">triple of P, L and U tensors</p></div></div>