blob: a988dec00be131d4d09a98e506ae07deeb1ddda0 [file] [log] [blame]
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Spark 3.4.3 ScalaDoc - org.apache.spark.mllib.linalg.DenseVector</title>
<meta name="description" content="Spark 3.4.3 ScalaDoc - org.apache.spark.mllib.linalg.DenseVector" />
<meta name="keywords" content="Spark 3.4.3 ScalaDoc org.apache.spark.mllib.linalg.DenseVector" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="../../../../../lib/index.css" media="screen" type="text/css" rel="stylesheet" />
<link href="../../../../../lib/template.css" media="screen" type="text/css" rel="stylesheet" />
<link href="../../../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css" />
<script type="text/javascript" src="../../../../../lib/jquery.min.js"></script>
<script type="text/javascript" src="../../../../../lib/jquery.panzoom.min.js"></script>
<script type="text/javascript" src="../../../../../lib/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="../../../../../lib/index.js"></script>
<script type="text/javascript" src="../../../../../index.js"></script>
<script type="text/javascript" src="../../../../../lib/scheduler.js"></script>
<script type="text/javascript" src="../../../../../lib/template.js"></script>
<script type="text/javascript">
/* this variable can be used by the JS to determine the path to the root document */
var toRoot = '../../../../../';
</script>
</head>
<body>
<div id="search">
<span id="doc-title">Spark 3.4.3 ScalaDoc<span id="doc-version"></span></span>
<span class="close-results"><span class="left">&lt;</span> Back</span>
<div id="textfilter">
<span class="input">
<input autocapitalize="none" placeholder="Search" id="index-input" type="text" accesskey="/" />
<i class="clear material-icons"></i>
<i id="search-icon" class="material-icons"></i>
</span>
</div>
</div>
<div id="search-results">
<div id="search-progress">
<div id="progress-fill"></div>
</div>
<div id="results-content">
<div id="entity-results"></div>
<div id="member-results"></div>
</div>
</div>
<div id="content-scroll-container" style="-webkit-overflow-scrolling: touch;">
<div id="content-container" style="-webkit-overflow-scrolling: touch;">
<div id="subpackage-spacer">
<div id="packages">
<h1>Packages</h1>
<ul>
<li name="_root_.root" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="_root_"></a><a id="root:_root_"></a>
<span class="permalink">
<a href="../../../../../index.html" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">package</span>
</span>
<span class="symbol">
<a title="" href="../../../../../index.html"><span class="name">root</span></a>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../../../../../index.html" class="extype" name="_root_">root</a></dd></dl></div>
</li><li name="_root_.org" visbl="pub" class="indented1 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="org"></a><a id="org:org"></a>
<span class="permalink">
<a href="../../../../../org/index.html" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">package</span>
</span>
<span class="symbol">
<a title="" href="../../../../index.html"><span class="name">org</span></a>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../../../../../index.html" class="extype" name="_root_">root</a></dd></dl></div>
</li><li name="org.apache" visbl="pub" class="indented2 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="apache"></a><a id="apache:apache"></a>
<span class="permalink">
<a href="../../../../../org/apache/index.html" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">package</span>
</span>
<span class="symbol">
<a title="" href="../../../index.html"><span class="name">apache</span></a>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../../../../index.html" class="extype" name="org">org</a></dd></dl></div>
</li><li name="org.apache.spark" visbl="pub" class="indented3 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="spark"></a><a id="spark:spark"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/index.html" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">package</span>
</span>
<span class="symbol">
<a title="Core Spark functionality." href="../../index.html"><span class="name">spark</span></a>
</span>
<p class="shortcomment cmt">Core Spark functionality.</p><div class="fullcomment"><div class="comment cmt"><p>Core Spark functionality. <a href="../../SparkContext.html" class="extype" name="org.apache.spark.SparkContext">org.apache.spark.SparkContext</a> serves as the main entry point to
Spark, while <a href="../../rdd/RDD.html" class="extype" name="org.apache.spark.rdd.RDD">org.apache.spark.rdd.RDD</a> is the data type representing a distributed collection,
and provides most parallel operations.</p><p>In addition, <a href="../../rdd/PairRDDFunctions.html" class="extype" name="org.apache.spark.rdd.PairRDDFunctions">org.apache.spark.rdd.PairRDDFunctions</a> contains operations available only on RDDs
of key-value pairs, such as <code>groupByKey</code> and <code>join</code>; <a href="../../rdd/DoubleRDDFunctions.html" class="extype" name="org.apache.spark.rdd.DoubleRDDFunctions">org.apache.spark.rdd.DoubleRDDFunctions</a>
contains operations available only on RDDs of Doubles; and
<a href="../../rdd/SequenceFileRDDFunctions.html" class="extype" name="org.apache.spark.rdd.SequenceFileRDDFunctions">org.apache.spark.rdd.SequenceFileRDDFunctions</a> contains operations available on RDDs that can
be saved as SequenceFiles. These operations are automatically available on any RDD of the right
type (e.g. RDD[(Int, Int)] through implicit conversions.</p><p>Java programmers should reference the <a href="../../api/java/index.html" class="extype" name="org.apache.spark.api.java">org.apache.spark.api.java</a> package
for Spark programming APIs in Java.</p><p>Classes and methods marked with <span class="experimental badge" style="float: none;">
Experimental</span> are user-facing features which have not been officially adopted by the
Spark project. These are subject to change or removal in minor releases.</p><p>Classes and methods marked with <span class="developer badge" style="float: none;">
Developer API</span> are intended for advanced users want to extend Spark through lower
level interfaces. These are subject to changes or removal in minor releases.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../../../index.html" class="extype" name="org.apache">apache</a></dd></dl></div>
</li><li name="org.apache.spark.mllib" visbl="pub" class="indented4 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="mllib"></a><a id="mllib:mllib"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/index.html" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">package</span>
</span>
<span class="symbol">
<a title="RDD-based machine learning APIs (in maintenance mode)." href="../index.html"><span class="name">mllib</span></a>
</span>
<p class="shortcomment cmt">RDD-based machine learning APIs (in maintenance mode).</p><div class="fullcomment"><div class="comment cmt"><p>RDD-based machine learning APIs (in maintenance mode).</p><p>The <code>spark.mllib</code> package is in maintenance mode as of the Spark 2.0.0 release to encourage
migration to the DataFrame-based APIs under the <a href="../../ml/index.html" class="extype" name="org.apache.spark.ml">org.apache.spark.ml</a> package.
While in maintenance mode,</p><ul><li>no new features in the RDD-based <code>spark.mllib</code> package will be accepted, unless they block
implementing new features in the DataFrame-based <code>spark.ml</code> package;</li><li>bug fixes in the RDD-based APIs will still be accepted.</li></ul><p>The developers will continue adding more features to the DataFrame-based APIs in the 2.x series
to reach feature parity with the RDD-based APIs.
And once we reach feature parity, this package will be deprecated.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../../index.html" class="extype" name="org.apache.spark">spark</a></dd><dt>See also</dt><dd><span class="cmt"><p><a href="https://issues.apache.org/jira/browse/SPARK-4591">SPARK-4591</a> to track
the progress of feature parity</p></span></dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg" visbl="pub" class="indented5 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="linalg"></a><a id="linalg:linalg"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/index.html" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">package</span>
</span>
<span class="symbol">
<a title="" href="index.html"><span class="name">linalg</span></a>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="../index.html" class="extype" name="org.apache.spark.mllib">mllib</a></dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.distributed" visbl="pub" class="indented6 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="distributed"></a><a id="distributed:distributed"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/distributed/index.html" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">package</span>
</span>
<span class="symbol">
<a title="" href="distributed/index.html"><span class="name">distributed</span></a>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="index.html" class="extype" name="org.apache.spark.mllib.linalg">linalg</a></dd></dl></div>
</li><li class="current-entities indented5">
<a class="object" href="DenseMatrix$.html" title="Factory methods for org.apache.spark.mllib.linalg.DenseMatrix."></a>
<a class="class" href="DenseMatrix.html" title="Column-major dense matrix."></a>
<a href="DenseMatrix.html" title="Column-major dense matrix.">DenseMatrix</a>
</li><li class="current-entities indented5">
<a class="object" href="DenseVector$.html" title=""></a>
<a class="class" href="" title="A dense vector represented by a value array."></a>
<a href="" title="A dense vector represented by a value array.">DenseVector</a>
</li><li class="current-entities indented5">
<span class="separator"></span>
<a class="object" href="Matrices$.html" title="Factory methods for org.apache.spark.mllib.linalg.Matrix."></a>
<a href="Matrices$.html" title="Factory methods for org.apache.spark.mllib.linalg.Matrix.">Matrices</a>
</li><li class="current-entities indented5">
<span class="separator"></span>
<a class="trait" href="Matrix.html" title="Trait for a local matrix."></a>
<a href="Matrix.html" title="Trait for a local matrix.">Matrix</a>
</li><li class="current-entities indented5">
<span class="separator"></span>
<a class="class" href="QRDecomposition.html" title="Represents QR factors."></a>
<a href="QRDecomposition.html" title="Represents QR factors.">QRDecomposition</a>
</li><li class="current-entities indented5">
<span class="separator"></span>
<a class="class" href="SingularValueDecomposition.html" title="Represents singular value decomposition (SVD) factors."></a>
<a href="SingularValueDecomposition.html" title="Represents singular value decomposition (SVD) factors.">SingularValueDecomposition</a>
</li><li class="current-entities indented5">
<a class="object" href="SparseMatrix$.html" title="Factory methods for org.apache.spark.mllib.linalg.SparseMatrix."></a>
<a class="class" href="SparseMatrix.html" title="Column-major sparse matrix."></a>
<a href="SparseMatrix.html" title="Column-major sparse matrix.">SparseMatrix</a>
</li><li class="current-entities indented5">
<a class="object" href="SparseVector$.html" title=""></a>
<a class="class" href="SparseVector.html" title="A sparse vector represented by an index array and a value array."></a>
<a href="SparseVector.html" title="A sparse vector represented by an index array and a value array.">SparseVector</a>
</li><li class="current-entities indented5">
<span class="separator"></span>
<a class="trait" href="Vector.html" title="Represents a numeric vector, whose index type is Int and value type is Double."></a>
<a href="Vector.html" title="Represents a numeric vector, whose index type is Int and value type is Double.">Vector</a>
</li><li class="current-entities indented5">
<span class="separator"></span>
<a class="class" href="VectorUDT.html" title=":: AlphaComponent ::"></a>
<a href="VectorUDT.html" title=":: AlphaComponent ::">VectorUDT</a>
</li><li class="current-entities indented5">
<span class="separator"></span>
<a class="object" href="Vectors$.html" title="Factory methods for org.apache.spark.mllib.linalg.Vector."></a>
<a href="Vectors$.html" title="Factory methods for org.apache.spark.mllib.linalg.Vector.">Vectors</a>
</li>
</ul>
</div>
</div>
<div id="content">
<body class="class type">
<div id="definition">
<a href="DenseVector$.html" title="See companion object"><div class="big-circle class-companion-object">c</div></a>
<p id="owner"><a href="../../../../index.html" class="extype" name="org">org</a>.<a href="../../../index.html" class="extype" name="org.apache">apache</a>.<a href="../../index.html" class="extype" name="org.apache.spark">spark</a>.<a href="../index.html" class="extype" name="org.apache.spark.mllib">mllib</a>.<a href="index.html" class="extype" name="org.apache.spark.mllib.linalg">linalg</a></p>
<h1><a href="DenseVector$.html" title="See companion object">DenseVector</a><span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html" title="Permalink">
<i class="material-icons"></i>
</a>
</span></h1>
<h3><span class="morelinks"><div>
Companion <a href="DenseVector$.html" title="See companion object">object DenseVector</a>
</div></span></h3>
</div>
<h4 id="signature" class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">class</span>
</span>
<span class="symbol">
<span class="name">DenseVector</span><span class="result"> extends <a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></span>
</span>
</h4>
<div id="comment" class="fullcommenttop"><div class="comment cmt"><p>A dense vector represented by a value array.
</p></div><dl class="attributes block"> <dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.0.0&quot;</span>
</span>)</span>
<span class="name">@<a href="../../sql/types/SQLUserDefinedType.html" class="extype" name="org.apache.spark.sql.types.SQLUserDefinedType">SQLUserDefinedType</a></span><span class="args">()</span>
</dd><dt>Source</dt><dd><a href="https://github.com/apache/spark/tree/v3.4.3/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala" target="_blank">Vectors.scala</a></dd></dl><div class="toggleContainer block">
<span class="toggle">
Linear Supertypes
</span>
<div class="superTypes hiddenContent"><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a>, <span class="extype" name="scala.Serializable">Serializable</span>, <span class="extype" name="java.io.Serializable">Serializable</span>, <a href="../../../../../scala/index.html#AnyRef=Object" class="extmbr" name="scala.AnyRef">AnyRef</a>, <span class="extype" name="scala.Any">Any</span></div>
</div></div>
<div id="mbrsel">
<div class="toggle"></div>
<div id="memberfilter">
<i class="material-icons arrow"></i>
<span class="input">
<input id="mbrsel-input" placeholder="Filter all members" type="text" accesskey="/" />
</span>
<i class="clear material-icons"></i>
</div>
<div id="filterby">
<div id="order">
<span class="filtertype">Ordering</span>
<ol>
<li class="alpha in"><span>Alphabetic</span></li>
<li class="inherit out"><span>By Inheritance</span></li>
</ol>
</div>
<div class="ancestors">
<span class="filtertype">Inherited<br />
</span>
<ol id="linearization">
<li class="in" name="org.apache.spark.mllib.linalg.DenseVector"><span>DenseVector</span></li><li class="in" name="org.apache.spark.mllib.linalg.Vector"><span>Vector</span></li><li class="in" name="scala.Serializable"><span>Serializable</span></li><li class="in" name="java.io.Serializable"><span>Serializable</span></li><li class="in" name="scala.AnyRef"><span>AnyRef</span></li><li class="in" name="scala.Any"><span>Any</span></li>
</ol>
</div><div class="ancestors">
<span class="filtertype"></span>
<ol>
<li class="hideall out"><span>Hide All</span></li>
<li class="showall in"><span>Show All</span></li>
</ol>
</div>
<div id="visbl">
<span class="filtertype">Visibility</span>
<ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
</div>
</div>
</div>
<div id="template">
<div id="allMembers">
<div id="constructors" class="members">
<h3>Instance Constructors</h3>
<ol><li name="org.apache.spark.mllib.linalg.DenseVector#&lt;init&gt;" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="&lt;init&gt;(values:Array[Double]):org.apache.spark.mllib.linalg.DenseVector"></a><a id="&lt;init&gt;:DenseVector"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#&lt;init&gt;(values:Array[Double]):org.apache.spark.mllib.linalg.DenseVector" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">new</span>
</span>
<span class="symbol">
<span class="name">DenseVector</span><span class="params">(<span name="values">values: <span class="extype" name="scala.Array">Array</span>[<span class="extype" name="scala.Double">Double</span>]</span>)</span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.0.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li></ol>
</div>
<div class="values members">
<h3>Value Members</h3>
<ol>
<li name="scala.AnyRef#!=" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="!=(x$1:Any):Boolean"></a><a id="!=(Any):Boolean"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#!=(x$1:Any):Boolean" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef###" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="##():Int"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html###():Int" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $hash$hash" class="name">##</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef#==" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="==(x$1:Any):Boolean"></a><a id="==(Any):Boolean"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#==(x$1:Any):Boolean" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#apply" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="apply(i:Int):Double"></a><a id="apply(Int):Double"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#apply(i:Int):Double" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">apply</span><span class="params">(<span name="i">i: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Double">Double</span></span>
</span>
<p class="shortcomment cmt">Gets the value of the ith element.</p><div class="fullcomment"><div class="comment cmt"><p>Gets the value of the ith element.</p></div><dl class="paramcmts block"><dt class="param">i</dt><dd class="cmt"><p>index</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.0.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#argmax" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="argmax:Int"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#argmax:Int" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">argmax</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
</span>
<p class="shortcomment cmt">Find the index of a maximal element.</p><div class="fullcomment"><div class="comment cmt"><p>Find the index of a maximal element. Returns the first maximal element in case of a tie.
Returns -1 if vector has length 0.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.5.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="scala.Any#asInstanceOf" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="asInstanceOf[T0]:T0"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#asInstanceOf[T0]:T0" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">asInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Any.asInstanceOf.T0">T0</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#asML" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="asML:org.apache.spark.ml.linalg.DenseVector"></a><a id="asML:ml.linalg.DenseVector"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#asML:org.apache.spark.ml.linalg.DenseVector" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">asML</span><span class="result">: <a href="../../ml/linalg/DenseVector.html" class="extype" name="org.apache.spark.ml.linalg.DenseVector">ml.linalg.DenseVector</a></span>
</span>
<p class="shortcomment cmt">Convert this vector to the new mllib-local representation.</p><div class="fullcomment"><div class="comment cmt"><p>Convert this vector to the new mllib-local representation.
This does NOT copy the data; it copies references.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;2.0.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="scala.AnyRef#clone" visbl="prt" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="clone():Object"></a><a id="clone():AnyRef"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#clone():Object" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">clone</span><span class="params">()</span><span class="result">: <a href="../../../../../scala/index.html#AnyRef=Object" class="extmbr" name="scala.AnyRef">AnyRef</a></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<span class="extype" name="java.lang">lang</span>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">(<span>
<span class="defval" name="classOf[java.lang.CloneNotSupportedException]">...</span>
</span>)</span>
<span class="name">@native</span><span class="args">()</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.Vector#compressed" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="compressed:org.apache.spark.mllib.linalg.Vector"></a><a id="compressed:Vector"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#compressed:org.apache.spark.mllib.linalg.Vector" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">compressed</span><span class="result">: <a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></span>
</span>
<p class="shortcomment cmt">Returns a vector in either dense or sparse format, whichever uses less storage.</p><div class="fullcomment"><div class="comment cmt"><p>Returns a vector in either dense or sparse format, whichever uses less storage.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.4.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#copy" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="copy:org.apache.spark.mllib.linalg.DenseVector"></a><a id="copy:DenseVector"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#copy:org.apache.spark.mllib.linalg.DenseVector" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">copy</span><span class="result">: <a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a></span>
</span>
<p class="shortcomment cmt">Makes a deep copy of this vector.</p><div class="fullcomment"><div class="comment cmt"><p>Makes a deep copy of this vector.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.1.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.Vector#dot" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="dot(v:org.apache.spark.mllib.linalg.Vector):Double"></a><a id="dot(Vector):Double"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#dot(v:org.apache.spark.mllib.linalg.Vector):Double" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">dot</span><span class="params">(<span name="v">v: <a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></span>)</span><span class="result">: <span class="extype" name="scala.Double">Double</span></span>
</span>
<p class="shortcomment cmt">Calculate the dot product of this vector with another.</p><div class="fullcomment"><div class="comment cmt"><p>Calculate the dot product of this vector with another.</p><p>If <code>size</code> does not match an <span class="extype" name="IllegalArgumentException">IllegalArgumentException</span> is thrown.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;3.0.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="scala.AnyRef#eq" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="eq(x$1:AnyRef):Boolean"></a><a id="eq(AnyRef):Boolean"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#eq(x$1:AnyRef):Boolean" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">eq</span><span class="params">(<span name="arg0">arg0: <a href="../../../../../scala/index.html#AnyRef=Object" class="extmbr" name="scala.AnyRef">AnyRef</a></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#equals" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="equals(other:Any):Boolean"></a><a id="equals(Any):Boolean"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#equals(other:Any):Boolean" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">equals</span><span class="params">(<span name="other">other: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a> → AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef#finalize" visbl="prt" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="finalize():Unit"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#finalize():Unit" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">finalize</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<span class="extype" name="java.lang">lang</span>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">(<span>
<span class="symbol">classOf[java.lang.Throwable]</span>
</span>)</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.Vector#foreachActive" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="foreachActive(f:(Int,Double)=&gt;Unit):Unit"></a><a id="foreachActive((Int,Double)⇒Unit):Unit"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#foreachActive(f:(Int,Double)=&gt;Unit):Unit" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">foreachActive</span><span class="params">(<span name="f">f: (<span class="extype" name="scala.Int">Int</span>, <span class="extype" name="scala.Double">Double</span>) ⇒ <span class="extype" name="scala.Unit">Unit</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
<p class="shortcomment cmt">Applies a function <code>f</code> to all the active elements of dense and sparse vector.</p><div class="fullcomment"><div class="comment cmt"><p>Applies a function <code>f</code> to all the active elements of dense and sparse vector.
</p></div><dl class="paramcmts block"><dt class="param">f</dt><dd class="cmt"><p>the function takes two parameters where the first parameter is the index of
the vector with type <code>Int</code>, and the second parameter is the corresponding value
with type <code>Double</code>.</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.6.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="scala.AnyRef#getClass" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="getClass():Class[_]"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#getClass():Class[_]" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">getClass</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.Class">Class</span>[_]</span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd><dt>Annotations</dt><dd>
<span class="name">@native</span><span class="args">()</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#hashCode" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="hashCode():Int"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#hashCode():Int" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">hashCode</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
</span>
<p class="shortcomment cmt">Returns a hash code value for the vector.</p><div class="fullcomment"><div class="comment cmt"><p>Returns a hash code value for the vector. The hash code is based on its size and its first 128
nonzero entries, using a hash algorithm similar to <code>java.util.Arrays.hashCode</code>.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a> → AnyRef → Any</dd></dl></div>
</li><li name="scala.Any#isInstanceOf" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="isInstanceOf[T0]:Boolean"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#isInstanceOf[T0]:Boolean" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">isInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li name="scala.AnyRef#ne" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="ne(x$1:AnyRef):Boolean"></a><a id="ne(AnyRef):Boolean"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#ne(x$1:AnyRef):Boolean" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">ne</span><span class="params">(<span name="arg0">arg0: <a href="../../../../../scala/index.html#AnyRef=Object" class="extmbr" name="scala.AnyRef">AnyRef</a></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.AnyRef#notify" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="notify():Unit"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#notify():Unit" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">notify</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@native</span><span class="args">()</span>
</dd></dl></div>
</li><li name="scala.AnyRef#notifyAll" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="notifyAll():Unit"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#notifyAll():Unit" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">notifyAll</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@native</span><span class="args">()</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#numActives" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="numActives:Int"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#numActives:Int" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">numActives</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
</span>
<p class="shortcomment cmt">Number of active entries.</p><div class="fullcomment"><div class="comment cmt"><p>Number of active entries. An &quot;active entry&quot; is an element which is explicitly stored,
regardless of its value.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.4.0&quot;</span>
</span>)</span>
</dd><dt>Note</dt><dd><span class="cmt"><p>Inactive entries have value 0.</p></span></dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#numNonzeros" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="numNonzeros:Int"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#numNonzeros:Int" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">numNonzeros</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
</span>
<p class="shortcomment cmt">Number of nonzero elements.</p><div class="fullcomment"><div class="comment cmt"><p>Number of nonzero elements. This scans all active values and count nonzeros.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.4.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#size" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="size:Int"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#size:Int" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">size</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
</span>
<p class="shortcomment cmt">Size of the vector.</p><div class="fullcomment"><div class="comment cmt"><p>Size of the vector.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.0.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="scala.AnyRef#synchronized" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="synchronized[T0](x$1:=&gt;T0):T0"></a><a id="synchronized[T0](⇒T0):T0"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#synchronized[T0](x$1:=&gt;T0):T0" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">synchronized</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="params">(<span name="arg0">arg0: ⇒ <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>)</span><span class="result">: <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#toArray" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="toArray:Array[Double]"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#toArray:Array[Double]" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">toArray</span><span class="result">: <span class="extype" name="scala.Array">Array</span>[<span class="extype" name="scala.Double">Double</span>]</span>
</span>
<p class="shortcomment cmt">Converts the instance to a double array.</p><div class="fullcomment"><div class="comment cmt"><p>Converts the instance to a double array.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.0.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.Vector#toDense" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="toDense:org.apache.spark.mllib.linalg.DenseVector"></a><a id="toDense:DenseVector"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#toDense:org.apache.spark.mllib.linalg.DenseVector" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">toDense</span><span class="result">: <a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a></span>
</span>
<p class="shortcomment cmt">Converts this vector to a dense vector.</p><div class="fullcomment"><div class="comment cmt"><p>Converts this vector to a dense vector.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.4.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#toJson" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="toJson:String"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#toJson:String" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">toJson</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
</span>
<p class="shortcomment cmt">Converts the vector to a JSON string.</p><div class="fullcomment"><div class="comment cmt"><p>Converts the vector to a JSON string.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.6.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.Vector#toSparse" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="toSparse:org.apache.spark.mllib.linalg.SparseVector"></a><a id="toSparse:SparseVector"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#toSparse:org.apache.spark.mllib.linalg.SparseVector" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">toSparse</span><span class="result">: <a href="SparseVector.html" class="extype" name="org.apache.spark.mllib.linalg.SparseVector">SparseVector</a></span>
</span>
<p class="shortcomment cmt">Converts this vector to a sparse vector with all explicit zeros removed.</p><div class="fullcomment"><div class="comment cmt"><p>Converts this vector to a sparse vector with all explicit zeros removed.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></dd><dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.4.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#toString" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="toString():String"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#toString():String" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">toString</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="org.apache.spark.mllib.linalg.DenseVector">DenseVector</a> → AnyRef → Any</dd></dl></div>
</li><li name="org.apache.spark.mllib.linalg.DenseVector#values" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="values:Array[Double]"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#values:Array[Double]" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">val</span>
</span>
<span class="symbol">
<span class="name">values</span><span class="result">: <span class="extype" name="scala.Array">Array</span>[<span class="extype" name="scala.Double">Double</span>]</span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Annotations</dt><dd>
<span class="name">@Since</span><span class="args">(<span>
<span class="symbol">&quot;1.0.0&quot;</span>
</span>)</span>
</dd></dl></div>
</li><li name="scala.AnyRef#wait" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="wait():Unit"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#wait():Unit" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">wait</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">(<span>
<span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
</span>)</span>
</dd></dl></div>
</li><li name="scala.AnyRef#wait" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="wait(x$1:Long,x$2:Int):Unit"></a><a id="wait(Long,Int):Unit"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#wait(x$1:Long,x$2:Int):Unit" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>, <span name="arg1">arg1: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">(<span>
<span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
</span>)</span>
</dd></dl></div>
</li><li name="scala.AnyRef#wait" visbl="pub" class="indented0 " data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="wait(x$1:Long):Unit"></a><a id="wait(Long):Unit"></a>
<span class="permalink">
<a href="../../../../../org/apache/spark/mllib/linalg/DenseVector.html#wait(x$1:Long):Unit" title="Permalink">
<i class="material-icons"></i>
</a>
</span>
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">(<span>
<span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
</span>)</span>
<span class="name">@native</span><span class="args">()</span>
</dd></dl></div>
</li>
</ol>
</div>
</div>
<div id="inheritedMembers">
<div class="parent" name="org.apache.spark.mllib.linalg.Vector">
<h3>Inherited from <a href="Vector.html" class="extype" name="org.apache.spark.mllib.linalg.Vector">Vector</a></h3>
</div><div class="parent" name="scala.Serializable">
<h3>Inherited from <span class="extype" name="scala.Serializable">Serializable</span></h3>
</div><div class="parent" name="java.io.Serializable">
<h3>Inherited from <span class="extype" name="java.io.Serializable">Serializable</span></h3>
</div><div class="parent" name="scala.AnyRef">
<h3>Inherited from <a href="../../../../../scala/index.html#AnyRef=Object" class="extmbr" name="scala.AnyRef">AnyRef</a></h3>
</div><div class="parent" name="scala.Any">
<h3>Inherited from <span class="extype" name="scala.Any">Any</span></h3>
</div>
</div>
<div id="groupedMembers">
<div class="group" name="Ungrouped">
<h3>Ungrouped</h3>
</div>
</div>
</div>
<div id="tooltip"></div>
<div id="footer"> </div>
</body>
</div>
</div>
</div>
</body>
</html>