matrix use col major and post multiplication