blob: e3b2e48491636c0de552f3181279bd3762314726 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(72949126, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/72949126" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<script type='text/javascript'>
window.__lo_site_id = 284467;
(function() {
var wa = document.createElement('script'); wa.type = 'text/javascript'; wa.async = true;
wa.src = 'https://d10lpsik1i8c69.cloudfront.net/w.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wa, s);
})();
</script>
<link rel="canonical" href="https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/ml/math/primitives/vector/Vector.html" />
<!-- Generated by javadoc (1.8.0_261) on Wed Dec 09 14:33:11 MSK 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Vector (Ignite 2.9.1)</title>
<meta name="date" content="2020-12-09">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
<link rel='shortcut icon' href='https://ignite.apache.org/favicon.ico'/>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61232409-1', 'auto');
ga('send', 'pageview');
</script></head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Vector (Ignite 2.9.1)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":18,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":18,"i28":6,"i29":6,"i30":6,"i31":6,"i32":6,"i33":6,"i34":6,"i35":6,"i36":6,"i37":6,"i38":6,"i39":6,"i40":6,"i41":6,"i42":6,"i43":6,"i44":6,"i45":6,"i46":6,"i47":6,"i48":6,"i49":6,"i50":6,"i51":6,"i52":6,"i53":6,"i54":6,"i55":6,"i56":6,"i57":6,"i58":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Vector.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/NamedVector.html" title="interface in org.apache.ignite.ml.math.primitives.vector"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/ignite/ml/math/primitives/vector/Vector.html" target="_top">Frames</a></li>
<li><a href="Vector.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.ignite.ml.math.primitives.vector</div>
<h2 title="Interface Vector" class="title">Interface Vector</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><a href="../../../../../../../org/apache/ignite/ml/math/Destroyable.html" title="interface in org.apache.ignite.ml.math">Destroyable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a>, <a href="../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html" title="interface in org.apache.ignite.ml.math">MetaAttributes</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html" title="interface in org.apache.ignite.ml.math">StorageOpsMetrics</a></dd>
</dl>
<dl>
<dt>All Known Subinterfaces:</dt>
<dd><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/NamedVector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">NamedVector</a></dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/AbstractVector.html" title="class in org.apache.ignite.ml.math.primitives.vector">AbstractVector</a>, <a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingNamedVector.html" title="class in org.apache.ignite.ml.math.primitives.vector.impl">DelegatingNamedVector</a>, <a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingVector.html" title="class in org.apache.ignite.ml.math.primitives.vector.impl">DelegatingVector</a>, <a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DenseVector.html" title="class in org.apache.ignite.ml.math.primitives.vector.impl">DenseVector</a>, <a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/SparseVector.html" title="class in org.apache.ignite.ml.math.primitives.vector.impl">SparseVector</a>, <a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/VectorizedViewMatrix.html" title="class in org.apache.ignite.ml.math.primitives.vector.impl">VectorizedViewMatrix</a>, <a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/VectorView.html" title="class in org.apache.ignite.ml.math.primitives.vector.impl">VectorView</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="typeNameLabel">Vector</span>
extends <a href="../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html" title="interface in org.apache.ignite.ml.math">MetaAttributes</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a>, <a href="../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html" title="interface in org.apache.ignite.ml.math">StorageOpsMetrics</a>, <a href="../../../../../../../org/apache/ignite/ml/math/Destroyable.html" title="interface in org.apache.ignite.ml.math">Destroyable</a></pre>
<div class="block">A vector interface.
Based on its flavor it can have vastly different implementations tailored for
for different types of data (e.g. dense vs. sparse), different sizes of data or different operation
optimizations.
Note also that not all operations can be supported by all underlying implementations. If an operation is not
supported a <a href="../../../../../../../org/apache/ignite/ml/math/exceptions/UnsupportedOperationException.html" title="class in org.apache.ignite.ml.math.exceptions"><code>UnsupportedOperationException</code></a> is thrown. This exception can also be thrown in partial cases
where an operation is unsupported only in special cases, e.g. where a given operation cannot be deterministically
completed in polynomial time.
Based on ideas from <a href="http://mahout.apache.org/">Apache Mahout</a>.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a></span></code>
<div class="block">Holder for vector's element.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t5" class="tableTab"><span><a href="javascript:show(16);">Default Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a><span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#all--">all</a></span>()</code>
<div class="block">Gets iterator over all elements in this vector.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Spliterator.html?is-external=true" title="class or interface in java.util">Spliterator</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#allSpliterator--">allSpliterator</a></span>()</code>
<div class="block">Gets spliterator for all values in this vector.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>default double[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#asArray--">asArray</a></span>()</code>
<div class="block">Returns array of doubles corresponds to vector components.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#assign-double-">assign</a></span>(double&nbsp;val)</code>
<div class="block">Assigns given value to all elements of this vector.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#assign-double:A-">assign</a></span>(double[]&nbsp;vals)</code>
<div class="block">Assigns values from given array to this vector.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#assign-java.util.function.IntToDoubleFunction-">assign</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/IntToDoubleFunction.html?is-external=true" title="class or interface in java.util.function">IntToDoubleFunction</a>&nbsp;fun)</code>
<div class="block">Assigns each vector element to the value generated by given function.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#assign-org.apache.ignite.ml.math.primitives.vector.Vector-">assign</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</code>
<div class="block">Copies values from the argument vector to this one.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#compute-int-org.apache.ignite.ml.math.functions.IgniteIntDoubleToDoubleBiFunction-">compute</a></span>(int&nbsp;i,
<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteIntDoubleToDoubleBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteIntDoubleToDoubleBiFunction</a>&nbsp;f)</code>
<div class="block">Replace vector entry with value oldVal at i with result of computing f(i, oldVal).</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#copy--">copy</a></span>()</code>
<div class="block">Creates new copy of this vector.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#copyOfRange-int-int-">copyOfRange</a></span>(int&nbsp;from,
int&nbsp;to)</code>
<div class="block">Copies the specified range of the vector into a new vector.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/matrix/Matrix.html" title="interface in org.apache.ignite.ml.math.primitives.matrix">Matrix</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#cross-org.apache.ignite.ml.math.primitives.vector.Vector-">cross</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</code>
<div class="block">Gets the cross product of this vector and the other vector.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#divide-double-">divide</a></span>(double&nbsp;x)</code>
<div class="block">Creates new vector containing values from this vector divided by the argument.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#dot-org.apache.ignite.ml.math.primitives.vector.Vector-">dot</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</code>
<div class="block">Gets dot product of two vectors.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><span class='angle_bracket'>&lt;</span>T<span class='angle_bracket'>&gt;</span>&nbsp;T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#foldMap-org.apache.ignite.ml.math.functions.IgniteBiFunction-org.apache.ignite.ml.math.functions.IgniteDoubleFunction-T-">foldMap</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteBiFunction</a><span class='angle_bracket'>&lt;</span>T,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,T<span class='angle_bracket'>&gt;</span>&nbsp;foldFun,
<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteDoubleFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteDoubleFunction</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;mapFun,
T&nbsp;zeroVal)</code>
<div class="block">Folds this vector into a single value.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><span class='angle_bracket'>&lt;</span>T<span class='angle_bracket'>&gt;</span>&nbsp;T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#foldMap-org.apache.ignite.ml.math.primitives.vector.Vector-org.apache.ignite.ml.math.functions.IgniteBiFunction-org.apache.ignite.ml.math.functions.IgniteBiFunction-T-">foldMap</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec,
<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteBiFunction</a><span class='angle_bracket'>&lt;</span>T,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,T<span class='angle_bracket'>&gt;</span>&nbsp;foldFun,
<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteBiFunction</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;combFun,
T&nbsp;zeroVal)</code>
<div class="block">Combines & maps two vector and folds them into a single value.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#get-int-">get</a></span>(int&nbsp;idx)</code>
<div class="block">Gets the value at specified index.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getDistanceSquared-org.apache.ignite.ml.math.primitives.vector.Vector-">getDistanceSquared</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</code>
<div class="block">Get the square of the distance between this vector and the argument vector.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getElement-int-">getElement</a></span>(int&nbsp;idx)</code>
<div class="block">Gets element at the given index.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getLengthSquared--">getLengthSquared</a></span>()</code>
<div class="block">Gets the sum of squares of all elements in this vector.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><span class='angle_bracket'>&lt;</span>T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span><br>T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getRaw-int-">getRaw</a></span>(int&nbsp;idx)</code>
<div class="block">Gets the value at specified index.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><span class='angle_bracket'>&lt;</span>T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span><br>T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getRawX-int-">getRawX</a></span>(int&nbsp;idx)</code>
<div class="block">Gets the value at specified index without checking for index boundaries.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/VectorStorage.html" title="interface in org.apache.ignite.ml.math.primitives.vector">VectorStorage</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getStorage--">getStorage</a></span>()</code>
<div class="block">Gets vector storage model.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getX-int-">getX</a></span>(int&nbsp;idx)</code>
<div class="block">Gets the value at specified index without checking for index boundaries.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/lang/IgniteUuid.html" title="class in org.apache.ignite.lang">IgniteUuid</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#guid--">guid</a></span>()</code>
<div class="block">Auto-generated globally unique vector ID.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#increment-int-double-">increment</a></span>(int&nbsp;idx,
double&nbsp;val)</code>
<div class="block">Increments value at given index.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#incrementX-int-double-">incrementX</a></span>(int&nbsp;idx,
double&nbsp;val)</code>
<div class="block">Increments value at given index without checking for index boundaries.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#kNorm-double-">kNorm</a></span>(double&nbsp;power)</code>
<div class="block">Gets the k-norm of the vector.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>default <span class='angle_bracket'>&lt;</span>L<span class='angle_bracket'>&gt;</span>&nbsp;<a href="../../../../../../../org/apache/ignite/ml/structures/LabeledVector.html" title="class in org.apache.ignite.ml.structures">LabeledVector</a><span class='angle_bracket'>&lt;</span>L<span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#labeled-L-">labeled</a></span>(L&nbsp;lbl)</code>
<div class="block">Creates <a href="../../../../../../../org/apache/ignite/ml/structures/LabeledVector.html" title="class in org.apache.ignite.ml.structures"><code>LabeledVector</code></a> instance.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#like-int-">like</a></span>(int&nbsp;crd)</code>
<div class="block">Creates new empty vector of the same underlying class but of different cardinality.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/matrix/Matrix.html" title="interface in org.apache.ignite.ml.math.primitives.matrix">Matrix</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#likeMatrix-int-int-">likeMatrix</a></span>(int&nbsp;rows,
int&nbsp;cols)</code>
<div class="block">Creates new matrix of compatible flavor with given size.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#logNormalize--">logNormalize</a></span>()</code>
<div class="block">Creates new vector containing the <code>log(1 + entry) / L_2 norm</code> values of this vector.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#logNormalize-double-">logNormalize</a></span>(double&nbsp;power)</code>
<div class="block">Creates new vector with a normalized value calculated as <code>log_power(1 + entry) / L_power norm</code>.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#map-org.apache.ignite.ml.math.functions.IgniteBiFunction-double-">map</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteBiFunction</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;fun,
double&nbsp;y)</code>
<div class="block">Maps all elements of this vector by applying given function to each element with a constant
second parameter <code>y</code>.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#map-org.apache.ignite.ml.math.functions.IgniteDoubleFunction-">map</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteDoubleFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteDoubleFunction</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;fun)</code>
<div class="block">Maps all values in this vector through a given function.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#map-org.apache.ignite.ml.math.primitives.vector.Vector-org.apache.ignite.ml.math.functions.IgniteBiFunction-">map</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec,
<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteBiFunction</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;fun)</code>
<div class="block">Maps all values in this vector through a given function.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#maxElement--">maxElement</a></span>()</code>
<div class="block">Gets maximum element in this vector.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#maxValue--">maxValue</a></span>()</code>
<div class="block">Gets maximum value in this vector.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#minElement--">minElement</a></span>()</code>
<div class="block">Gets minimal element in this vector.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#minus-org.apache.ignite.ml.math.primitives.vector.Vector-">minus</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</code>
<div class="block">Creates new vector containing element by element difference between this vector and the argument one.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#minValue--">minValue</a></span>()</code>
<div class="block">Gets minimal value in this vector.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#nonZeroElements--">nonZeroElements</a></span>()</code>
<div class="block">Gets number of non-zero elements in this vector.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a><span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#nonZeroes--">nonZeroes</a></span>()</code>
<div class="block">Iterates ove all non-zero elements in this vector.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Spliterator.html?is-external=true" title="class or interface in java.util">Spliterator</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#nonZeroSpliterator--">nonZeroSpliterator</a></span>()</code>
<div class="block">Gets spliterator for all non-zero values in this vector.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#normalize--">normalize</a></span>()</code>
<div class="block">Creates new vector containing the normalized (L_2 norm) values of this vector.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#normalize-double-">normalize</a></span>(double&nbsp;power)</code>
<div class="block">Creates new vector containing the normalized (L_power norm) values of this vector.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#plus-double-">plus</a></span>(double&nbsp;x)</code>
<div class="block">Creates new vector containing sum of each element in this vector and argument.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#plus-org.apache.ignite.ml.math.primitives.vector.Vector-">plus</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</code>
<div class="block">Creates new vector containing element by element sum from both vectors.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#set-int-double-">set</a></span>(int&nbsp;idx,
double&nbsp;val)</code>
<div class="block">Sets value.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#setRaw-int-java.io.Serializable-">setRaw</a></span>(int&nbsp;idx,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>&nbsp;val)</code>
<div class="block">Sets value.</div>
</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#setRawX-int-java.io.Serializable-">setRawX</a></span>(int&nbsp;idx,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>&nbsp;val)</code>
<div class="block">Sets value without checking for index boundaries.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#setX-int-double-">setX</a></span>(int&nbsp;idx,
double&nbsp;val)</code>
<div class="block">Sets value without checking for index boundaries.</div>
</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#size--">size</a></span>()</code>
<div class="block">Gets cardinality of this vector (maximum number of the elements).</div>
</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#sort--">sort</a></span>()</code>
<div class="block">Sorts this vector in ascending order.</div>
</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#sum--">sum</a></span>()</code>
<div class="block">Gets the sum of all elements in this vector.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#times-double-">times</a></span>(double&nbsp;x)</code>
<div class="block">Gets a new vector that contains product of each element and the argument.</div>
</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#times-org.apache.ignite.ml.math.primitives.vector.Vector-">times</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</code>
<div class="block">Gets a new vector that is an element-wie product of this vector and the argument.</div>
</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/matrix/Matrix.html" title="interface in org.apache.ignite.ml.math.primitives.matrix">Matrix</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#toMatrix-boolean-">toMatrix</a></span>(boolean&nbsp;rowLike)</code>
<div class="block">Converts this vector into [N x 1] or [1 x N] matrix where N is this vector cardinality.</div>
</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/matrix/Matrix.html" title="interface in org.apache.ignite.ml.math.primitives.matrix">Matrix</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#toMatrixPlusOne-boolean-double-">toMatrixPlusOne</a></span>(boolean&nbsp;rowLike,
double&nbsp;zeroVal)</code>
<div class="block">Converts this vector into [N+1 x 1] or [1 x N+1] matrix where N is this vector cardinality</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#viewPart-int-int-">viewPart</a></span>(int&nbsp;off,
int&nbsp;len)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.ignite.ml.math.MetaAttributes">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.ignite.ml.math.<a href="../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html" title="interface in org.apache.ignite.ml.math">MetaAttributes</a></h3>
<code><a href="../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html#getAttribute-java.lang.String-">getAttribute</a>, <a href="../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html#getMetaStorage--">getMetaStorage</a>, <a href="../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html#hasAttribute-java.lang.String-">hasAttribute</a>, <a href="../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html#removeAttribute-java.lang.String-">removeAttribute</a>, <a href="../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html#setAttribute-java.lang.String-T-">setAttribute</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.io.Externalizable">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Externalizable.html?is-external=true#readExternal-java.io.ObjectInput-" title="class or interface in java.io">readExternal</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Externalizable.html?is-external=true#writeExternal-java.io.ObjectOutput-" title="class or interface in java.io">writeExternal</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.ignite.ml.math.StorageOpsMetrics">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.ignite.ml.math.<a href="../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html" title="interface in org.apache.ignite.ml.math">StorageOpsMetrics</a></h3>
<code><a href="../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html#isArrayBased--">isArrayBased</a>, <a href="../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html#isDense--">isDense</a>, <a href="../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html#isNumeric--">isNumeric</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.ignite.ml.math.Destroyable">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.ignite.ml.math.<a href="../../../../../../../org/apache/ignite/ml/math/Destroyable.html" title="interface in org.apache.ignite.ml.math">Destroyable</a></h3>
<code><a href="../../../../../../../org/apache/ignite/ml/math/Destroyable.html#destroy--">destroy</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="size--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>int&nbsp;size()</pre>
<div class="block">Gets cardinality of this vector (maximum number of the elements).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector's cardinality.</dd>
</dl>
</li>
</ul>
<a name="copy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;copy()</pre>
<div class="block">Creates new copy of this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New copy vector.</dd>
</dl>
</li>
</ul>
<a name="all--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>all</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a><span class='angle_bracket'>&gt;</span>&nbsp;all()</pre>
<div class="block">Gets iterator over all elements in this vector.
NOTE: implementation can choose to reuse <a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector"><code>Vector.Element</code></a> instance so you need to copy it
if you want to retain it outside of iteration.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Iterator.</dd>
</dl>
</li>
</ul>
<a name="nonZeroes--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nonZeroes</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><span class='angle_bracket'>&lt;</span><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a><span class='angle_bracket'>&gt;</span>&nbsp;nonZeroes()</pre>
<div class="block">Iterates ove all non-zero elements in this vector.
NOTE: implementation can choose to reuse <a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector"><code>Vector.Element</code></a> instance so you need to copy it
if you want to retain it outside of iteration.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Iterator.</dd>
</dl>
</li>
</ul>
<a name="allSpliterator--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allSpliterator</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Spliterator.html?is-external=true" title="class or interface in java.util">Spliterator</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;allSpliterator()</pre>
<div class="block">Gets spliterator for all values in this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Spliterator for all values.</dd>
</dl>
</li>
</ul>
<a name="nonZeroSpliterator--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nonZeroSpliterator</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Spliterator.html?is-external=true" title="class or interface in java.util">Spliterator</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;nonZeroSpliterator()</pre>
<div class="block">Gets spliterator for all non-zero values in this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Spliterator for all non-zero values.</dd>
</dl>
</li>
</ul>
<a name="sort--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sort</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;sort()</pre>
<div class="block">Sorts this vector in ascending order.</div>
</li>
</ul>
<a name="copyOfRange-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyOfRange</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;copyOfRange(int&nbsp;from,
int&nbsp;to)</pre>
<div class="block">Copies the specified range of the vector into a new vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - the initial index of the range to be copied, inclusive</dd>
<dd><code>to</code> - the final index of the range to be copied, exclusive.
(This index may lie outside the array.)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new vector containing the specified range from the original vector</dd>
</dl>
</li>
</ul>
<a name="getElement-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getElement</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a>&nbsp;getElement(int&nbsp;idx)</pre>
<div class="block">Gets element at the given index.
NOTE: implementation can choose to reuse <a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector"><code>Vector.Element</code></a> instance so you need to copy it
if you want to retain it outside of iteration.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Element's index.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Vector's element at the given index.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/IndexException.html" title="class in org.apache.ignite.ml.math.exceptions.math">IndexException</a></code> - Throw if index is out of bounds.</dd>
</dl>
</li>
</ul>
<a name="assign-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assign</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;assign(double&nbsp;val)</pre>
<div class="block">Assigns given value to all elements of this vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>val</code> - Value to assign.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
</dl>
</li>
</ul>
<a name="assign-double:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assign</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;assign(double[]&nbsp;vals)</pre>
<div class="block">Assigns values from given array to this vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vals</code> - Values to assign.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/CardinalityException.html" title="class in org.apache.ignite.ml.math.exceptions.math">CardinalityException</a></code> - Thrown if cardinalities mismatch.</dd>
</dl>
</li>
</ul>
<a name="assign-org.apache.ignite.ml.math.primitives.vector.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assign</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;assign(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</pre>
<div class="block">Copies values from the argument vector to this one.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vec</code> - Argument vector.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/CardinalityException.html" title="class in org.apache.ignite.ml.math.exceptions.math">CardinalityException</a></code> - Thrown if cardinality mismatch.</dd>
</dl>
</li>
</ul>
<a name="assign-java.util.function.IntToDoubleFunction-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assign</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;assign(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/IntToDoubleFunction.html?is-external=true" title="class or interface in java.util.function">IntToDoubleFunction</a>&nbsp;fun)</pre>
<div class="block">Assigns each vector element to the value generated by given function.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fun</code> - Function that takes the index and returns value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
</dl>
</li>
</ul>
<a name="map-org.apache.ignite.ml.math.functions.IgniteDoubleFunction-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>map</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;map(<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteDoubleFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteDoubleFunction</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;fun)</pre>
<div class="block">Maps all values in this vector through a given function.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fun</code> - Mapping function.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
</dl>
</li>
</ul>
<a name="map-org.apache.ignite.ml.math.primitives.vector.Vector-org.apache.ignite.ml.math.functions.IgniteBiFunction-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>map</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;map(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec,
<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteBiFunction</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;fun)</pre>
<div class="block">Maps all values in this vector through a given function.
For this vector <code>A</code>, argument vector <code>B</code> and the
function <code>F</code> this method maps every element <code>x</code> as:
<code>A(x) = F(A(x), B(x))</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vec</code> - Argument vector.</dd>
<dd><code>fun</code> - Mapping function.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This function.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/CardinalityException.html" title="class in org.apache.ignite.ml.math.exceptions.math">CardinalityException</a></code> - Thrown if cardinality mismatch.</dd>
</dl>
</li>
</ul>
<a name="map-org.apache.ignite.ml.math.functions.IgniteBiFunction-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>map</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;map(<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteBiFunction</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;fun,
double&nbsp;y)</pre>
<div class="block">Maps all elements of this vector by applying given function to each element with a constant
second parameter <code>y</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fun</code> - Mapping function.</dd>
<dd><code>y</code> - Second parameter for mapping function.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
</dl>
</li>
</ul>
<a name="divide-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>divide</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;divide(double&nbsp;x)</pre>
<div class="block">Creates new vector containing values from this vector divided by the argument.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - Division argument.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector.</dd>
</dl>
</li>
</ul>
<a name="dot-org.apache.ignite.ml.math.primitives.vector.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dot</h4>
<pre>double&nbsp;dot(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</pre>
<div class="block">Gets dot product of two vectors.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vec</code> - Argument vector.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Dot product of two vectors.</dd>
</dl>
</li>
</ul>
<a name="get-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>double&nbsp;get(int&nbsp;idx)</pre>
<div class="block">Gets the value at specified index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Vector index.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Vector value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/IndexException.html" title="class in org.apache.ignite.ml.math.exceptions.math">IndexException</a></code> - Throw if index is out of bounds.</dd>
</dl>
</li>
</ul>
<a name="getX-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getX</h4>
<pre>double&nbsp;getX(int&nbsp;idx)</pre>
<div class="block">Gets the value at specified index without checking for index boundaries.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Vector index.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Vector value.</dd>
</dl>
</li>
</ul>
<a name="getRaw-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRaw</h4>
<pre><span class='angle_bracket'>&lt;</span>T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span>&nbsp;T&nbsp;getRaw(int&nbsp;idx)</pre>
<div class="block">Gets the value at specified index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Vector index.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Vector value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/IndexException.html" title="class in org.apache.ignite.ml.math.exceptions.math">IndexException</a></code> - Throw if index is out of bounds.</dd>
</dl>
</li>
</ul>
<a name="getRawX-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRawX</h4>
<pre><span class='angle_bracket'>&lt;</span>T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a><span class='angle_bracket'>&gt;</span>&nbsp;T&nbsp;getRawX(int&nbsp;idx)</pre>
<div class="block">Gets the value at specified index without checking for index boundaries.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Vector index.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Vector value.</dd>
</dl>
</li>
</ul>
<a name="like-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>like</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;like(int&nbsp;crd)</pre>
<div class="block">Creates new empty vector of the same underlying class but of different cardinality.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>crd</code> - Cardinality for new vector.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector.</dd>
</dl>
</li>
</ul>
<a name="likeMatrix-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>likeMatrix</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/matrix/Matrix.html" title="interface in org.apache.ignite.ml.math.primitives.matrix">Matrix</a>&nbsp;likeMatrix(int&nbsp;rows,
int&nbsp;cols)</pre>
<div class="block">Creates new matrix of compatible flavor with given size.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rows</code> - Number of rows.</dd>
<dd><code>cols</code> - Number of columns.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New matrix.</dd>
</dl>
</li>
</ul>
<a name="toMatrix-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMatrix</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/matrix/Matrix.html" title="interface in org.apache.ignite.ml.math.primitives.matrix">Matrix</a>&nbsp;toMatrix(boolean&nbsp;rowLike)</pre>
<div class="block">Converts this vector into [N x 1] or [1 x N] matrix where N is this vector cardinality.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rowLike</code> - <code>true</code> for rowLike [N x 1], or <code>false</code> for column [1 x N] matrix.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Newly created matrix.</dd>
</dl>
</li>
</ul>
<a name="toMatrixPlusOne-boolean-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMatrixPlusOne</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/matrix/Matrix.html" title="interface in org.apache.ignite.ml.math.primitives.matrix">Matrix</a>&nbsp;toMatrixPlusOne(boolean&nbsp;rowLike,
double&nbsp;zeroVal)</pre>
<div class="block">Converts this vector into [N+1 x 1] or [1 x N+1] matrix where N is this vector cardinality.
(0,0) element of this matrix will be <code>zeroVal</code> parameter.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rowLike</code> - <code>true</code> for rowLike [N+1 x 1], or <code>false</code> for column [1 x N+1] matrix.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Newly created matrix.</dd>
</dl>
</li>
</ul>
<a name="minus-org.apache.ignite.ml.math.primitives.vector.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minus</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;minus(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</pre>
<div class="block">Creates new vector containing element by element difference between this vector and the argument one.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vec</code> - Argument vector.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/CardinalityException.html" title="class in org.apache.ignite.ml.math.exceptions.math">CardinalityException</a></code> - Thrown if cardinality mismatch.</dd>
</dl>
</li>
</ul>
<a name="normalize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalize</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;normalize()</pre>
<div class="block">Creates new vector containing the normalized (L_2 norm) values of this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector.</dd>
</dl>
</li>
</ul>
<a name="normalize-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalize</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;normalize(double&nbsp;power)</pre>
<div class="block">Creates new vector containing the normalized (L_power norm) values of this vector.
See http://en.wikipedia.org/wiki/Lp_space for details.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>power</code> - The power to use. Must be >= 0. May also be <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true#POSITIVE_INFINITY" title="class or interface in java.lang"><code>Double.POSITIVE_INFINITY</code></a>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector <code>x</code> such that <code>norm(x, power) == 1</code></dd>
</dl>
</li>
</ul>
<a name="logNormalize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logNormalize</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;logNormalize()</pre>
<div class="block">Creates new vector containing the <code>log(1 + entry) / L_2 norm</code> values of this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector.</dd>
</dl>
</li>
</ul>
<a name="logNormalize-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logNormalize</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;logNormalize(double&nbsp;power)</pre>
<div class="block">Creates new vector with a normalized value calculated as <code>log_power(1 + entry) / L_power norm</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>power</code> - The power to use. Must be > 1. Cannot be <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true#POSITIVE_INFINITY" title="class or interface in java.lang"><code>Double.POSITIVE_INFINITY</code></a>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector</dd>
</dl>
</li>
</ul>
<a name="kNorm-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>kNorm</h4>
<pre>double&nbsp;kNorm(double&nbsp;power)</pre>
<div class="block">Gets the k-norm of the vector. See http://en.wikipedia.org/wiki/Lp_space for more details.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>power</code> - The power to use.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#normalize-double-"><code>normalize(double)</code></a></dd>
</dl>
</li>
</ul>
<a name="minValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minValue</h4>
<pre>double&nbsp;minValue()</pre>
<div class="block">Gets minimal value in this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Minimal value.</dd>
</dl>
</li>
</ul>
<a name="maxValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>maxValue</h4>
<pre>double&nbsp;maxValue()</pre>
<div class="block">Gets maximum value in this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Maximum c.</dd>
</dl>
</li>
</ul>
<a name="minElement--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minElement</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a>&nbsp;minElement()</pre>
<div class="block">Gets minimal element in this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Minimal element.</dd>
</dl>
</li>
</ul>
<a name="maxElement--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>maxElement</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector.Element</a>&nbsp;maxElement()</pre>
<div class="block">Gets maximum element in this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Maximum element.</dd>
</dl>
</li>
</ul>
<a name="plus-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>plus</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;plus(double&nbsp;x)</pre>
<div class="block">Creates new vector containing sum of each element in this vector and argument.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - Argument value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector.</dd>
</dl>
</li>
</ul>
<a name="plus-org.apache.ignite.ml.math.primitives.vector.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>plus</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;plus(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</pre>
<div class="block">Creates new vector containing element by element sum from both vectors.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vec</code> - Other argument vector to add.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/CardinalityException.html" title="class in org.apache.ignite.ml.math.exceptions.math">CardinalityException</a></code> - Thrown if cardinality mismatch.</dd>
</dl>
</li>
</ul>
<a name="set-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;set(int&nbsp;idx,
double&nbsp;val)</pre>
<div class="block">Sets value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Vector index to set value at.</dd>
<dd><code>val</code> - Value to set.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/IndexException.html" title="class in org.apache.ignite.ml.math.exceptions.math">IndexException</a></code> - Throw if index is out of bounds.</dd>
</dl>
</li>
</ul>
<a name="setX-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setX</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;setX(int&nbsp;idx,
double&nbsp;val)</pre>
<div class="block">Sets value without checking for index boundaries.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Vector index to set value at.</dd>
<dd><code>val</code> - Value to set.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
</dl>
</li>
</ul>
<a name="setRaw-int-java.io.Serializable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRaw</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;setRaw(int&nbsp;idx,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>&nbsp;val)</pre>
<div class="block">Sets value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Vector index to set value at.</dd>
<dd><code>val</code> - Value to set.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/IndexException.html" title="class in org.apache.ignite.ml.math.exceptions.math">IndexException</a></code> - Throw if index is out of bounds.</dd>
</dl>
</li>
</ul>
<a name="setRawX-int-java.io.Serializable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRawX</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;setRawX(int&nbsp;idx,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>&nbsp;val)</pre>
<div class="block">Sets value without checking for index boundaries.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Vector index to set value at.</dd>
<dd><code>val</code> - Value to set.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
</dl>
</li>
</ul>
<a name="incrementX-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>incrementX</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;incrementX(int&nbsp;idx,
double&nbsp;val)</pre>
<div class="block">Increments value at given index without checking for index boundaries.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Vector index.</dd>
<dd><code>val</code> - Increment value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
</dl>
</li>
</ul>
<a name="increment-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>increment</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;increment(int&nbsp;idx,
double&nbsp;val)</pre>
<div class="block">Increments value at given index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>idx</code> - Vector index.</dd>
<dd><code>val</code> - Increment value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/IndexException.html" title="class in org.apache.ignite.ml.math.exceptions.math">IndexException</a></code> - Throw if index is out of bounds.</dd>
</dl>
</li>
</ul>
<a name="nonZeroElements--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nonZeroElements</h4>
<pre>int&nbsp;nonZeroElements()</pre>
<div class="block">Gets number of non-zero elements in this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Number of non-zero elements in this vector.</dd>
</dl>
</li>
</ul>
<a name="times-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>times</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;times(double&nbsp;x)</pre>
<div class="block">Gets a new vector that contains product of each element and the argument.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - Multiply argument.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector.</dd>
</dl>
</li>
</ul>
<a name="times-org.apache.ignite.ml.math.primitives.vector.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>times</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;times(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</pre>
<div class="block">Gets a new vector that is an element-wie product of this vector and the argument.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vec</code> - Vector to multiply by.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New vector.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/CardinalityException.html" title="class in org.apache.ignite.ml.math.exceptions.math">CardinalityException</a></code> - Thrown if cardinality mismatch.</dd>
</dl>
</li>
</ul>
<a name="viewPart-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>viewPart</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;viewPart(int&nbsp;off,
int&nbsp;len)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>off</code> - Offset into parent vector.</dd>
<dd><code>len</code> - Length of the view.</dd>
</dl>
</li>
</ul>
<a name="getStorage--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStorage</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/VectorStorage.html" title="interface in org.apache.ignite.ml.math.primitives.vector">VectorStorage</a>&nbsp;getStorage()</pre>
<div class="block">Gets vector storage model.</div>
</li>
</ul>
<a name="sum--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sum</h4>
<pre>double&nbsp;sum()</pre>
<div class="block">Gets the sum of all elements in this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Vector's sum</dd>
</dl>
</li>
</ul>
<a name="cross-org.apache.ignite.ml.math.primitives.vector.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cross</h4>
<pre><a href="../../../../../../../org/apache/ignite/ml/math/primitives/matrix/Matrix.html" title="interface in org.apache.ignite.ml.math.primitives.matrix">Matrix</a>&nbsp;cross(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</pre>
<div class="block">Gets the cross product of this vector and the other vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vec</code> - Second vector.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>New matrix as a cross product of two vectors.</dd>
</dl>
</li>
</ul>
<a name="foldMap-org.apache.ignite.ml.math.functions.IgniteBiFunction-org.apache.ignite.ml.math.functions.IgniteDoubleFunction-java.lang.Object-">
<!-- -->
</a><a name="foldMap-org.apache.ignite.ml.math.functions.IgniteBiFunction-org.apache.ignite.ml.math.functions.IgniteDoubleFunction-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>foldMap</h4>
<pre><span class='angle_bracket'>&lt;</span>T<span class='angle_bracket'>&gt;</span>&nbsp;T&nbsp;foldMap(<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteBiFunction</a><span class='angle_bracket'>&lt;</span>T,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,T<span class='angle_bracket'>&gt;</span>&nbsp;foldFun,
<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteDoubleFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteDoubleFunction</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;mapFun,
T&nbsp;zeroVal)</pre>
<div class="block">Folds this vector into a single value.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - Type of the folded value.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>foldFun</code> - Folding function that takes two parameters: accumulator and the current value.</dd>
<dd><code>mapFun</code> - Mapping function that is called on each vector element before its passed to the accumulator (as its
second parameter).</dd>
<dd><code>zeroVal</code> - Zero value for fold operation.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Folded value of this vector.</dd>
</dl>
</li>
</ul>
<a name="foldMap-org.apache.ignite.ml.math.primitives.vector.Vector-org.apache.ignite.ml.math.functions.IgniteBiFunction-org.apache.ignite.ml.math.functions.IgniteBiFunction-java.lang.Object-">
<!-- -->
</a><a name="foldMap-org.apache.ignite.ml.math.primitives.vector.Vector-org.apache.ignite.ml.math.functions.IgniteBiFunction-org.apache.ignite.ml.math.functions.IgniteBiFunction-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>foldMap</h4>
<pre><span class='angle_bracket'>&lt;</span>T<span class='angle_bracket'>&gt;</span>&nbsp;T&nbsp;foldMap(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec,
<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteBiFunction</a><span class='angle_bracket'>&lt;</span>T,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,T<span class='angle_bracket'>&gt;</span>&nbsp;foldFun,
<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteBiFunction</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a><span class='angle_bracket'>&gt;</span>&nbsp;combFun,
T&nbsp;zeroVal)</pre>
<div class="block">Combines & maps two vector and folds them into a single value.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - Type of the folded value.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vec</code> - Another vector to combine with.</dd>
<dd><code>foldFun</code> - Folding function.</dd>
<dd><code>combFun</code> - Combine function.</dd>
<dd><code>zeroVal</code> - Zero value for fold operation.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Folded value of these vectors.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/CardinalityException.html" title="class in org.apache.ignite.ml.math.exceptions.math">CardinalityException</a></code> - Thrown when cardinality mismatch.</dd>
</dl>
</li>
</ul>
<a name="getLengthSquared--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLengthSquared</h4>
<pre>double&nbsp;getLengthSquared()</pre>
<div class="block">Gets the sum of squares of all elements in this vector.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Length squared value.</dd>
</dl>
</li>
</ul>
<a name="getDistanceSquared-org.apache.ignite.ml.math.primitives.vector.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDistanceSquared</h4>
<pre>double&nbsp;getDistanceSquared(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;vec)</pre>
<div class="block">Get the square of the distance between this vector and the argument vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>vec</code> - Another vector.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Distance squared.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/ignite/ml/math/exceptions/math/CardinalityException.html" title="class in org.apache.ignite.ml.math.exceptions.math">CardinalityException</a></code> - Thrown if cardinality mismatch.</dd>
</dl>
</li>
</ul>
<a name="guid--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>guid</h4>
<pre><a href="../../../../../../../org/apache/ignite/lang/IgniteUuid.html" title="class in org.apache.ignite.lang">IgniteUuid</a>&nbsp;guid()</pre>
<div class="block">Auto-generated globally unique vector ID.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Vector GUID.</dd>
</dl>
</li>
</ul>
<a name="compute-int-org.apache.ignite.ml.math.functions.IgniteIntDoubleToDoubleBiFunction-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compute</h4>
<pre>void&nbsp;compute(int&nbsp;i,
<a href="../../../../../../../org/apache/ignite/ml/math/functions/IgniteIntDoubleToDoubleBiFunction.html" title="interface in org.apache.ignite.ml.math.functions">IgniteIntDoubleToDoubleBiFunction</a>&nbsp;f)</pre>
<div class="block">Replace vector entry with value oldVal at i with result of computing f(i, oldVal).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>i</code> - Position.</dd>
<dd><code>f</code> - Function used for replacing.</dd>
</dl>
</li>
</ul>
<a name="asArray--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asArray</h4>
<pre>default&nbsp;double[]&nbsp;asArray()</pre>
<div class="block">Returns array of doubles corresponds to vector components.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Array of doubles.</dd>
</dl>
</li>
</ul>
<a name="labeled-java.lang.Object-">
<!-- -->
</a><a name="labeled-L-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>labeled</h4>
<pre>default&nbsp;<span class='angle_bracket'>&lt;</span>L<span class='angle_bracket'>&gt;</span>&nbsp;<a href="../../../../../../../org/apache/ignite/ml/structures/LabeledVector.html" title="class in org.apache.ignite.ml.structures">LabeledVector</a><span class='angle_bracket'>&lt;</span>L<span class='angle_bracket'>&gt;</span>&nbsp;labeled(L&nbsp;lbl)</pre>
<div class="block">Creates <a href="../../../../../../../org/apache/ignite/ml/structures/LabeledVector.html" title="class in org.apache.ignite.ml.structures"><code>LabeledVector</code></a> instance.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>L</code> - Label class.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>lbl</code> - Label value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Labeled vector.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Vector.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/NamedVector.html" title="interface in org.apache.ignite.ml.math.primitives.vector"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.Element.html" title="interface in org.apache.ignite.ml.math.primitives.vector"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/ignite/ml/math/primitives/vector/Vector.html" target="_top">Frames</a></li>
<li><a href="Vector.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><table width="100%" border="0" cellspacing=0 cellpadding=0 style="padding: 5px"> <tr> <td> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <a target=_blank href="https://ignite.apache.org"><nobr>2020 Copyright &#169; Apache Software Foundation</nobr></a> </td> </tr> </tbody> </table> </td> <td width="100%" align="right" valign="center"> <a href="https://twitter.com/ApacheIgnite" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @ApacheIgnite</a> </td> </tr> <tr> <td colspan="2" valign="top" align="left"> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <b>Ignite Database and Caching Platform</b> </td> <td>:&nbsp;&nbsp; ver. <strong>2.9.1</strong> </td> </tr> <tr style="padding: 0; margin: 0"> <td> <b>Release Date</b> </td> <td>:&nbsp;&nbsp; December 9 2020 </td> </tr> </tbody> </table> </td> </tr> </table></small></p>
</body>
</html>