Documented setMatrix method