Creates a lag context that runs distributively in Spark
Creates a lag context that runs distributively in Spark
the SparkContext
dimension of the graph
blocking factor for graph
Creates a lag context that runs in a single JVM
Creates a lag context that runs in a single JVM
dimension of the graph
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.
the element type of the matrix
the scala Seq of Seq representation of the matrix (outer Seq corresponds to rows and the inner Seq corresponds to columns)
the sparse value to be used it the conversion.
a new scala map representing the matrix
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
the element type of the matrix
the scala map representation of the vector
the sparse value of the map representation
a new scala Vector representing the vector
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
the element type of the matrix
the scala map representation of the matrix
the sparse value of the map representation
a new scala Vector of Vectors (outer Vector corresponds to rows and the inner Vector corresponds to columns) representing the matrix
Converts a scala Vector of Vectors representing a matrix to a string
Converts a scala Vector of Vectors representing a matrix to a string
the element type of the Vector
the Vector of Vectors, where the outer Vector corresponds to rows and the inner Vector corresponds to columns
a functor to convert an element of the matrix to a string
a string representation of the matrix
Converts a scala Vector to a string.
Converts a scala Vector to a string.
the element type of the vector
the vector
a functor to convert an element of the vector to a string
a string representation of the vector
Companion object for LagContext. In addition to general utility functions, also contains functions that facilitate import and export of vectors and matrices.