src/bioseq/matrix

  Source   Edit

Matrix for working with sequence alignments. There's not much here yet.

Types

Matrix[T] = object
  rows, cols: int
  data: seq[T]
  Source   Edit

Procs

proc `$`[T](m: Matrix[T]): string
  Source   Edit
proc `[]=`[T](m: var Matrix[T]; row, col: int; s: T)
Set a single element.   Source   Edit
proc `[]`[T](m: Matrix[T]; row, col: int): T
Get a single element.   Source   Edit
proc `[]`[T](m: var Matrix[T]; row, col: int): var T
Get a single element.   Source   Edit
proc cols[T](m: Matrix[T]): int
Get column dimension.   Source   Edit
proc concat[T](matrices: varargs[Matrix[T]]): Matrix[T]
  Source   Edit
proc dim[T](m: Matrix[T]): (int, int)
Get (row, column) dimensions tuple.   Source   Edit
proc newMatrix[T](rows, cols: int): Matrix[T]
  Source   Edit
proc newMatrix[T](rows, cols: int; data: seq[T]): Matrix[T]
  Source   Edit
proc rows[T](m: Matrix[T]): int
Get row dimension.   Source   Edit
proc stack[T](matrices: varargs[Matrix[T]]): Matrix[T]
Stack matrices together.   Source   Edit
proc toString[T](m: Matrix[T]): string
  Source   Edit