btracey
18fec70c94
Added routines for testing level 1 double functions
2014-01-06 13:14:45 -08:00
kortschak
4dd9dc7caa
Make [SD]rotm{,g} more idiomatic Go
...
We now have an int Flags type that indicates the status of the H matrix
and the [SD]RotmParams struct is returned as a concrete type since it is
not intended to be mutated by the rotm routine.
This also picked up a non-allocation bug in goblas.Drotmg.
2013-12-31 13:27:01 +10:30
kortschak
fadcd6dd7f
Avoid confusion with the name realloc
...
Fixes issue 1.
2013-12-27 19:40:43 +10:30
btracey
01fd4d8791
Merge branch 'master' of https://github.com/gonum/unit
2013-12-26 13:13:24 -05:00
kortschak
355aed20f7
Allow negative inc[XY]
...
This is allows in the reference implementation for some reason, so we
allow it here too.
2013-12-23 13:41:32 +10:30
kortschak
37f6c3a730
Add license headers
2013-11-29 15:49:45 +10:30
dane-unltd
c3ee9fcffd
Fixed Dot
2013-11-20 19:48:39 +01:00
kortschak
172ec6bf55
Add test for Norm
...
Norm(±2) is, not surprisingly, difficult to pin down. The expected
values here agree with numpy well for Norm(2), less will with MATLAB
and the expectation for Norm(-2) is a fair amount (FWIW at this
magnitude) away from the numpy and MATLAB values which agree quite
well with each other.
2013-11-20 09:53:11 +10:30
kortschak
01d2d8774d
Fill in minimal Norm(±2) code
...
We should be able to handle wide matrices, but this will come later.
2013-11-20 09:12:51 +10:30
kortschak
8a6654a9a1
Merge mat64/la into mat64
...
This has been done to resolve a circular dependency issue that prevents
Norm(2) and Norm(-2) from being implemented.
2013-11-20 09:07:33 +10:30
dane
ea56340775
added panics in stubs.go
2013-11-18 16:57:12 +01:00
dane
41e85eaa9b
initial goblas commit
2013-11-18 16:49:59 +01:00
kortschak
e7389856e5
Forbid loading column major blas matrix
...
This may change. Perhaps we can have an allocating LoadBlas for column
major blas matrices. Thinking.
2013-11-15 12:53:55 +10:30
kortschak
0e660dd08a
Allow client to see which engine is registered
2013-11-15 12:46:07 +10:30
kortschak
ffbeadd5fa
Remove intermediate vars required for conditional order
2013-11-15 12:44:27 +10:30
kortschak
2350c3a978
Remove order conditionals
2013-11-15 11:15:27 +10:30
kortschak
26b1734f85
Make order constant
...
This is a start to removing column major handling of matrices.
2013-11-15 10:50:23 +10:30
kortschak
dd2cd47b0c
Simplify L\U tests
2013-11-05 09:34:29 +10:30
kortschak
a9c60e674c
Fix off by one error in L() code
...
This was missed in tests because the in-place special case was not
tested. Thanks to David Neumann for the heads up.
2013-11-05 09:27:15 +10:30
kortschak
04796ca6f7
We are not going to implement Det or Inv
...
This functionality is provided in la.
2013-10-31 16:06:59 +10:30
kortschak
f36c5cf03b
Update error strings
2013-10-31 16:04:31 +10:30
kortschak
1a48607293
Add a check for blas engine registration
...
This will give a more meaningful message when people forget to do this.
2013-10-31 15:57:26 +10:30
kortschak
cb949b4564
Fix incorrect dimension adjustment for View
...
We were previously mixing semantics, with expectedly bad outcomes.
2013-10-31 13:30:54 +10:30
kortschak
9ef145f4df
Change from libblas to libcblas
...
This is required for some distributions.
2013-10-31 12:09:27 +10:30
kortschak
6e75c43e8e
Add test for Inverse
2013-10-31 11:31:43 +10:30
kortschak
effc954a86
Add check for self determinant calculation
...
If the matrix can calculate its own determinant, let it.
2013-10-31 11:16:31 +10:30
kortschak
76156164b4
Wrap associated data and methods
...
The API was too cluttered. This should fix that.
2013-10-31 10:52:38 +10:30
kortschak
7b8dc30c92
Add DenseCopyOf convenience function
2013-10-31 10:50:10 +10:30
kortschak
79c029df34
Add convenience functions for inverse and solve
2013-10-31 09:54:45 +10:30
kortschak
b0fcacac77
LU decomposition
...
Test data is duplicated in source; this will be fixed after a helper is
added to mat64.Dense.
2013-10-31 09:29:19 +10:30
kortschak
8d32714967
Add Cholesky and QR decomposition
...
The API is starting to get a little cluttered. We should consider
wrapping results from decompositions in structs.
2013-10-30 12:15:25 +10:30
kortschak
fd73bc1b29
Add failing case matrix for fat matrix SVD
...
This passes as long as we only ask for sigma, and we allow sigma to be
one element longer than necessary.
2013-10-30 08:37:52 +10:30
kortschak
a2d1051f45
Remove unnecessary brackets
2013-10-29 22:06:29 +10:30
kortschak
bc2d623f73
Further syntax simplification
2013-10-29 22:04:16 +10:30
kortschak
e93c40f723
Use Hypot instead of Sqrt
...
This alters exact test results - the expects are changed to match.
2013-10-29 21:50:08 +10:30
kortschak
fb71084490
More .= operator use and syntax simplification
2013-10-29 21:42:23 +10:30
kortschak
e94e93baed
Add test values from Jama and test arithmetically
2013-10-29 17:00:56 +10:30
kortschak
e05d3a5bc3
Avoid allocation
...
We use a instead of copying it to v and hess.
2013-10-29 17:00:08 +10:30
kortschak
3a2f38788a
Use /= operator subtly
2013-10-29 16:25:53 +10:30
kortschak
a5412c8c67
Use .= operators where possible
2013-10-29 16:25:21 +10:30
kortschak
9470517edd
Singular Value and Eigen Decomposition functions
...
These are both derived from the Jama 1.0.3 java code, reducing the
degree of allocations and using mat64 Matrix methods for element access.
2013-10-29 16:17:42 +10:30
btracey
656d03b34d
Added time unit
2013-10-25 13:27:09 -07:00
btracey
f8f28413ff
Removed unit.go
2013-10-25 13:16:09 -07:00
btracey
353e90e948
Moved unit types to different files
2013-10-25 13:14:59 -07:00
kortschak
9184de1c41
Change Viewer interface to receiver assignment
2013-10-15 14:14:11 +10:30
btracey
4e576cf815
Merge branch 'master' of https://github.com/gonum/unit
2013-10-13 16:24:14 -07:00
kortschak
f4e78f0c97
Avoid unnecessary map accesses
2013-10-14 09:32:03 +10:30
btracey
dbaa7821bf
Added dimension comparison tests
2013-10-11 11:35:15 -07:00
btracey
e1f56d4760
Added initialization test
2013-10-11 11:06:03 -07:00
btracey
688d7d8e68
Added check that zero dimensions aren't added during NewUnit
2013-10-11 10:27:55 -07:00