switch LinearMap to current constructor convention