Packages

class TripletQ extends AnyRef

The TripletQ 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. TripletQ
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TripletQ(value: Rational, 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
    TripletQ → 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
    TripletQ → AnyRef → Any
  4. var startPos: Int
  5. def toString(): String

    Converts 'this' triplet to a string.

    Converts 'this' triplet to a string.

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

    Update 'this' triplet.

    Update 'this' triplet.

    x

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

  7. var value: Rational