object Vector
- Alphabetic
- By Inheritance
- Vector
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[E](elem: (Int, E), elems: (Int, E)*)(implicit arg0: ClassTag[E]): SparseVector[E]
- elems
index-value pairs
- returns
a vector with sparse element storage
-
def
apply[E, F](f: (F) ⇒ E, range: NumericRange[F])(implicit arg0: ClassTag[E], low: At): Vector[E]
- returns
a vector with elements computed from the specified function using equidistant values from the given
range
and implicitly given lower index bound.
val v = Vector((x: Double) => x*x, 0.0 to 10.0 by 1.0)
Example: -
def
apply[E](f: (Int) ⇒ E, begin: Int, end: Int)(implicit arg0: ClassTag[E]): Vector[E]
- returns
a vector with elements computed from the specified function in the index range
[begin, end]
.
val v = Vector((i: Int) => i*i: Double, 1, 5)
Example: -
def
apply[E](elems: E*)(implicit arg0: ClassTag[E], low: At): Vector[E]
- returns
a vector with specified elements and implicitly given lower index bound.
implicit val low = At(0); val v = Vector(1,2,3) //uses specified implicit At(0)
, val v = Vector(1,2,3) //uses default implicit At(1)
- Note
Use this factory method when either the default implicit lower index bound At(1) should be applied or you want to define your own implicit At object in scope. If the low argument would be stated explicitly, a ClassTag argument had to be specified as well, so in this case it is better to use the
at
method with explicit index parameter.
Examples: -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
at[E](at: Int)(elems: E*)(implicit arg0: ClassTag[E]): Vector[E]
- returns
a vector with specified elements and lower index bound.
val v = Vector.at(0)(1,2,3)
Example: - implicit def canBuildFrom[E](implicit arg0: ClassTag[E]): VectorCanBuildFrom[Vector[_], E, Vector[E]]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def fromSeq[E](seq: Seq[E])(low: At)(implicit arg0: ClassTag[E]): Vector[E]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newBuilder[E](implicit arg0: ClassTag[E]): VectorBuilder[E, Vector[E]]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
scal0[E](implicit arg0: ClassTag[E]): E
- returns
the scalar zero according to E
-
def
scal1[E](implicit arg0: ClassTag[E]): E
- returns
the scalar one according to E
-
def
sparse[E](elems: (Int, E)*)(implicit arg0: ClassTag[E]): SparseVector[E]
- elems
index-value pairs
- returns
a vector with sparse element storage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @native() @throws( ... )
- object At