spark
.
util
Vector
class
Vector
extends
Serializable
Linear Supertypes
Serializable
,
Serializable
, AnyRef,
Any
Ordering
Alphabetic
By inheritance
Inherited
Hide All
Show all
Vector
Serializable
Serializable
AnyRef
Any
Visibility
Public
All
Instance Constructors
new
Vector
(
elements:
Array
[
Double
]
)
Value Members
final
def
!=
(
arg0: AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
def
*
(
scale:
Double
)
:
Vector
def
+
(
other:
Vector
)
:
Vector
def
+=
(
other:
Vector
)
:
Vector
def
-
(
other:
Vector
)
:
Vector
def
/
(
d:
Double
)
:
Vector
final
def
==
(
arg0: AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
def
add
(
other:
Vector
)
:
Vector
def
addInPlace
(
other:
Vector
)
:
Vector
def
apply
(
index:
Int
)
:
Double
final
def
asInstanceOf
[
T0
]
: T0
Definition Classes
Any
def
clone
()
: AnyRef
Attributes
protected[
lang
]
Definition Classes
AnyRef
Annotations
@throws
()
def
dist
(
other:
Vector
)
:
Double
def
divide
(
d:
Double
)
:
Vector
def
dot
(
other:
Vector
)
:
Double
val
elements
:
Array
[
Double
]
final
def
eq
(
arg0: AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
lang
]
Definition Classes
AnyRef
Annotations
@throws
()
final
def
getClass
()
: java.lang.Class[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
length
:
Int
def
multiply
(
d:
Double
)
:
Vector
final
def
ne
(
arg0: AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
plusDot
(
plus:
Vector
,
other:
Vector
)
:
Double
return (this + plus) dot other, but without creating any intermediate storage
return (this + plus) dot other, but without creating any intermediate storage
plus
other
@return
def
squaredDist
(
other:
Vector
)
:
Double
def
subtract
(
other:
Vector
)
:
Vector
def
sum
:
Double
final
def
synchronized
[
T0
]
(
arg0: ⇒ T0
)
: T0
Definition Classes
AnyRef
def
toString
()
: String
Definition Classes
Vector
→ AnyRef → Any
def
unary_-
:
Vector
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
()
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
()
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
()
Inherited from
Serializable
Inherited from
Serializable
Inherited from AnyRef
Inherited from
Any