ir vector space code