Commit Graph

10 Commits

Author SHA1 Message Date
Vladimir Chalupecky
dc8c08689a mat: consolidate basic types for testing in single file 2020-10-12 23:24:27 +02:00
Vladimir Chalupecky
40b831e267 mat: clean up basicVector and rawVector types in tests 2020-10-10 22:54:41 +02:00
Dan Kortschak
7b6a63e4e7 mat: don't use global rand state 2020-03-19 17:44:06 +10:30
Egon Elbre
190873a112 mat: make tests parallel 2020-03-16 16:10:59 +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
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
Dan Kortschak
3b99883391 mat: disallow New calls with zero length 2018-11-21 07:57:39 +10:30
kortschak
fa0c5aa7bc all: use golang.org/x/exp/rand instead of math/rand 2017-11-17 11:52:34 +10:30
kortschak
805531d142 all: change capitalization of gonum in license header 2017-11-02 06:54:08 +10: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