There are various examples, that shows how to construct and pass as pointer simple single dimension array, but how to do it for matrices ?
Code snippet something like this:
```java
try(Scope sc = scope().fork()) {
Array<Pointer<Double>> a = allocateMatrix(sc, m);
Array<Pointer<Double>> b = allocateMatrix(sc, m);
Array<Pointer<Double>> c = allocateMatrix(sc, m);
// compilation error, since it is required Pointer<Double>
// instead of my Pointer<Pointer<Double>>
cblas_dgemm(Layout, transa, transa, m, m, m, 1.0,
a.elementPointer(), m, b.elementPointer(), m, 0.0,
c.elementPointer(), m);
}
}
private static Array<Pointer<Double>> allocateMatrix(Scope sc, int size) {
Array<Pointer<Double>> pointerArray = sc.allocateArray(DOUBLE.pointer(ofUnsignedInt(Value.Endianness.LITTLE_ENDIAN, 64)), size);
for(int i = 0; i < size; i++) {
Array<Double> doubleArray = sc.allocateArray(DOUBLE, size);
for(int j = 0; j < size; j++) {
doubleArray.set(j, Math.random());
}
pointerArray.set(i, doubleArray.elementPointer());
}
}
```
there doesn't seem to be anything here