Distributed memory matrices and vectors