des.il.util

Undocumented in source.

Members

Aliases

CoordType
alias CoordType = ptrdiff_t
CoordVector
alias CoordVector(size_t N, T = CoordType) = Vector!(N, T, coordinateAccessString(N))
SizeVector
alias SizeVector(size_t N, T = CoordType) = Vector!(N, T, sizeAccessString(N))
VolumeVector
alias VolumeVector(size_t N, T = CoordType) = Vector!(N * 2, T, volumeAccessString(N))

Classes

ImageException
class ImageException

Functions

coordinateAccessString
string coordinateAccessString(size_t N)
Undocumented in source. Be warned that the author may not have intended to support it.
getCoord
CoordType[N] getCoord(CoordType[N] size, size_t index)

get coordinate in N-dim space by N-dim size and line index

getIndex
size_t getIndex(CoordType[N] size, CoordType[N] crd)

get index of element in 1-dim array by N-dim coordinate

getOrigIndexByLayerCoord
size_t getOrigIndexByLayerCoord(CoordType[N] size, size_t K, size_t lindex, size_t lno)

get line index in origin array by layer line index and layer number

isAllCompPositive
bool isAllCompPositive(V v)

checks all components

pasteStat
T[N + 1] pasteStat(T[N] arr, size_t K, T val)

paste value to static array

removeStat
T[N - 1] removeStat(T[N] arr, size_t K)

remove value from static array

sizeAccessString
string sizeAccessString(size_t N)
Undocumented in source. Be warned that the author may not have intended to support it.
volumeAccessString
string volumeAccessString(size_t N)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta