Use latest core.matrix
Implement PDoubleArrayOut
Implement PDoubleArrayOutput for matrices