<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">TensorAlgebra</a><<ahref="index.html">T</a>> : <ahref="../../../kmath-core/space.kscience.kmath.operations/-algebra/index.html">Algebra</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><pclass="paragraph">Algebra over a ring on <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a>. For more information: https://proofwiki.org/wiki/Definition:Algebra_over_Ring</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 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="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="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="diagonal-embedding.html">dim1</a> and <ahref="diagonal-embedding.html">dim2</a>) are filled by <ahref="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 infix fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="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="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="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="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="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="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="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="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="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="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="minus.html">value</a> from each element of this tensor and 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="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="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="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="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="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="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="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="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="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="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="plus.html">value</a> to each element of this tensor and 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="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="-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="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="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="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="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="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="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="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="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="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="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="times.html">value</a> by each element of this tensor and 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="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="-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="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="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="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="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="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="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="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="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="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="view-as.html">other</a>.</div></div>