blob: 7a948fa1e8a59841a9b9b3f58fef7af4c7fdbae9 [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>
<!-- Generated by javadoc (1.8.0_261) on Mon Dec 20 14:15:55 MSK 2021 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DelegatingVector (Ignite 2.11.1)</title>
<meta name="date" content="2021-12-20">
<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'/>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DelegatingVector (Ignite 2.11.1)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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/DelegatingVector.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/impl/DelegatingNamedVector.html" title="class in org.apache.ignite.ml.math.primitives.vector.impl"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DenseVector.html" title="class in org.apache.ignite.ml.math.primitives.vector.impl"><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/impl/DelegatingVector.html" target="_top">Frames</a></li>
<li><a href="DelegatingVector.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>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&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><a href="#constructor.detail">Constr</a>&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.impl</div>
<h2 title="Class DelegatingVector" class="title">Class DelegatingVector</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.ignite.ml.math.primitives.vector.impl.DelegatingVector</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><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="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/Destroyable.html" title="interface in org.apache.ignite.ml.math">Destroyable</a>, <a href="../../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html" title="interface in org.apache.ignite.ml.math">MetaAttributes</a>, <a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>, <a href="../../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html" title="interface in org.apache.ignite.ml.math">StorageOpsMetrics</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><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></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">DelegatingVector</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></pre>
<div class="block">Convenient class that can be used to add decorations to an existing vector. Subclasses
can add weights, indices, etc. while maintaining full vector functionality.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../serialized-form.html#org.apache.ignite.ml.math.primitives.vector.impl.DelegatingVector">Serialized Form</a></dd>
</dl>
</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>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.ignite.ml.math.primitives.vector.Vector">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.apache.ignite.ml.math.primitives.vector.<a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></h3>
<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></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingVector.html#DelegatingVector--">DelegatingVector</a></span>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingVector.html#DelegatingVector-org.apache.ignite.ml.math.primitives.vector.Vector-">DelegatingVector</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;dlg)</code>&nbsp;</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="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete 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/impl/DelegatingVector.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/impl/DelegatingVector.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><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/impl/DelegatingVector.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="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/impl/DelegatingVector.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="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/impl/DelegatingVector.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="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/impl/DelegatingVector.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="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingVector.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="i7" 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/impl/DelegatingVector.html#copy--">copy</a></span>()</code>
<div class="block">Creates new copy of this vector.</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/impl/DelegatingVector.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="i9" 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/impl/DelegatingVector.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="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingVector.html#destroy--">destroy</a></span>()</code>
<div class="block">Destroys object if managed outside of JVM.</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/impl/DelegatingVector.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/impl/DelegatingVector.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>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingVector.html#equals-java.lang.Object-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</code></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/impl/DelegatingVector.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="i15" 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/impl/DelegatingVector.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="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/impl/DelegatingVector.html#get-int-">get</a></span>(int&nbsp;idx)</code>
<div class="block">Gets the value at specified index.</div>
</td>
</tr>
<tr id="i17" 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/impl/DelegatingVector.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="i18" class="altColor">
<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/impl/DelegatingVector.html#getElement-int-">getElement</a></span>(int&nbsp;idx)</code>
<div class="block">Gets element at the given index.</div>
</td>
</tr>
<tr id="i19" 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/impl/DelegatingVector.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="i20" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</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/impl/DelegatingVector.html#getMetaStorage--">getMetaStorage</a></span>()</code>
<div class="block">Implementation should return an instance of the map to store meta attributes.</div>
</td>
</tr>
<tr id="i21" 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/impl/DelegatingVector.html#getRaw-int-">getRaw</a></span>(int&nbsp;idx)</code>
<div class="block">Gets the value at specified index.</div>
</td>
</tr>
<tr id="i22" 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/impl/DelegatingVector.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="i23" 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/impl/DelegatingVector.html#getStorage--">getStorage</a></span>()</code>
<div class="block">Gets vector storage model.</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/impl/DelegatingVector.html#getVector--">getVector</a></span>()</code>
<div class="block">Get the delegating vector</div>
</td>
</tr>
<tr id="i25" 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/impl/DelegatingVector.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="i26" class="altColor">
<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/impl/DelegatingVector.html#guid--">guid</a></span>()</code>
<div class="block">Auto-generated globally unique vector ID.</div>
</td>
</tr>
<tr id="i27" 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/impl/DelegatingVector.html#hashCode--">hashCode</a></span>()</code></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/impl/DelegatingVector.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="i29" 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/impl/DelegatingVector.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="i30" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingVector.html#isArrayBased--">isArrayBased</a></span>()</code>
<div class="block">Checks if implementation is based on Java arrays.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingVector.html#isDense--">isDense</a></span>()</code>
<div class="block">Checks if this implementation should be considered dense so that it explicitly
represents every value.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingVector.html#isNumeric--">isNumeric</a></span>()</code></td>
</tr>
<tr id="i33" 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/impl/DelegatingVector.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="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/impl/DelegatingVector.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="i35" 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/impl/DelegatingVector.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="i36" 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/impl/DelegatingVector.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="i37" 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/impl/DelegatingVector.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="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/impl/DelegatingVector.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="i39" 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/impl/DelegatingVector.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="i40" 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/impl/DelegatingVector.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="i41" 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/impl/DelegatingVector.html#maxElement--">maxElement</a></span>()</code>
<div class="block">Gets maximum element in this vector.</div>
</td>
</tr>
<tr id="i42" 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/impl/DelegatingVector.html#maxValue--">maxValue</a></span>()</code>
<div class="block">Gets maximum value 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.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/impl/DelegatingVector.html#minElement--">minElement</a></span>()</code>
<div class="block">Gets minimal element in 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/impl/DelegatingVector.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="i45" 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/impl/DelegatingVector.html#minValue--">minValue</a></span>()</code>
<div class="block">Gets minimal value in this vector.</div>
</td>
</tr>
<tr id="i46" 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/impl/DelegatingVector.html#nonZeroElements--">nonZeroElements</a></span>()</code>
<div class="block">Gets number of non-zero elements in this vector.</div>
</td>
</tr>
<tr id="i47" 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/impl/DelegatingVector.html#nonZeroes--">nonZeroes</a></span>()</code>
<div class="block">Iterates ove all non-zero elements in this vector.</div>
</td>
</tr>
<tr id="i48" 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/impl/DelegatingVector.html#nonZeroSpliterator--">nonZeroSpliterator</a></span>()</code>
<div class="block">Gets spliterator for all non-zero values in this vector.</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/impl/DelegatingVector.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="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/impl/DelegatingVector.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="i51" 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/impl/DelegatingVector.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="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/impl/DelegatingVector.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="i53" 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/impl/DelegatingVector.html#readExternal-java.io.ObjectInput-">readExternal</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/ObjectInput.html?is-external=true" title="class or interface in java.io">ObjectInput</a>&nbsp;in)</code></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/impl/DelegatingVector.html#set-int-double-">set</a></span>(int&nbsp;idx,
double&nbsp;val)</code>
<div class="block">Sets value.</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/impl/DelegatingVector.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="i56" 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/impl/DelegatingVector.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="i57" 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/impl/DelegatingVector.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="i58" 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/impl/DelegatingVector.html#size--">size</a></span>()</code>
<div class="block">Gets cardinality of this vector (maximum number of the elements).</div>
</td>
</tr>
<tr id="i59" 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/impl/DelegatingVector.html#sort--">sort</a></span>()</code>
<div class="block">Sorts this vector in ascending order.</div>
</td>
</tr>
<tr id="i60" 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/impl/DelegatingVector.html#sum--">sum</a></span>()</code>
<div class="block">Gets the sum of all elements in this vector.</div>
</td>
</tr>
<tr id="i61" 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/impl/DelegatingVector.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="i62" 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/impl/DelegatingVector.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="i63" 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/impl/DelegatingVector.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="i64" 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/impl/DelegatingVector.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="i65" 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/impl/DelegatingVector.html#viewPart-int-int-">viewPart</a></span>(int&nbsp;off,
int&nbsp;len)</code></td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DelegatingVector.html#writeExternal-java.io.ObjectOutput-">writeExternal</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/ObjectOutput.html?is-external=true" title="class or interface in java.io">ObjectOutput</a>&nbsp;out)</code></td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.ignite.ml.math.primitives.vector.Vector">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.ignite.ml.math.primitives.vector.<a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a></h3>
<code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#asArray--">asArray</a>, <a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#labeled-L-">labeled</a></code></li>
</ul>
<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#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>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="DelegatingVector--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DelegatingVector</h4>
<pre>public&nbsp;DelegatingVector()</pre>
</li>
</ul>
<a name="DelegatingVector-org.apache.ignite.ml.math.primitives.vector.Vector-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DelegatingVector</h4>
<pre>public&nbsp;DelegatingVector(<a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;dlg)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dlg</code> - Parent vector.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getVector--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVector</h4>
<pre>public&nbsp;<a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;getVector()</pre>
<div class="block">Get the delegating vector</div>
</li>
</ul>
<a name="writeExternal-java.io.ObjectOutput-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeExternal</h4>
<pre>public&nbsp;void&nbsp;writeExternal(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/ObjectOutput.html?is-external=true" title="class or interface in java.io">ObjectOutput</a>&nbsp;out)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><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>&nbsp;in interface&nbsp;<code><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></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="readExternal-java.io.ObjectInput-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readExternal</h4>
<pre>public&nbsp;void&nbsp;readExternal(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/ObjectInput.html?is-external=true" title="class or interface in java.io">ObjectInput</a>&nbsp;in)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</a></pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><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></code>&nbsp;in interface&nbsp;<code><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></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</a></code></dd>
</dl>
</li>
</ul>
<a name="getMetaStorage--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMetaStorage</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><span class='angle_bracket'>&lt;</span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a><span class='angle_bracket'>&gt;</span>&nbsp;getMetaStorage()</pre>
<div class="block">Implementation should return an instance of the map to store meta attributes.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html#getMetaStorage--">getMetaStorage</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../../org/apache/ignite/ml/math/MetaAttributes.html" title="interface in org.apache.ignite.ml.math">MetaAttributes</a></code></dd>
</dl>
</li>
</ul>
<a name="likeMatrix-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>likeMatrix</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#likeMatrix-int-int-">likeMatrix</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#toMatrix-boolean-">toMatrix</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#toMatrixPlusOne-boolean-double-">toMatrixPlusOne</a></code>&nbsp;in interface&nbsp;<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></dd>
<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="size--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>public&nbsp;int&nbsp;size()</pre>
<div class="block">Gets cardinality of this vector (maximum number of the elements).</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#size--">size</a></code>&nbsp;in interface&nbsp;<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></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This vector's cardinality.</dd>
</dl>
</li>
</ul>
<a name="isDense--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDense</h4>
<pre>public&nbsp;boolean&nbsp;isDense()</pre>
<div class="block">Checks if this implementation should be considered dense so that it explicitly
represents every value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html#isDense--">isDense</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html" title="interface in org.apache.ignite.ml.math">StorageOpsMetrics</a></code></dd>
</dl>
</li>
</ul>
<a name="minValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minValue</h4>
<pre>public&nbsp;double&nbsp;minValue()</pre>
<div class="block">Gets minimal value in this vector.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#minValue--">minValue</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;double&nbsp;maxValue()</pre>
<div class="block">Gets maximum value in this vector.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#maxValue--">maxValue</a></code>&nbsp;in interface&nbsp;<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></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Maximum c.</dd>
</dl>
</li>
</ul>
<a name="isArrayBased--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isArrayBased</h4>
<pre>public&nbsp;boolean&nbsp;isArrayBased()</pre>
<div class="block">Checks if implementation is based on Java arrays.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html#isArrayBased--">isArrayBased</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html" title="interface in org.apache.ignite.ml.math">StorageOpsMetrics</a></code></dd>
</dl>
</li>
</ul>
<a name="copy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#copy--">copy</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#all--">all</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#nonZeroes--">nonZeroes</a></code>&nbsp;in interface&nbsp;<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></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Iterator.</dd>
</dl>
</li>
</ul>
<a name="sort--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sort</h4>
<pre>public&nbsp;<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>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#sort--">sort</a></code>&nbsp;in interface&nbsp;<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></dd>
</dl>
</li>
</ul>
<a name="copyOfRange-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyOfRange</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#copyOfRange-int-int-">copyOfRange</a></code>&nbsp;in interface&nbsp;<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></dd>
<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="allSpliterator--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allSpliterator</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#allSpliterator--">allSpliterator</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#nonZeroSpliterator--">nonZeroSpliterator</a></code>&nbsp;in interface&nbsp;<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></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Spliterator for all non-zero values.</dd>
</dl>
</li>
</ul>
<a name="getElement-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getElement</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getElement-int-">getElement</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>
</dl>
</li>
</ul>
<a name="assign-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assign</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#assign-double-">assign</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#assign-double:A-">assign</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>
</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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#assign-org.apache.ignite.ml.math.primitives.vector.Vector-">assign</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>
</dl>
</li>
</ul>
<a name="assign-java.util.function.IntToDoubleFunction-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assign</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#assign-java.util.function.IntToDoubleFunction-">assign</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#map-org.apache.ignite.ml.math.functions.IgniteDoubleFunction-">map</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><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></code>&nbsp;in interface&nbsp;<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></dd>
<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>
</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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#map-org.apache.ignite.ml.math.functions.IgniteBiFunction-double-">map</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#divide-double-">divide</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#dot-org.apache.ignite.ml.math.primitives.vector.Vector-">dot</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;double&nbsp;get(int&nbsp;idx)</pre>
<div class="block">Gets the value at specified index.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#get-int-">get</a></code>&nbsp;in interface&nbsp;<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></dd>
<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="getX-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getX</h4>
<pre>public&nbsp;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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getX-int-">getX</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getRaw-int-">getRaw</a></code>&nbsp;in interface&nbsp;<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></dd>
<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="getRawX-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRawX</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getRawX-int-">getRawX</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#like-int-">like</a></code>&nbsp;in interface&nbsp;<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></dd>
<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="minus-org.apache.ignite.ml.math.primitives.vector.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minus</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#minus-org.apache.ignite.ml.math.primitives.vector.Vector-">minus</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>
</dl>
</li>
</ul>
<a name="normalize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalize</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#normalize--">normalize</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#normalize-double-">normalize</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#logNormalize--">logNormalize</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#logNormalize-double-">logNormalize</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#kNorm-double-">kNorm</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>Vector.normalize(double)</code></a></dd>
</dl>
</li>
</ul>
<a name="minElement--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minElement</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#minElement--">minElement</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#maxElement--">maxElement</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#plus-double-">plus</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#plus-org.apache.ignite.ml.math.primitives.vector.Vector-">plus</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>
</dl>
</li>
</ul>
<a name="set-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#set-int-double-">set</a></code>&nbsp;in interface&nbsp;<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></dd>
<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="setX-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setX</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#setX-int-double-">setX</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#setRaw-int-java.io.Serializable-">setRaw</a></code>&nbsp;in interface&nbsp;<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></dd>
<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="setRawX-int-java.io.Serializable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRawX</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#setRawX-int-java.io.Serializable-">setRawX</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#incrementX-int-double-">incrementX</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#increment-int-double-">increment</a></code>&nbsp;in interface&nbsp;<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></dd>
<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="nonZeroElements--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nonZeroElements</h4>
<pre>public&nbsp;int&nbsp;nonZeroElements()</pre>
<div class="block">Gets number of non-zero elements in this vector.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#nonZeroElements--">nonZeroElements</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#times-double-">times</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#times-org.apache.ignite.ml.math.primitives.vector.Vector-">times</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>
</dl>
</li>
</ul>
<a name="viewPart-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>viewPart</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#viewPart-int-int-">viewPart</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getStorage--">getStorage</a></code>&nbsp;in interface&nbsp;<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></dd>
</dl>
</li>
</ul>
<a name="sum--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sum</h4>
<pre>public&nbsp;double&nbsp;sum()</pre>
<div class="block">Gets the sum of all elements in this vector.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#sum--">sum</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#cross-org.apache.ignite.ml.math.primitives.vector.Vector-">cross</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><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></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><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></code>&nbsp;in interface&nbsp;<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></dd>
<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>
</dl>
</li>
</ul>
<a name="getLengthSquared--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLengthSquared</h4>
<pre>public&nbsp;double&nbsp;getLengthSquared()</pre>
<div class="block">Gets the sum of squares of all elements in this vector.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getLengthSquared--">getLengthSquared</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#getDistanceSquared-org.apache.ignite.ml.math.primitives.vector.Vector-">getDistanceSquared</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>
</dl>
</li>
</ul>
<a name="isNumeric--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNumeric</h4>
<pre>public&nbsp;boolean&nbsp;isNumeric()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html#isNumeric--">isNumeric</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../../org/apache/ignite/ml/math/StorageOpsMetrics.html" title="interface in org.apache.ignite.ml.math">StorageOpsMetrics</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if all stored data are values of Number class.</dd>
</dl>
</li>
</ul>
<a name="guid--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>guid</h4>
<pre>public&nbsp;<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#guid--">guid</a></code>&nbsp;in interface&nbsp;<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></dd>
<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>public&nbsp;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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html#compute-int-org.apache.ignite.ml.math.functions.IgniteIntDoubleToDoubleBiFunction-">compute</a></code>&nbsp;in interface&nbsp;<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></dd>
<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="destroy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>destroy</h4>
<pre>public&nbsp;void&nbsp;destroy()</pre>
<div class="block">Destroys object if managed outside of JVM. It's a no-op in all other cases.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/ignite/ml/math/Destroyable.html#destroy--">destroy</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../../org/apache/ignite/ml/math/Destroyable.html" title="interface in org.apache.ignite.ml.math">Destroyable</a></code></dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></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/DelegatingVector.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/impl/DelegatingNamedVector.html" title="class in org.apache.ignite.ml.math.primitives.vector.impl"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../../org/apache/ignite/ml/math/primitives/vector/impl/DenseVector.html" title="class in org.apache.ignite.ml.math.primitives.vector.impl"><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/impl/DelegatingVector.html" target="_top">Frames</a></li>
<li><a href="DelegatingVector.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>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&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><a href="#constructor.detail">Constr</a>&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>2021 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.11.1</strong> </td> </tr> <tr style="padding: 0; margin: 0"> <td> <b>Release Date</b> </td> <td>:&nbsp;&nbsp; December 20 2021 </td> </tr> </tbody> </table> </td> </tr> </table></small></p>
</body>
</html>