object VectorD extends Serializable
The VectorD
object is the companion object for the VectorD
class.
- Alphabetic
- By Inheritance
- VectorD
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++(b: Double, u: VectorD): VectorD
Concatenate scalar 'b' and vector 'u'.
Concatenate scalar 'b' and vector 'u'.
- b
the scalar to be concatenated - first part
- u
the vector to be concatenated - second part
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(xs: Array[String], skip: Int): VectorD
Create a
VectorD
from an array of Strings, skipping the first 'skip' elements.Create a
VectorD
from an array of Strings, skipping the first 'skip' elements. If an element is non-numeric, use its hashcode. FIX: Might be better to map non-numeric Strings to ordinal values.- xs
the array of the Strings
- skip
the number of elements at the beginning to skip (e.g., id column)
-
def
apply(xs: Array[String]): VectorD
Create a
VectorD
from an array of Strings.Create a
VectorD
from an array of Strings.- xs
the array of the Strings
-
def
apply(x: String, xs: String*): VectorD
Create a
VectorD
from one or more values (repeated values String*).Create a
VectorD
from one or more values (repeated values String*).- x
the first String
- xs
the rest of the Strings
-
def
apply(xs: Seq[Double]): VectorD
Create a
VectorD
from a sequence of Doubles.Create a
VectorD
from a sequence of Doubles.- xs
the sequence of the Double numbers
-
def
apply(x: Double, xs: Double*): VectorD
Create a
VectorD
from one or more values (repeated values Double*).Create a
VectorD
from one or more values (repeated values Double*).- x
the first Double number
- xs
the rest of the Double numbers
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
await(): Unit
Await the completion of all
VecThread
s. -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fill(n: Int)(x: Double): VectorD
Create a
VectorD
with 'n' elements and fill it with the value 'x'.Create a
VectorD
with 'n' elements and fill it with the value 'x'.- n
the number of elements
- x
the value to assign to all elements
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
makeThreads(): Array[VecThread]
Make several
VecThread
s to run tasks in parallel. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
one(size: Int): VectorD
Create a one vector (all elements are one) of length 'size'.
Create a one vector (all elements are one) of length 'size'.
- size
the size of the vector
-
def
range(start: Int, end: Int): VectorD
Return a
VectorD
containing a sequence of increasing integers in a range.Return a
VectorD
containing a sequence of increasing integers in a range.- start
the start value of the vector, inclusive
- end
the end value of the vector, exclusive (i.e., the first value not returned)
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated