Idris2Doc : Data.NumIdr.Array.Coords

Data.NumIdr.Array.Coords

(source)

Reexports

importpublic Data.Vect.Quantifiers

Definitions

range : Nat->Nat->ListNat
Totality: total
Visibility: public export
rangeLen : (x : Nat) -> (y : Nat) ->length (rangexy) =minusyx
Totality: total
Visibility: export
rangeLenZ : (x : Nat) ->length (range0x) =x
Totality: total
Visibility: export
assertFin : Nat->Finn
Totality: total
Visibility: export
Coords : VectrkNat->Type
  A type-safe coordinate system for an array. The coordinates are
values of `Fin dim`, where `dim` is the dimension of each axis.

Totality: total
Visibility: public export
toNB : Coordss->VectrkNat
  Forget the shape of the array by converting each index to type `Nat`.

Totality: total
Visibility: export
validateCoords : (s : VectrkNat) ->VectrkNat->Maybe (Coordss)
Totality: total
Visibility: export
dataCRange : Nat->Type
Totality: total
Visibility: public export
Constructors:
One : Finn->CRangen
One' : Finn->CRangen
All : CRangen
StartBound : Fin (Sn) ->CRangen
EndBound : Fin (Sn) ->CRangen
Bounds : Fin (Sn) ->Fin (Sn) ->CRangen
Indices : List (Finn) ->CRangen
Filter : (Finn->Bool) ->CRangen
CoordsRange : VectrkNat->Type
Totality: total
Visibility: public export
dataCRangeNB : Type
Totality: total
Visibility: public export
Constructors:
One : Nat->CRangeNB
One' : Nat->CRangeNB
All : CRangeNB
StartBound : Nat->CRangeNB
EndBound : Nat->CRangeNB
Bounds : Nat->Nat->CRangeNB
Indices : ListNat->CRangeNB
Filter : (Nat->Bool) ->CRangeNB
Vects : VectrkNat->Type->Type
Totality: total
Visibility: public export
collapse : Vectssa->Lista
Totality: total
Visibility: export
mapWithIndex : (VectrkNat->a->b) ->Vectssa->Vectssb
Totality: total
Visibility: export
getLocation' : VectrkNat->VectrkNat->Nat
Totality: total
Visibility: export
getLocation : VectrkNat->Coordss->Nat
  Compute the memory location of an array element
given its coordinate and the strides of the array.

Totality: total
Visibility: export
cRangeToList : CRangen->EitherNat (ListNat)
Totality: total
Visibility: public export
newRank : CoordsRanges->Nat
Totality: total
Visibility: public export
newShape : (rs : CoordsRanges) ->Vect (newRankrs) Nat
  Calculate the new shape given by a coordinate range.

Totality: total
Visibility: public export
getCoordsList : (rs : CoordsRanges) ->List (VectrkNat, Vect (newRankrs) Nat)
Totality: total
Visibility: export
validateCRange : (s : VectrkNat) ->VectrkCRangeNB->Maybe (CoordsRanges)
Totality: total
Visibility: export
assertCRange : (s : VectrkNat) ->VectrkCRangeNB->CoordsRanges
Totality: total
Visibility: export
cRangeNBToList : Nat->CRangeNB->EitherNat (ListNat)
Totality: total
Visibility: public export
newRank : VectrkNat->VectrkCRangeNB->Nat
Totality: total
Visibility: public export
newShape : (s : VectrkNat) -> (is : VectrkCRangeNB) ->Vect (newRanksis) Nat
  Calculate the new shape given by a coordinate range.

Totality: total
Visibility: public export
getAllCoords' : VectrkNat->List (VectrkNat)
Totality: total
Visibility: export
getAllCoords : (s : VectrkNat) ->List (Coordss)
Totality: total
Visibility: export