…g multiplied into bias updates
fix tests: - std and var do not have multi-dim implementations - do not use square matrices for tests, hides corner cases - randomize the size of the matrices used in tests - fix x:mean(dim) call to divide by the size of 'dim'.
fixed PairwiseDistance type() function bug. Overloaded type now returns self.
Fixed PairwiseDifference for norms other than 1
…rted when Module.type function is called (this bug has always existed and is not due to the recent changes).
Added cuda support for nn.Abs (and added a test for it)
added 3 fields to cutorch.getDeviceProperties.
Fixed an issue with SparseLinear and added a test along with a new class SparseJacobian (for testing sparse modules)
Fix quicksort on constant arrays
Add new asserts to Tester
Fix possible bug in potrf wrapping: return a triangular matrix
The cholesky decomposition is supposed to be upper triangular. The wrapper for Lapack's `potrf`, instead, filled the resulting matrix to make it symmetric. Since this behaviour was introduced in commit 971973d, which dealt with C89 and added such lines for several wrappers, I wonder if this was not a copy/paste overlook. This patch also adds a test for the cholesky decomposition.
Change the comparison with the pivot to strict inequality, not or-equal. This solves the terrible performance of sorting a constant array.