Correct usage of logspace