Packages

class TripletR extends AnyRef

The TripletR class holds a run length encoded triplet, e.g., (_1, 2, 3) Triplets are used for storing compressed vectors and matrices.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TripletR
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TripletR(value: Real, count: Int, startPos: Int)

    value

    the value itself

    count

    the number of times the value is repeated in a run

    startPos

    the starting position of the value

Value Members

  1. var count: Int
  2. def equals(y: Any): Boolean

    Override 'equals' to determine whether 'this' triplet equals triplet 'y'.

    Override 'equals' to determine whether 'this' triplet equals triplet 'y'.

    y

    the triplet to compare with this

    Definition Classes
    TripletR → AnyRef → Any
  3. def hashCode(): Int

    Must also override 'hashCode' for 'this' vector to be compatible with equals.

    Must also override 'hashCode' for 'this' vector to be compatible with equals.

    Definition Classes
    TripletR → AnyRef → Any
  4. var startPos: Int
  5. def toString(): String

    Converts 'this' triplet to a string.

    Converts 'this' triplet to a string.

    Definition Classes
    TripletR → AnyRef → Any
  6. def update(x: (Real, Int, Int)): Unit

    Update 'this' triplet.

    Update 'this' triplet.

    x

    the tuple value to which 'this' triplet should be updated

  7. var value: Real