Object/Trait

com.ibm.lagraph

LagContext

Related Docs: trait LagContext | package lagraph

Permalink

object LagContext

Companion object for LagContext. In addition to general utility functions, also contains functions that facilitate import and export of vectors and matrices.

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def getLagDstrContext(sc: SparkContext, graphSize: Long, nblock: Int): LagDstrContext

    Permalink

    Creates a lag context that runs distributively in Spark

    Creates a lag context that runs distributively in Spark

    sc

    the SparkContext

    graphSize

    dimension of the graph

    nblock

    blocking factor for graph

  11. def getLagSmpContext(graphSize: Long): LagSmpContext

    Permalink

    Creates a lag context that runs in a single JVM

    Creates a lag context that runs in a single JVM

    graphSize

    dimension of the graph

  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def mapFromSeqOfSeq[T](vMatrix: Seq[Seq[T]], sparseValue: T)(implicit arg0: ClassTag[T]): Map[(Long, Long), T]

    Permalink

    Using a user-specified sparse value, converts a matrix represented by a scala Seq of Seq into a map representing the matrix.

    Using a user-specified sparse value, converts a matrix represented by a scala Seq of Seq into a map representing the matrix.

    T

    the element type of the matrix

    vMatrix

    the scala Seq of Seq representation of the matrix (outer Seq corresponds to rows and the inner Seq corresponds to columns)

    sparseValue

    the sparse value to be used it the conversion.

    returns

    a new scala map representing the matrix

  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. def vectorFromMap[T](m: Map[Long, T], sparseValue: T, size: Long): Vector[T]

    Permalink

    Converts a vector represented by a scala map and sparse value into a vector represented by a scala Vector

    Converts a vector represented by a scala map and sparse value into a vector represented by a scala Vector

    T

    the element type of the matrix

    m

    the scala map representation of the vector

    sparseValue

    the sparse value of the map representation

    returns

    a new scala Vector representing the vector

  21. def vectorOfVectorFromMap[T](m: Map[(Long, Long), T], sparseValue: T, size: (Long, Long)): Vector[Vector[T]]

    Permalink

    Converts a matrix represented by a scala map and sparse value into a matrix represented by a scala Vector of Vectors

    Converts a matrix represented by a scala map and sparse value into a matrix represented by a scala Vector of Vectors

    T

    the element type of the matrix

    m

    the scala map representation of the matrix

    sparseValue

    the sparse value of the map representation

    returns

    a new scala Vector of Vectors (outer Vector corresponds to rows and the inner Vector corresponds to columns) representing the matrix

  22. def vectorOfVectorToString[T](a: Vector[Vector[T]], tToStr: (T) ⇒ String): String

    Permalink

    Converts a scala Vector of Vectors representing a matrix to a string

    Converts a scala Vector of Vectors representing a matrix to a string

    T

    the element type of the Vector

    a

    the Vector of Vectors, where the outer Vector corresponds to rows and the inner Vector corresponds to columns

    tToStr

    a functor to convert an element of the matrix to a string

    returns

    a string representation of the matrix

  23. def vectorToString[T](a: Vector[T], tToStr: (T) ⇒ String): String

    Permalink

    Converts a scala Vector to a string.

    Converts a scala Vector to a string.

    T

    the element type of the vector

    a

    the vector

    tToStr

    a functor to convert an element of the vector to a string

    returns

    a string representation of the vector

  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped