array_object/
adaptor.rs

1/// Pair(re, im) for a single complex.
2pub struct Pair<T>(pub T, pub T);
3
4/// VecShape(elements in row major order, shape of array) for any type T.
5pub struct VecShape<T>(pub Vec<T>, pub Vec<u64>);
6
7/// VecVec(re vector, im vector) for complex vector.
8pub struct VecVec<T>(pub Vec<T>, pub Vec<T>);
9
10/// VecVecShape(real elements in row major order, imaginary elements in row major order, shape of array) for complex array.
11pub struct VecVecShape<T>(pub Vec<T>, pub Vec<T>, pub Vec<u64>);