1 // Copyright ©2015 The Gonum Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
10 "gonum.org/v1/gonum/lapack"
13 // Dlasrt sorts the numbers in the input slice d. If s == lapack.SortIncreasing,
14 // the elements are sorted in increasing order. If s == lapack.SortDecreasing,
15 // the elements are sorted in decreasing order. For other values of s Dlasrt
18 // Dlasrt is an internal routine. It is exported for testing purposes.
19 func (impl Implementation) Dlasrt(s lapack.Sort, n int, d []float64) {
25 case lapack.SortIncreasing:
27 case lapack.SortDecreasing:
28 sort.Sort(sort.Reverse(sort.Float64Slice(d)))