<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">interface <ahref="index.html">TensorPartialDivisionAlgebra</a><<ahref="index.html">T</a>> : <ahref="../-tensor-algebra/index.html">TensorAlgebra</a><<ahref="index.html">T</a>><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">Algebra over a field with partial division on <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a>. For more information: https://proofwiki.org/wiki/Definition:Division_Algebra</p></div></div>
<divclass="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="Parameters"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-tensors:dokkaHtmlPartial/commonMain"><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":kmath-tensors:dokkaHtmlPartial/commonMain"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">T</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">the type of items closed under division in the tensors.</p></div></div></div></div></div></div></div></div></div>
<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">abstract fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/arg-max.html">argMax</a>(dim: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, keepDim: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="43754055%2FFunctions%2F-1345790395"anchor-label="argMax"id="43754055%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="43754055%2FFunctions%2F-1345790395"anchor-label="argMax"id="43754055%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Returns the index of maximum value of each row of the input tensor in the given dimension <ahref="../-tensor-algebra/arg-max.html">dim</a>.</div></div>
<adata-name="-1962407704%2FFunctions%2F-1345790395"anchor-label="diagonalEmbedding"id="-1962407704%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-1962407704%2FFunctions%2F-1345790395"anchor-label="diagonalEmbedding"id="-1962407704%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Creates a tensor whose diagonals of certain 2D planes (specified by <ahref="../-tensor-algebra/diagonal-embedding.html">dim1</a> and <ahref="../-tensor-algebra/diagonal-embedding.html">dim2</a>) are filled by <ahref="../-tensor-algebra/diagonal-embedding.html">diagonalEntries</a>.</div></div>
<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">abstract operator fun <ahref="index.html">T</a>.<ahref="div.html">div</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="-30233224%2FFunctions%2F-1345790395"anchor-label="div"id="-30233224%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-30233224%2FFunctions%2F-1345790395"anchor-label="div"id="-30233224%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="div.html">other</a> is divided by this value.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="div.html">div</a>(value: <ahref="index.html">T</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="-539749384%2FFunctions%2F-1345790395"anchor-label="div"id="-539749384%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-539749384%2FFunctions%2F-1345790395"anchor-label="div"id="-539749384%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Divide by the scalar <ahref="div.html">value</a> each element of this tensor returns a new resulting tensor.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="div.html">div</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="-359717157%2FFunctions%2F-1345790395"anchor-label="div"id="-359717157%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-359717157%2FFunctions%2F-1345790395"anchor-label="div"id="-359717157%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="div.html">other</a> is divided by each element of this tensor.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="div-assign.html">divAssign</a>(value: <ahref="index.html">T</a>)<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></div></div>
</div>
<adata-name="-1317317367%2FFunctions%2F-1345790395"anchor-label="divAssign"id="-1317317367%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-1317317367%2FFunctions%2F-1345790395"anchor-label="divAssign"id="-1317317367%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Divides by the scalar <ahref="div-assign.html">value</a> each element of this tensor.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="div-assign.html">divAssign</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>)<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></div></div>
</div>
<adata-name="868602476%2FFunctions%2F-1345790395"anchor-label="divAssign"id="868602476%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="868602476%2FFunctions%2F-1345790395"anchor-label="divAssign"id="868602476%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of this tensor is divided by each element of the <ahref="div-assign.html">other</a> tensor.</div></div>
<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">abstract infix fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/dot.html">dot</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="1622973833%2FFunctions%2F-1345790395"anchor-label="dot"id="1622973833%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="1622973833%2FFunctions%2F-1345790395"anchor-label="dot"id="1622973833%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Matrix product of two tensors.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/get.html">get</a>(i: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="-2139809213%2FFunctions%2F-1345790395"anchor-label="get"id="-2139809213%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-2139809213%2FFunctions%2F-1345790395"anchor-label="get"id="-2139809213%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Returns the tensor at index i For more information: https://pytorch.org/cppdocs/notes/tensor_indexing.</div></div>
<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">abstract fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/max.html">max</a>(): <ahref="index.html">T</a><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></div></div>
</div>
<adata-name="62321139%2FFunctions%2F-1345790395"anchor-label="max"id="62321139%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="62321139%2FFunctions%2F-1345790395"anchor-label="max"id="62321139%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Returns the maximum value of all elements in the input tensor.</div></div>
<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">abstract fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/max.html">max</a>(dim: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, keepDim: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="973111187%2FFunctions%2F-1345790395"anchor-label="max"id="973111187%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="973111187%2FFunctions%2F-1345790395"anchor-label="max"id="973111187%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Returns the maximum value of each row of the input tensor in the given dimension <ahref="../-tensor-algebra/max.html">dim</a>.</div></div>
<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">abstract fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/min.html">min</a>(dim: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, keepDim: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="1383380325%2FFunctions%2F-1345790395"anchor-label="min"id="1383380325%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="1383380325%2FFunctions%2F-1345790395"anchor-label="min"id="1383380325%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Returns the minimum value of each row of the input tensor in the given dimension <ahref="../-tensor-algebra/min.html">dim</a>.</div></div>
<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">abstract operator fun <ahref="index.html">T</a>.<ahref="../-tensor-algebra/minus.html">minus</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="1212778591%2FFunctions%2F-1345790395"anchor-label="minus"id="1212778591%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="1212778591%2FFunctions%2F-1345790395"anchor-label="minus"id="1212778591%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="../-tensor-algebra/minus.html">other</a> is subtracted from this value.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/minus.html">minus</a>(value: <ahref="index.html">T</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="703262431%2FFunctions%2F-1345790395"anchor-label="minus"id="703262431%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="703262431%2FFunctions%2F-1345790395"anchor-label="minus"id="703262431%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Subtracts the scalar <ahref="../-tensor-algebra/minus.html">value</a> from each element of this tensor and returns a new resulting tensor.</div></div>
<adata-name="1482064706%2FFunctions%2F-1345790395"anchor-label="minus"id="1482064706%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="1482064706%2FFunctions%2F-1345790395"anchor-label="minus"id="1482064706%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="../-tensor-algebra/minus.html">other</a> is subtracted from each element of this tensor.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/minus-assign.html">minusAssign</a>(value: <ahref="index.html">T</a>)<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></div></div>
</div>
<adata-name="1564878512%2FFunctions%2F-1345790395"anchor-label="minusAssign"id="1564878512%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="1564878512%2FFunctions%2F-1345790395"anchor-label="minusAssign"id="1564878512%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Subtracts the scalar <ahref="../-tensor-algebra/minus-assign.html">value</a> from each element of this tensor.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/minus-assign.html">minusAssign</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>)<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></div></div>
</div>
<adata-name="-163969645%2FFunctions%2F-1345790395"anchor-label="minusAssign"id="-163969645%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-163969645%2FFunctions%2F-1345790395"anchor-label="minusAssign"id="-163969645%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="../-tensor-algebra/minus-assign.html">other</a> is subtracted from each element of this tensor.</div></div>
<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">abstract operator fun <ahref="index.html">T</a>.<ahref="../-tensor-algebra/plus.html">plus</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="-2132025165%2FFunctions%2F-1345790395"anchor-label="plus"id="-2132025165%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-2132025165%2FFunctions%2F-1345790395"anchor-label="plus"id="-2132025165%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="../-tensor-algebra/plus.html">other</a> is added to this value.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/plus.html">plus</a>(value: <ahref="index.html">T</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="1653425971%2FFunctions%2F-1345790395"anchor-label="plus"id="1653425971%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="1653425971%2FFunctions%2F-1345790395"anchor-label="plus"id="1653425971%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Adds the scalar <ahref="../-tensor-algebra/plus.html">value</a> to each element of this tensor and returns a new resulting tensor.</div></div>
<adata-name="-1516982890%2FFunctions%2F-1345790395"anchor-label="plus"id="-1516982890%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-1516982890%2FFunctions%2F-1345790395"anchor-label="plus"id="-1516982890%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="../-tensor-algebra/plus.html">other</a> is added to each element of this tensor.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/plus-assign.html">plusAssign</a>(value: <ahref="index.html">T</a>)<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></div></div>
</div>
<adata-name="-1806569468%2FFunctions%2F-1345790395"anchor-label="plusAssign"id="-1806569468%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-1806569468%2FFunctions%2F-1345790395"anchor-label="plusAssign"id="-1806569468%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Adds the scalar <ahref="../-tensor-algebra/plus-assign.html">value</a> to each element of this tensor.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/plus-assign.html">plusAssign</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>)<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></div></div>
</div>
<adata-name="-29613849%2FFunctions%2F-1345790395"anchor-label="plusAssign"id="-29613849%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-29613849%2FFunctions%2F-1345790395"anchor-label="plusAssign"id="-29613849%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="../-tensor-algebra/plus-assign.html">other</a> is added to each element of this tensor.</div></div>
<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">abstract fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/sum.html">sum</a>(dim: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, keepDim: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="1531828236%2FFunctions%2F-1345790395"anchor-label="sum"id="1531828236%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="1531828236%2FFunctions%2F-1345790395"anchor-label="sum"id="1531828236%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Returns the sum of each row of the input tensor in the given dimension <ahref="../-tensor-algebra/sum.html">dim</a>.</div></div>
<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">abstract operator fun <ahref="index.html">T</a>.<ahref="../-tensor-algebra/times.html">times</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="576377289%2FFunctions%2F-1345790395"anchor-label="times"id="576377289%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="576377289%2FFunctions%2F-1345790395"anchor-label="times"id="576377289%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="../-tensor-algebra/times.html">other</a> is multiplied by this value.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/times.html">times</a>(value: <ahref="index.html">T</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="66861129%2FFunctions%2F-1345790395"anchor-label="times"id="66861129%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="66861129%2FFunctions%2F-1345790395"anchor-label="times"id="66861129%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Multiplies the scalar <ahref="../-tensor-algebra/times.html">value</a> by each element of this tensor and returns a new resulting tensor.</div></div>
<adata-name="-85011028%2FFunctions%2F-1345790395"anchor-label="times"id="-85011028%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-85011028%2FFunctions%2F-1345790395"anchor-label="times"id="-85011028%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="../-tensor-algebra/times.html">other</a> is multiplied by each element of this tensor.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/times-assign.html">timesAssign</a>(value: <ahref="index.html">T</a>)<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></div></div>
</div>
<adata-name="886126746%2FFunctions%2F-1345790395"anchor-label="timesAssign"id="886126746%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="886126746%2FFunctions%2F-1345790395"anchor-label="timesAssign"id="886126746%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Multiplies the scalar <ahref="../-tensor-algebra/times-assign.html">value</a> by each element of this tensor.</div></div>
<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">abstract operator fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/times-assign.html">timesAssign</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>)<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></div></div>
</div>
<adata-name="-316579715%2FFunctions%2F-1345790395"anchor-label="timesAssign"id="-316579715%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-316579715%2FFunctions%2F-1345790395"anchor-label="timesAssign"id="-316579715%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Each element of the tensor <ahref="../-tensor-algebra/times-assign.html">other</a> is multiplied by each element of this tensor.</div></div>
<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">abstract fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/transpose.html">transpose</a>(i: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = -2, j: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = -1): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="-1392088073%2FFunctions%2F-1345790395"anchor-label="transpose"id="-1392088073%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-1392088073%2FFunctions%2F-1345790395"anchor-label="transpose"id="-1392088073%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Returns a tensor that is a transposed version of this tensor.</div></div>
<adata-name="-1916601408%2FFunctions%2F-1345790395"anchor-label="value"id="-1916601408%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-1916601408%2FFunctions%2F-1345790395"anchor-label="value"id="-1916601408%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Returns a single tensor value of unit dimension.</div></div>
<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">abstract fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/value-or-null.html">valueOrNull</a>(): <ahref="index.html">T</a>?<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></div></div>
</div>
<adata-name="2121541866%2FFunctions%2F-1345790395"anchor-label="valueOrNull"id="2121541866%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="2121541866%2FFunctions%2F-1345790395"anchor-label="valueOrNull"id="2121541866%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Returns a single tensor value of unit dimension if tensor shape equals to 1.</div></div>
<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">abstract fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/view.html">view</a>(shape: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html">IntArray</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="-1707879275%2FFunctions%2F-1345790395"anchor-label="view"id="-1707879275%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-1707879275%2FFunctions%2F-1345790395"anchor-label="view"id="-1707879275%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>Returns a new tensor with the same data as the self tensor but of a different shape.</div></div>
<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">abstract fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="../-tensor-algebra/view-as.html">viewAs</a>(other: <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><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></div></div>
</div>
<adata-name="1406606361%2FFunctions%2F-1345790395"anchor-label="viewAs"id="1406606361%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="1406606361%2FFunctions%2F-1345790395"anchor-label="viewAs"id="1406606361%2FFunctions%2F-1345790395"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"></a>View this tensor as the same size as <ahref="../-tensor-algebra/view-as.html">other</a>.</div></div>