github.com/jingcheng-WU/gonum@v0.9.1-0.20210323123734-f1a2a11a8f7b/lapack/gonum/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 gonum
     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  }