Stock market today: Indexes end mostly higher with Nvidia shares jumping as excitement builds ahead of earnings