as2D

fun <T> NDStructure<T>.as2D(): Structure2D<T>

Represent a NDStructure as Structure1D. Throw error in case of dimension mismatch