}
return StridedMatrix.wrap(data, rows, cols, offset, rowStride, colStride);
}
public static AMatrix createSparse(Iterable<INDArray> slices) {
INDArray slice1=slices.iterator().next();
int cc=slice1.sliceCount();
ArrayList<AVector> al=new ArrayList<AVector>();
for (INDArray a:slices) {
if ((a.dimensionality()!=1)||(a.sliceCount()!=cc)) throw new IllegalArgumentException(ErrorMessages.incompatibleShape(a));
al.add(a.sparse().asVector());
}