fixed dependencies

This commit is contained in:
nuknal
2024-10-24 15:46:01 +08:00
parent d16a5bd9c0
commit 1161e8d054
2005 changed files with 690883 additions and 0 deletions

22
vendor/gonum.org/v1/gonum/num/quat/inf.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
// Copyright ©2018 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.
// Copyright 2017 The Go 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 quat
import "math"
// IsInf returns true if any of real(q), imag(q), jmag(q), or kmag(q) is an infinity.
func IsInf(q Number) bool {
return math.IsInf(q.Real, 0) || math.IsInf(q.Imag, 0) || math.IsInf(q.Jmag, 0) || math.IsInf(q.Kmag, 0)
}
// Inf returns a quaternion infinity, quaternion(+Inf, +Inf, +Inf, +Inf).
func Inf() Number {
inf := math.Inf(1)
return Number{Real: inf, Imag: inf, Jmag: inf, Kmag: inf}
}