The Box constructor is type-unstable, because of the two types of unit cells and the two dimensions that are possible.
This type instability is benign, as it does not propagate to the performance-critical functions, but anyway it is annoying sometimes, if it is being used from within a larger code base, because it causes some minor allocations.
The
Boxconstructor is type-unstable, because of the two types of unit cells and the two dimensions that are possible.This type instability is benign, as it does not propagate to the performance-critical functions, but anyway it is annoying sometimes, if it is being used from within a larger code base, because it causes some minor allocations.