Commit Graph

31 Commits

Author SHA1 Message Date
Dan Kortschak
5f0141ca4c all: run gofmt and generate all packages
Changes made in dsp/fourier/internal/fftpack break the formatting used
there, so these are reverted. There will be complaints in CI.

[git-generate]
gofmt -w .
go generate gonum.org/v1/gonum/blas
go generate gonum.org/v1/gonum/blas/gonum
go generate gonum.org/v1/gonum/unit
go generate gonum.org/v1/gonum/unit/constant
go generate gonum.org/v1/gonum/graph/formats/dot
go generate gonum.org/v1/gonum/graph/formats/rdf
go generate gonum.org/v1/gonum/stat/card

git checkout -- dsp/fourier/internal/fftpack
2022-08-06 07:05:17 +09:30
Dan Kortschak
3d32334f97 mat: rename Symmetric method to SymmetricDim 2021-08-23 07:02:27 +09:30
Dan Kortschak
efbee9bf28 mat: rename pool helpers to be consistent with type names 2021-05-27 17:07:31 +09:30
Vladimir Chalupecky
3de5d6c644 mat: return ErrZeroLength when size is zero and document it 2021-05-13 09:37:55 +02:00
Vladimir Chalupecky
d4333513da mat: add TriDense.Norm 2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
6e14cd140d mat: use single panic string for bad capacity 2020-09-28 09:54:56 +02:00
Vladimir Chalupecky
5159fe57ba mat: fix comment for untransposeTri 2020-09-28 09:54:56 +02:00
Vladimir Chalupecky
4363550baf mat: add TriDense.SliceTri 2020-03-12 17:47:46 +01:00
Dan Kortschak
455f782e4c mat: clean up lint 2019-11-02 20:58:09 +10:30
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
70ddf0df3d mat: set caps when raw matrix is set 2019-07-04 20:03:27 +09:30
jonreiter@gmail.com
12d9049422 mat: optimize trimul 2019-04-18 13:29:05 +09:30
Brendan Tracey
9a0642d3dd mat: implement helper routines for type extraction and update Trace to use an interface (#932)
* Implement helper routines for type extraction and update Trace to use an interface.

Updates #929.
2019-03-31 09:26:36 +01:00
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
Brendan Tracey
b53e0d9ab0 mat: Add DiagView methods to types (#711)
* mat: Add DiagView methods to types

Fixes #213
2018-11-29 16:08:30 +00:00
Brendan Tracey
4a8f318905 Listtypes (#714)
* mat: Add missing types to list test

With the recent additions of Diagonal and TriBanded, there were some matrix types that were not added to the list of testing types. There were additionally some older types that had been left out. This PR completes the set of types, their transposes, and their basic counterparts to the set of matrices. Changes are made to the makeNew etc. routines in order to support this.

This also changes the behavior of Triangle to return the embedded TriKind even if the matrix IsZero (before we intentionally corrupted the value). We document that the value cannot be trusted, so it shouldn't matter, but this way is simpler, and allows the TriKind to be used in list_test to specify matrices with different TriKind.

Fixes #266
2018-11-28 09:19:22 +00:00
Brendan Tracey
32b7bcde45 mat: Add TriBanded interface and TriBandDense type (#693)
* mat: Add TriBanded interface and TriBandDense type
2018-11-25 08:26:55 +00:00
Dan Kortschak
3b99883391 mat: disallow New calls with zero length 2018-11-21 07:57:39 +10:30
Dan Kortschak
5f11fd92d7 mat: improve mat element shadowing detection 2018-05-23 22:49:26 +09:30
Dan Kortschak
d1117c6f27 mat: disallow zero dimension results 2018-05-23 06:58:26 +09:30
kortschak
835cce7bd0 mat: allow cross-raw shadow detection 2017-12-11 12:32:35 +10:30
kortschak
805531d142 all: change capitalization of gonum in license header 2017-11-02 06:54:08 +10:30
Brendan Tracey
ac9ad9e533 mat: Add Scale method for TriDense and Cholesky (#267)
* mat: Add Scale method for TriDense and Cholesky
2017-10-19 07:24:29 -06:00
kortschak
ffd939f8ca mat: add NonZeroDoer interfaces and implementations
Also clean up some documentation and missing type checks related to
tests for NonZeroDoers.
2017-07-27 10:42:26 +09:30
kortschak
01a0286e0f mat: add IsZero method to resetable types 2017-07-06 14:15:39 +09:30
kortschak
eac07bbebd mat: add missing license headers 2017-06-21 20:22:55 +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