Commit Graph

26 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
efbee9bf28 mat: rename pool helpers to be consistent with type names 2021-05-27 17:07:31 +09:30
Vladimir Chalupecky
b4dd4cfbca mat: remove from docs references to "matrix" package 2021-05-13 09:37:55 +02:00
Dan Kortschak
e3a4dc8ae9 mat: only use workspace for element-wise operation when transposed 2021-01-07 07:09:00 +10:30
Vladimir Chalupecky
f2b03354e0 mat: fix Dense.Inverse
The condition number of A was computed by Gecon not from the LU
factorization of A but rather from A^{-1} due to the preceding call to
Getri.

Fixed by reordering the various lapack calls and by allocating
an additional integer work slice.
2020-11-11 00:06:03 +01:00
Dan Kortschak
5127c365f2 mat: provide internal slice methods that returns the concrete types 2019-12-28 10:00:57 +10:30
Dan Kortschak
ad4f952ec5 mat: add Kronecker product function 2019-12-28 07:33:39 +10:30
Dan Kortschak
455f782e4c mat: clean up lint 2019-11-02 20:58:09 +10:30
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
Dan Kortschak
51b431f5b9 mat: use "mat" prefix for all errors and panics 2019-09-14 20:14:05 +09:30
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
17ea55aedb blas,lapack: clean up docs and comments
Apply (with manual curation after the fact):
* s/^T/U+1d40/g
* s/^H/U+1d34/g
* s/, {2,3}if / $1/g

Some additional manual editing of odd formatting.
2019-09-06 20:02:29 +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
Brendan Tracey
2122b538b6 mat: Use untransposeExtract in Dense.Mul (#997) 2019-07-23 20:27:42 +01:00
Dan Kortschak
c4a599f7b7 mat: relax restrictions on vector orientation 2019-06-02 19:12:45 +09:30
Dan Kortschak
a17cbc57c5 mat: replace sequential conditional assertions with type switch 2019-05-17 18:42:47 +09:30
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
5f11fd92d7 mat: improve mat element shadowing detection 2018-05-23 22:49:26 +09:30
Dan Kortschak
c0eb081727 mat: fix Exp function behaviour for large norms 2018-03-23 06:22:08 +10:30
kortschak
146e16d5b4 mat: generalise Dense RankOne vector parameters 2018-01-12 08:22:41 +10:30
kortschak
7d975f4c67 mat: generalise Outer vector parameters 2018-01-12 08:22:41 +10:30
kortschak
805531d142 all: change capitalization of gonum in license header 2017-11-02 06:54:08 +10: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
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