Let A be an invertible d×d matrix with integer elements. Then A determines a self-map T of the d-dimensional torus Td=Rd/Zd. Given a real number τ>0, and a sequence {zn} of points in Td, let Wτ be the set of points x∈Td such that Tn(x)∈B(zn,e−nτ) for infinitely many n∈N. The Hausdorff dimension of Wτ has previously been studied by Hill--Velani and Li--Liao--Velani--Zorin. We provide complete results on the Hausdorff dimension of Wτ for any expanding matrix. For hyperbolic matrices, we compute the dimension of Wτ only when A is a 2×2 matrix. We give counterexamples to a natural candidate for a dimension formula for general dimension d.