object SparseVectorR extends Serializable
The SparseVectorR
object is the companion object for the SparseVectorR
class.
- Alphabetic
- By Inheritance
- SparseVectorR
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def ++(b: Real, u: SparseVectorR): SparseVectorR
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
- def apply(xs: Array[String], skip: Int): SparseVectorR
Create a
SparseVectorR
from an array ofString
s, skipping the first 'skip' elements.Create a
SparseVectorR
from an array ofString
s, skipping the first 'skip' elements. If an element is non-numeric, use its hashcode. FIX: Might be better to map non-numericString
s to ordinal values.- xs
the array of the
String
s- skip
the number of elements at the beginning to skip (e.g., id column)
- def apply(xs: Array[String]): SparseVectorR
Create a
SparseVectorR
from an array ofString
s.Create a
SparseVectorR
from an array ofString
s.- xs
the array of the
String
s
- def apply(x: String, xs: String*): SparseVectorR
Create a
SparseVectorR
from one or more values (repeated valuesString
*).Create a
SparseVectorR
from one or more values (repeated valuesString
*).- x
the first
String
- xs
the rest of the
String
s
- def apply(xs: Array[Real]): SparseVectorR
Create a
SparseVectorR
from a sequence ofReal
s.Create a
SparseVectorR
from a sequence ofReal
s.- xs
the sequence of the Real numbers
- def apply(xs: Seq[Real]): SparseVectorR
Create a
SparseVectorR
from a sequence ofReal
s.Create a
SparseVectorR
from a sequence ofReal
s.- xs
the sequence of the Real numbers
- def apply(x: Real, xs: Real*): SparseVectorR
Create a
SparseVectorR
from one or more values (repeated valuesReal
*).Create a
SparseVectorR
from one or more values (repeated valuesReal
*).- x
the first
Real
number- xs
the rest of the
Real
numbers
- def range(start: Int, end: Int): SparseVectorR
Return a
SparseVectorR
containing a sequence of increasing integers in a range.Return a
SparseVectorR
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)