Don't use separate arrays, instead just pass array referenece into contructor. Like

```java
Matrix a = factory().createMatrix(new double[][]{....}).
```