Smart matrices