Nature Electronics, Published online: 12 June 2026; doi:10.1038/s41928-026-01638-9 A matrix representation in which any target matrix is decomposed into the product of two adjustable submatrices allows analogue in-memory computing systems to be immune to hardware faults and increase density.