<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"></span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="sum-with.html">T</a><spanclass="token operator">></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="sum-with.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">.</span><ahref="sum-with.html"><spanclass="token function">sumWith</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">group<spanclass="token operator">: </span><ahref="-group/index.html">Group</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="sum-with.html">T</a><spanclass="token operator">></span></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="sum-with.html">T</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-core/src/commonMain/kotlin/space/kscience/kmath/operations/algebraExtensions.kt#L93">source</a>)</span></span></div><pclass="paragraph">Returns the sum of all elements in the iterable in provided space.</p><spanclass="kdoc-tag"><h4class="">Receiver</h4><pclass="paragraph">the collection to sum up.</p></span><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">the sum.</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>group</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">the algebra that provides addition.</p></div></div></div></div></div><hr><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="sum-with.html">T</a><spanclass="token operator">></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/-sequence/index.html">Sequence</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="sum-with.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">.</span><ahref="sum-with.html"><spanclass="token function">sumWith</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">group<spanclass="token operator">: </span><ahref="-group/index.html">Group</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="sum-with.html">T</a><spanclass="token operator">></span></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="sum-with.html">T</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-core/src/commonMain/kotlin/space/kscience/kmath/operations/algebraExtensions.kt#L113">source</a>)</span></span></div><pclass="paragraph">Returns the sum of all elements in the sequence in provided space.</p><spanclass="kdoc-tag"><h4class="">Receiver</h4><pclass="paragraph">the collection to sum up.</p></span><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">the sum.</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>group</span></span></