<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":kmath-core:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">override </span><spanclass="token keyword">fun </span><ahref="unary-operation-function.html"><spanclass="token function">unaryOperationFunction</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">operation<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><spanclass="token punctuation">(</span><spanclass="token keyword"></span>arg<spanclass="token operator">: </span><ahref="../-m-s-t/index.html">MST</a><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><spanclass="token keyword"></span><ahref="../-m-s-t/-unary/index.html">MST.Unary</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-core/src/commonMain/kotlin/space/kscience/kmath/expressions/MstAlgebra.kt#L158">source</a>)</span></span></div><pclass="paragraph">Dynamically dispatches a unary operation with the certain name.</p><pclass="paragraph">Implementations must fulfil the following requirements:</p><ol><li><pclass="paragraph">If operation is not defined in the structure, then the function throws <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-state-exception/index.html">kotlin.IllegalStateException</a>.</p></li><li><pclass="paragraph">Equivalence to <ahref="../../../kmath-core/space.kscience.kmath.expressions/-mst-extended-field/unary-operation.html">unaryOperation</a>: for any <codeclass="lang-kotlin">a</code> and <codeclass="lang-kotlin">b</code>, <codeclass="lang-kotlin">unaryOperationFunction(a)(b) == unaryOperation(a, b)</code>.</p></li></ol><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">an operation.</p></span><h4class="">Parameters</h4><divclass="table"><divclass="table-row"data-filterable-current=":kmath-core:dokkaHtmlPartial/commonMain"data-filterable-set=":kmath-core:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span><span>operation</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">the name of operation.</p></div></div></div></div></div></div></div>