Make a copy of Z immutable, then attempt to write to it. Return the tuple
(raised, frozen), where raised says whether the write raised an error and
frozen is the read-only copy itself.
Input
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
Output
(True, array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]))