Packages

object SparseVectorR extends Serializable

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

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparseVectorR
  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, Real]

    Shorthand type definition for sparse vector

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. 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

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def apply(xs: Array[String], skip: Int): SparseVectorR

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

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

  6. def apply(xs: Array[String]): SparseVectorR

    Create a SparseVectorR from an array of Strings.

    Create a SparseVectorR from an array of Strings.

    xs

    the array of the Strings

  7. def apply(x: String, xs: String*): SparseVectorR

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

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

    x

    the first String

    xs

    the rest of the Strings

  8. def apply(xs: Seq[Real]): SparseVectorR

    Create a SparseVectorR from a sequence of Reals.

    Create a SparseVectorR from a sequence of Reals.

    xs

    the sequence of the Real numbers

  9. def apply(x: Real, xs: Real*): SparseVectorR

    Create a SparseVectorR from one or more values (repeated values Real*).

    Create a SparseVectorR from one or more values (repeated values Real*).

    x

    the first Real number

    xs

    the rest of the Real numbers

  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. 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)

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped