cdef and assign all C arguments before use
Use copy constructor array() and broadcast_arrays()...

…instead of empty() and copyto()