github.com/gonum/lapack@v0.0.0-20181123203213-e4cdc5a0bff9/native/dlapy2.go (about)

     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.
     4  
     5  package native
     6  
     7  import "math"
     8  
     9  // Dlapy2 is the LAPACK version of math.Hypot.
    10  //
    11  // Dlapy2 is an internal routine. It is exported for testing purposes.
    12  func (Implementation) Dlapy2(x, y float64) float64 {
    13  	return math.Hypot(x, y)
    14  }