gonum.org/v1/gonum@v0.14.0/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  }