RowMajorIndex

matr.util.RowMajorIndex
object RowMajorIndex

Utility for converting zero-based element position to one-dimensional row-major index and back.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def fromIdx(idx: Int, numCols: Int): (Int, Int)
def toIdx(rowIdx: Int, colIdx: Int, numCols: Int): Int