grnMatrix