Commit Graph

25 Commits

Author SHA1 Message Date
Vladimir Chalupecky
bd50f5876c mat: add fastpath for SymBandDense to VecDense.MulVec 2019-09-26 13:38:37 +02:00
Brendan Tracey
16f4144126 mat: Change methods to accept empty instead of nil matrices (#1090)
* mat: Change methods to accept empty instead of nil matrices

While here, fix enough to compile.

Updates #1081.
2019-09-20 19:19:07 +01:00
Brendan Tracey
975d99cd20 mat,all: Rename IsZero to IsEmpty (#1088)
This avoids the confusion between Zero() and IsZero() which sounds like they should be related
to one another but are not. This makes IsEmpty the counterpart to Reset. Add check for Zero in allMatrix

Fixes #1083.
Updates #1081.
2019-09-15 13:53:29 +01:00
Brendan Tracey
cd52c4d030 mat: Expose ReuseAs method to help resizing (#1082)
* mat: Expose ReuseAs method to help resizing

Fixes #963
2019-09-14 09:17:29 +01:00
Dan Kortschak
4241a63a39 mat: remove redundant check constructions
This was missed in a8659125a9.
2019-09-08 07:14:59 +09:30
Brendan Tracey
a8659125a9 mat: replace untranspose with untransposeExtract (#1036)
* mat: replace untranspose with untransposeExtract

This leaves one remaining use in TriDense but that case is a bit more complicated
2019-07-24 14:37:15 +01:00
Dan Kortschak
0a381ca743 mat: ensure number of elements to be copied is sanitised for blas64 2019-07-04 17:01:04 +09:30
Brendan Tracey
bcbf6c8e4e mat: Add Zero method to reset values of matrices (#819)
* mat: Add Zero method to reset values of matrices
2019-01-27 22:16:06 +00:00
Brendan Tracey
572d9101fe blas64: add length field N to Vector
blas64: add length field N to Vector

Alongside, fix the implementation of mat.VecDense and mat.Diagonal, as well as other changes needed to fix this change.

Fixes #736.
2018-12-10 08:36:04 +00:00
Dan Kortschak
3b99883391 mat: disallow New calls with zero length 2018-11-21 07:57:39 +10:30
Dan Kortschak
d1117c6f27 mat: disallow zero dimension results 2018-05-23 06:58:26 +09:30
kortschak
6861c60a47 mat: handle vector transposes better 2018-01-11 20:53:02 +10:30
Dan Kortschak
6e57d606a5 mat: generalise basic arithmetic vector operations 2017-12-25 06:12:00 +10:30
kortschak
ad5995341f mat: add TransposeVec 2017-12-15 16:18:52 +10:30
kortschak
785258ce25 mat: add VecDenseCopyOf function 2017-12-15 16:18:52 +10:30
kortschak
805531d142 all: change capitalization of gonum in license header 2017-11-02 06:54:08 +10:30
James Bowman
e01a71d4d5 mat: make RowView and ColView return Vector type and add RowViewOf and ColViewOf
Also change Dot signature to accept Vector parameters.
2017-09-02 06:55:38 +09:30
kortschak
f99e3efb09 mat: add Vector interface 2017-07-31 09:59:22 +09:30
kortschak
862a4c5a4f mat: rename Vector->VecDense 2017-07-31 09:59:22 +09:30
kortschak
01a0286e0f mat: add IsZero method to resetable types 2017-07-06 14:15:39 +09:30
kortschak
82a7dd2f1f mat: extend Vector slicing sematics to allow slicing up to capacity 2017-06-21 12:24:43 +09:30
kortschak
b358f748d6 mat: allow slice to increase matrix size to caps 2017-06-17 06:45:53 +09:30
kortschak
33b5a66ba7 mat: remove View* methods 2017-06-17 06:45:53 +09:30
kortschak
6143493e56 mat: s/mat64/mat/g 2017-06-16 16:23:05 +09:30
Brendan Tracey
3fa9374bd4 matrix: rename matrix to mat, and merge with mat64 and cmat128.
This merges the three packages, matrix, mat64, and cmat128. It then renames this big package to mat. It fixes the import statements and corresponding code
2017-06-13 10:26:10 -06:00