}
/** Constructs a matrix with the given shape, each cell initialized with zero. */
public DoubleMatrix3D make(int slices, int rows, int columns) {
if (this == sparse) {
return new SparseDoubleMatrix3D(slices, rows, columns);
}
return new DenseDoubleMatrix3D(slices, rows, columns);
}