Return correct matrix.
Remove redundancies.

Introduce bug.
Fix resize.
Move order of statements.
Simplify forward propagation.
Initialize RBM gradient with correct sign.
Remove check.
Add constant SOFTMAX (=LINEAR).
Update documentation.
Use constant SOFTMAX.
Merge branch 'master' into add_softmax
Merge pull request #144 from AlexanderFabisch/refactor_sae

Refactor sae
Merge pull request #145 from AlexanderFabisch/add_softmax

Add softmax
Merge branch 'master' into pack_unpack

Conflicts:
	src/RBM.cpp