extended group-by, fixed matrix mult