U.S. stocks rose across the board Wednesday following big gains in Asia and Europe, a buoyant end to the worst quarter for the market in four years. Energy companies and raw material suppliers, the biggest losers in the quarter, rose more than 2 percent each.

U.S. stocks rose across the board Wednesday following big gains in Asia and Europe, a buoyant end to the worst quarter for the market in four years. Energy companies and raw material suppliers, the biggest losers in the quarter, rose more than 2 percent each.

On Wednesday:

The Dow Jones industrial average gained 235.57 points, or 1.5 percent, to 16,284.70.

The Standard & Poor's 500 index jumped 35.94 points, or 1.9 percent, to 1,920.03.

The Nasdaq composite climbed 102.84 points, or 2.3 percent, to 4,620.16.

For the week:

The Dow is down 29.97 points, or 0.2 percent.

The S&P 500 index is down 11.31 points, or 0.6 percent.

The Nasdaq is down 66.33 points, or 1.4 percent.

For the year:

The Dow is down 1,538.37 points, or 8.6 percent.

The S&P 500 index is down 138.87 points, or 6.7 percent.

The Nasdaq is down 115.89 points, or 2.5 percent.