21 Commits

Author SHA1 Message Date
Vladimir Chalupecky
71ca02b769 mat: delegate to SolveTo method in *Dense.Solve 2023-10-20 11:38:09 +02:00
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
143fb433a9 mat: add non-zero doers for TriBandDense 2022-06-21 19:12:35 +09:30
Dan Kortschak
a2c6f817bf ci: replace golangci-lint with staticcheck 2022-05-18 21:35:57 +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
32854e3cda mat: add TriBandDense.Norm 2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
d520c6cf9e mat: add TriBandDense.SolveVec and SolveVecTo 2020-10-10 22:54:41 +02:00
Vladimir Chalupecky
aea9ac7fa3 mat: add copySymBandIntoTriBand helper 2020-09-28 09:54:56 +02:00
Vladimir Chalupecky
79f5b08dc1 mat: add TriBandDense.ReuseAsTriBand 2020-09-28 09:54:56 +02:00
Vladimir Chalupecky
6e14cd140d mat: use single panic string for bad capacity 2020-09-28 09:54:56 +02: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
jonreiter@gmail.com
6e46824336 mat: tracer for banded types 2019-04-09 16:31:59 +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
b630de2f22 mat: Clean up TriBand documentation (#710) 2018-11-25 18:50:08 +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