more flexible get_as_matrix, lincombo now takes dict input