mirror of
https://github.com/gonum/gonum.git
synced 2025-11-03 11:21:14 +08:00
mat: Add DiagView methods to types (#711)
* mat: Add DiagView methods to types Fixes #213
This commit is contained in:
@@ -129,6 +129,16 @@ func TestSymAtSet(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSymDiagView(t *testing.T) {
|
||||
for cas, test := range []*SymDense{
|
||||
NewSymDense(1, []float64{1}),
|
||||
NewSymDense(2, []float64{1, 2, 2, 3}),
|
||||
NewSymDense(3, []float64{1, 2, 3, 2, 4, 5, 3, 5, 6}),
|
||||
} {
|
||||
testDiagView(t, cas, test)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSymAdd(t *testing.T) {
|
||||
for _, test := range []struct {
|
||||
n int
|
||||
|
||||
Reference in New Issue
Block a user