Fixed pointer passing for dense matrices