object VectorC extends Serializable
The VectorC
object is the companion object for the VectorC
class.
- Alphabetic
- By Inheritance
- VectorC
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
++(b: Complex, u: VectorC): VectorC
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 (same kind, more efficient)
-
def
++(b: Complex, u: VectoC): VectorC
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 (any kind)
-
def
apply(xs: Array[String], skip: Int): VectorC
Create a
VectorC
from an array of Strings, skipping the first 'skip' elements.Create a
VectorC
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]): VectorC
Create a
VectorC
from an array of Strings.Create a
VectorC
from an array of Strings. For numeric types, assign missing value indicator upon format failure.- xs
the array of the Strings
-
def
apply(x: String, xs: String*): VectorC
Create a
VectorC
from one or more values (repeated values String*).Create a
VectorC
from one or more values (repeated values String*). For numeric types, assign missing value indicator upon format failure.- x
the first String
- xs
the rest of the Strings
-
def
apply(xs: Seq[Complex]): VectorC
Create a
VectorC
from a sequence/array ofComplex
s.Create a
VectorC
from a sequence/array ofComplex
s.- xs
the sequence/array of the
Complex
numbers
-
def
apply(x: Complex, xs: Complex*): VectorC
Create a
VectorC
from one or more values (repeated valuesComplex
*).Create a
VectorC
from one or more values (repeated valuesComplex
*).- x
the first
Complex
number- xs
the rest of the
Complex
numbers
-
def
fill(n: Int)(x: Complex): VectorC
Create a
VectorC
with 'n' elements and fill it with the value 'x'.Create a
VectorC
with 'n' elements and fill it with the value 'x'.- n
the number of elements
- x
the value to assign to all elements
-
def
one(size: Int): VectorC
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 new vector
-
def
range(start: Int, end: Int): VectorC
Return a
VectorC
containing a sequence of increasing integers in a range.Return a
VectorC
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)