We have to create a matrix with given factory. It will alow us to safe memory and do not perform additional conversion. So, you can create a new matrix with

```java
Matrix result = factory.createMatrix(colums, rows);
```