int tdims=this.dimensionality();
int adims=a.dimensionality();
if (adims<tdims) {
int sc=sliceCount();
for (int i=0; i<sc; i++) {
INDArray s=slice(i);
s.set(a);
}
} else if (adims==tdims) {
if (tdims==0) {
set(a.get());
return;
}
int sc=sliceCount();
for (int i=0; i<sc; i++) {
INDArray s=slice(i);
s.set(a.slice(i));
}
} else {
throw new IllegalArgumentException(ErrorMessages.incompatibleShapes(this, a));
}
}