kortschak
85652f6bd8
Add Reset method
...
Reset allows reuse of used matrices, a use that would otherwise be
blocked by dim checking for many operations.
2014-01-22 09:34:49 +10:30
kortschak
1a85feca5c
Harmonise View signature with the rest of the API
2014-01-20 20:45:18 +10:30
kortschak
5a12150bde
Implement Stack and Augment
2014-01-20 15:20:18 +10:30
kortschak
308e631af1
Add views on rows
...
This was suggested in PR Issue#6. Here it is used to simplify
Vectorer-based operations. The next commit will use it in place of
Row/SetRow pairs in decomposition functions.
2014-01-16 11:08:37 +10:30
kortschak
b35b240485
Remove caveat about shape on Norm since Issue #5 is fixed
2014-01-15 14:50:40 +10:30
kortschak
b0e0bdf3de
Rename BlasMatrix to RawMatrix
...
The argument is that people don't care about the underlying
representation. I think they should, but this doesn't really prevent
them from doing so.
2014-01-13 08:50:45 +10:30
kortschak
b10f3a00f3
Change NewDense signature and behaviour
...
This is an API breaking change.
NewDense now panics if len(mat) != r*c, unless mat == nil. When mat is
nil a new, correctly sized slice is allocated.
2014-01-08 09:56:39 +10:30
kortschak
fadcd6dd7f
Avoid confusion with the name realloc
...
Fixes issue 1.
2013-12-27 19:40:43 +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
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
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
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
7b8dc30c92
Add DenseCopyOf convenience function
2013-10-31 10:50:10 +10:30
kortschak
9184de1c41
Change Viewer interface to receiver assignment
2013-10-15 14:14:11 +10:30
kortschak
34da1fe0fb
Change preference for T/TView to Tcopy/T
...
Cheaper is easier.
2013-08-12 10:00:10 +09:30
kortschak
c37eb1b393
Allow callers to know number of elements copied
...
Copy does not fail and (reflecting the built in) copies the minimum
range of the source and destination. Return the number of rows and
columns copied so the caller can determine whether to fail.
2013-08-11 09:44:53 +09:30
kortschak
f75c02d0c0
Changes suggested by Brendan Tracey.
2013-08-11 09:42:49 +09:30
kortschak
57a889ea68
Initial suite of tests
...
This covers basic arithmatic for RowMajor Dense only.
2013-08-10 00:12:36 +09:30
kortschak
2a174ff682
Add copyright notices
2013-08-09 14:19:13 +09:30
kortschak
5faba4f269
First commit of code to gonum/matrix
...
For history prior to this commit, please see log at
github.com/kortschak/matrix.
2013-08-09 13:22:09 +09:30