logsigdim(d, 1) returns 1 instead of d
logsigdim(d, 1) returns 1 instead of d