Add dependencies for code generator

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-05-13 23:14:36 -04:00
parent 89c157c63b
commit 3dd1699637
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
542 changed files with 113723 additions and 190 deletions

36
vendor/gonum.org/v1/gonum/lapack/gonum/dlasrt.go generated vendored Normal file
View file

@ -0,0 +1,36 @@
// Copyright ©2015 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gonum
import (
"sort"
"gonum.org/v1/gonum/lapack"
)
// Dlasrt sorts the numbers in the input slice d. If s == lapack.SortIncreasing,
// the elements are sorted in increasing order. If s == lapack.SortDecreasing,
// the elements are sorted in decreasing order. For other values of s Dlasrt
// will panic.
//
// Dlasrt is an internal routine. It is exported for testing purposes.
func (impl Implementation) Dlasrt(s lapack.Sort, n int, d []float64) {
switch {
case n < 0:
panic(nLT0)
case len(d) < n:
panic(shortD)
}
d = d[:n]
switch s {
default:
panic(badSort)
case lapack.SortIncreasing:
sort.Float64s(d)
case lapack.SortDecreasing:
sort.Sort(sort.Reverse(sort.Float64Slice(d)))
}
}