let dc_matptr_to_mat x m n = let open Dense_complex in let raw = getf (!@ x) data in bigarray_of_ptr array2 (m,n) Bigarray.complex64 raw