Packages

object SparseVectorC extends Serializable

The SparseVectorC object is the companion object for the SparseVectorC class.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparseVectorC
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type RowMap = SortedLinkedHashMap[Int, Complex]

    Shorthand type definition for sparse vector

Value Members

  1. def ++(b: Complex, u: SparseVectorC): SparseVectorC

    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

  2. def apply(xs: Array[String], skip: Int): SparseVectorC

    Create a SparseVectorC from an array of Strings, skipping the first 'skip' elements.

    Create a SparseVectorC 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)

  3. def apply(xs: Array[String]): SparseVectorC

    Create a SparseVectorC from an array of Strings.

    Create a SparseVectorC from an array of Strings.

    xs

    the array of the Strings

  4. def apply(x: String, xs: String*): SparseVectorC

    Create a SparseVectorC from one or more values (repeated values String*).

    Create a SparseVectorC from one or more values (repeated values String*).

    x

    the first String

    xs

    the rest of the Strings

  5. def apply(xs: Seq[Complex]): SparseVectorC

    Create a SparseVectorC from a sequence of Complexs.

    Create a SparseVectorC from a sequence of Complexs.

    xs

    the sequence of the Complex numbers

  6. def apply(x: Complex, xs: Complex*): SparseVectorC

    Create a SparseVectorC from one or more values (repeated values Complex*).

    Create a SparseVectorC from one or more values (repeated values Complex*).

    x

    the first Complex number

    xs

    the rest of the Complex numbers

  7. def range(start: Int, end: Int): SparseVectorC

    Return a SparseVectorC containing a sequence of increasing integers in a range.

    Return a SparseVectorC 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)