The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DL4S, reference 0.4.1 (1f90f8), with Swift 6.3 for Android on 12 Apr 2026 15:01:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no 'cos' candidates produce the expected contextual result type 'Float'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no 'cos' candidates produce the expected contextual result type 'Float'
76 |     }
77 |
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no exact matches in call to global function 'tanh'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
80 |     }
81 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
80 |     }
81 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no exact matches in call to global function 'sinh'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no exact matches in call to global function 'sinh'
84 |     }
85 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no 'sinh' candidates produce the expected contextual result type 'Float'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no 'sinh' candidates produce the expected contextual result type 'Float'
84 |     }
85 |
Foundation.sinh:1:13: note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no exact matches in call to global function 'cosh'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no exact matches in call to global function 'cosh'
88 |     }
89 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no 'cosh' candidates produce the expected contextual result type 'Float'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no 'cosh' candidates produce the expected contextual result type 'Float'
88 |     }
89 |
Foundation.cosh:1:13: note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no exact matches in call to global function 'tanh'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
92 |     }
93 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
92 |     }
93 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:67:38: error: cannot convert value of type 'Float' to expected argument type 'Double'
 65 |
 66 |     public func sqrt() -> Int32 {
 67 |         return Int32(Foundation.sqrt(Float(self)))
    |                                      `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 68 |     }
 69 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:71:33: error: no exact matches in call to global function 'log'
 69 |
 70 |     public func log() -> Int32 {
 71 |         return Int32(Foundation.log(Float(self)))
    |                                 `- error: no exact matches in call to global function 'log'
 72 |     }
 73 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:75:33: error: no exact matches in call to global function 'exp'
 73 |
 74 |     public func exp() -> Int32 {
 75 |         return Int32(Foundation.exp(Float(self)))
    |                                 `- error: no exact matches in call to global function 'exp'
 76 |     }
 77 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:45: error: no exact matches in call to global function 'sin'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sin'
 80 |     }
 81 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |     }
 81 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:45: error: no exact matches in call to global function 'cos'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cos'
 84 |     }
 85 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 84 |     }
 85 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:45: error: no exact matches in call to global function 'tan'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tan'
 88 |     }
 89 |
Foundation.tan:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tan(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:100:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 98 | long double sinl(long double __x);
 99 |
100 | double tan(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
101 | float tanf(float __x);
102 | long double tanl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:45: error: no exact matches in call to global function 'sinh'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sinh'
 92 |     }
 93 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:45: error: no exact matches in call to global function 'cosh'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cosh'
 96 |     }
 97 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |     }
 97 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:45: error: no exact matches in call to global function 'tanh'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tanh'
100 |     }
101 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
100 |     }
101 |
[76/81] Compiling DL4S RMSProp.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(self.modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:32: error: cannot convert value of type 'Float' to expected argument type 'Double'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                                `- error: cannot convert value of type 'Float' to expected argument type 'Double'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:27: error: cannot convert return expression of type 'Double' to return type 'Float'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                           `- error: cannot convert return expression of type 'Double' to return type 'Float'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no exact matches in call to global function 'exp'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no exact matches in call to global function 'exp'
64 |     }
65 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no 'exp' candidates produce the expected contextual result type 'Float'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no 'exp' candidates produce the expected contextual result type 'Float'
64 |     }
65 |
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no exact matches in call to global function 'log'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no exact matches in call to global function 'log'
68 |     }
69 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no 'log' candidates produce the expected contextual result type 'Float'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no 'log' candidates produce the expected contextual result type 'Float'
68 |     }
69 |
Foundation.log:1:13: note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: 'log' produces 'Double', not the expected contextual result type 'Float'
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: 'log' produces 'Double', not the expected contextual result type 'Float'
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no exact matches in call to global function 'sin'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no exact matches in call to global function 'sin'
72 |     }
73 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no 'sin' candidates produce the expected contextual result type 'Float'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no 'sin' candidates produce the expected contextual result type 'Float'
72 |     }
73 |
Foundation.sin:1:13: note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no exact matches in call to global function 'cos'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no exact matches in call to global function 'cos'
76 |     }
77 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no 'cos' candidates produce the expected contextual result type 'Float'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no 'cos' candidates produce the expected contextual result type 'Float'
76 |     }
77 |
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no exact matches in call to global function 'tanh'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
80 |     }
81 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
80 |     }
81 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no exact matches in call to global function 'sinh'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no exact matches in call to global function 'sinh'
84 |     }
85 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no 'sinh' candidates produce the expected contextual result type 'Float'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no 'sinh' candidates produce the expected contextual result type 'Float'
84 |     }
85 |
Foundation.sinh:1:13: note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no exact matches in call to global function 'cosh'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no exact matches in call to global function 'cosh'
88 |     }
89 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no 'cosh' candidates produce the expected contextual result type 'Float'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no 'cosh' candidates produce the expected contextual result type 'Float'
88 |     }
89 |
Foundation.cosh:1:13: note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no exact matches in call to global function 'tanh'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
92 |     }
93 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
92 |     }
93 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:67:38: error: cannot convert value of type 'Float' to expected argument type 'Double'
 65 |
 66 |     public func sqrt() -> Int32 {
 67 |         return Int32(Foundation.sqrt(Float(self)))
    |                                      `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 68 |     }
 69 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:71:33: error: no exact matches in call to global function 'log'
 69 |
 70 |     public func log() -> Int32 {
 71 |         return Int32(Foundation.log(Float(self)))
    |                                 `- error: no exact matches in call to global function 'log'
 72 |     }
 73 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:75:33: error: no exact matches in call to global function 'exp'
 73 |
 74 |     public func exp() -> Int32 {
 75 |         return Int32(Foundation.exp(Float(self)))
    |                                 `- error: no exact matches in call to global function 'exp'
 76 |     }
 77 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:45: error: no exact matches in call to global function 'sin'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sin'
 80 |     }
 81 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |     }
 81 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:45: error: no exact matches in call to global function 'cos'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cos'
 84 |     }
 85 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 84 |     }
 85 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:45: error: no exact matches in call to global function 'tan'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tan'
 88 |     }
 89 |
Foundation.tan:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tan(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:100:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 98 | long double sinl(long double __x);
 99 |
100 | double tan(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
101 | float tanf(float __x);
102 | long double tanl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:45: error: no exact matches in call to global function 'sinh'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sinh'
 92 |     }
 93 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:45: error: no exact matches in call to global function 'cosh'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cosh'
 96 |     }
 97 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |     }
 97 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:45: error: no exact matches in call to global function 'tanh'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tanh'
100 |     }
101 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
100 |     }
101 |
[77/81] Compiling DL4S SGD.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(self.modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:32: error: cannot convert value of type 'Float' to expected argument type 'Double'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                                `- error: cannot convert value of type 'Float' to expected argument type 'Double'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:27: error: cannot convert return expression of type 'Double' to return type 'Float'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                           `- error: cannot convert return expression of type 'Double' to return type 'Float'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no exact matches in call to global function 'exp'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no exact matches in call to global function 'exp'
64 |     }
65 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no 'exp' candidates produce the expected contextual result type 'Float'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no 'exp' candidates produce the expected contextual result type 'Float'
64 |     }
65 |
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no exact matches in call to global function 'log'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no exact matches in call to global function 'log'
68 |     }
69 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no 'log' candidates produce the expected contextual result type 'Float'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no 'log' candidates produce the expected contextual result type 'Float'
68 |     }
69 |
Foundation.log:1:13: note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: 'log' produces 'Double', not the expected contextual result type 'Float'
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: 'log' produces 'Double', not the expected contextual result type 'Float'
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no exact matches in call to global function 'sin'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no exact matches in call to global function 'sin'
72 |     }
73 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no 'sin' candidates produce the expected contextual result type 'Float'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no 'sin' candidates produce the expected contextual result type 'Float'
72 |     }
73 |
Foundation.sin:1:13: note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no exact matches in call to global function 'cos'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no exact matches in call to global function 'cos'
76 |     }
77 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no 'cos' candidates produce the expected contextual result type 'Float'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no 'cos' candidates produce the expected contextual result type 'Float'
76 |     }
77 |
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no exact matches in call to global function 'tanh'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
80 |     }
81 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
80 |     }
81 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no exact matches in call to global function 'sinh'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no exact matches in call to global function 'sinh'
84 |     }
85 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no 'sinh' candidates produce the expected contextual result type 'Float'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no 'sinh' candidates produce the expected contextual result type 'Float'
84 |     }
85 |
Foundation.sinh:1:13: note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no exact matches in call to global function 'cosh'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no exact matches in call to global function 'cosh'
88 |     }
89 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no 'cosh' candidates produce the expected contextual result type 'Float'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no 'cosh' candidates produce the expected contextual result type 'Float'
88 |     }
89 |
Foundation.cosh:1:13: note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no exact matches in call to global function 'tanh'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
92 |     }
93 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
92 |     }
93 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:67:38: error: cannot convert value of type 'Float' to expected argument type 'Double'
 65 |
 66 |     public func sqrt() -> Int32 {
 67 |         return Int32(Foundation.sqrt(Float(self)))
    |                                      `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 68 |     }
 69 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:71:33: error: no exact matches in call to global function 'log'
 69 |
 70 |     public func log() -> Int32 {
 71 |         return Int32(Foundation.log(Float(self)))
    |                                 `- error: no exact matches in call to global function 'log'
 72 |     }
 73 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:75:33: error: no exact matches in call to global function 'exp'
 73 |
 74 |     public func exp() -> Int32 {
 75 |         return Int32(Foundation.exp(Float(self)))
    |                                 `- error: no exact matches in call to global function 'exp'
 76 |     }
 77 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:45: error: no exact matches in call to global function 'sin'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sin'
 80 |     }
 81 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |     }
 81 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:45: error: no exact matches in call to global function 'cos'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cos'
 84 |     }
 85 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 84 |     }
 85 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:45: error: no exact matches in call to global function 'tan'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tan'
 88 |     }
 89 |
Foundation.tan:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tan(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:100:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 98 | long double sinl(long double __x);
 99 |
100 | double tan(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
101 | float tanf(float __x);
102 | long double tanl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:45: error: no exact matches in call to global function 'sinh'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sinh'
 92 |     }
 93 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:45: error: no exact matches in call to global function 'cosh'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cosh'
 96 |     }
 97 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |     }
 97 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:45: error: no exact matches in call to global function 'tanh'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tanh'
100 |     }
101 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
100 |     }
101 |
[78/81] Compiling DL4S Double.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(self.modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:32: error: cannot convert value of type 'Float' to expected argument type 'Double'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                                `- error: cannot convert value of type 'Float' to expected argument type 'Double'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:27: error: cannot convert return expression of type 'Double' to return type 'Float'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                           `- error: cannot convert return expression of type 'Double' to return type 'Float'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no exact matches in call to global function 'exp'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no exact matches in call to global function 'exp'
64 |     }
65 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no 'exp' candidates produce the expected contextual result type 'Float'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no 'exp' candidates produce the expected contextual result type 'Float'
64 |     }
65 |
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no exact matches in call to global function 'log'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no exact matches in call to global function 'log'
68 |     }
69 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no 'log' candidates produce the expected contextual result type 'Float'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no 'log' candidates produce the expected contextual result type 'Float'
68 |     }
69 |
Foundation.log:1:13: note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: 'log' produces 'Double', not the expected contextual result type 'Float'
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: 'log' produces 'Double', not the expected contextual result type 'Float'
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no exact matches in call to global function 'sin'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no exact matches in call to global function 'sin'
72 |     }
73 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no 'sin' candidates produce the expected contextual result type 'Float'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no 'sin' candidates produce the expected contextual result type 'Float'
72 |     }
73 |
Foundation.sin:1:13: note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no exact matches in call to global function 'cos'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no exact matches in call to global function 'cos'
76 |     }
77 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no 'cos' candidates produce the expected contextual result type 'Float'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no 'cos' candidates produce the expected contextual result type 'Float'
76 |     }
77 |
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no exact matches in call to global function 'tanh'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
80 |     }
81 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
80 |     }
81 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no exact matches in call to global function 'sinh'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no exact matches in call to global function 'sinh'
84 |     }
85 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no 'sinh' candidates produce the expected contextual result type 'Float'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no 'sinh' candidates produce the expected contextual result type 'Float'
84 |     }
85 |
Foundation.sinh:1:13: note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no exact matches in call to global function 'cosh'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no exact matches in call to global function 'cosh'
88 |     }
89 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no 'cosh' candidates produce the expected contextual result type 'Float'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no 'cosh' candidates produce the expected contextual result type 'Float'
88 |     }
89 |
Foundation.cosh:1:13: note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no exact matches in call to global function 'tanh'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
92 |     }
93 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
92 |     }
93 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:67:38: error: cannot convert value of type 'Float' to expected argument type 'Double'
 65 |
 66 |     public func sqrt() -> Int32 {
 67 |         return Int32(Foundation.sqrt(Float(self)))
    |                                      `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 68 |     }
 69 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:71:33: error: no exact matches in call to global function 'log'
 69 |
 70 |     public func log() -> Int32 {
 71 |         return Int32(Foundation.log(Float(self)))
    |                                 `- error: no exact matches in call to global function 'log'
 72 |     }
 73 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:75:33: error: no exact matches in call to global function 'exp'
 73 |
 74 |     public func exp() -> Int32 {
 75 |         return Int32(Foundation.exp(Float(self)))
    |                                 `- error: no exact matches in call to global function 'exp'
 76 |     }
 77 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:45: error: no exact matches in call to global function 'sin'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sin'
 80 |     }
 81 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |     }
 81 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:45: error: no exact matches in call to global function 'cos'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cos'
 84 |     }
 85 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 84 |     }
 85 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:45: error: no exact matches in call to global function 'tan'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tan'
 88 |     }
 89 |
Foundation.tan:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tan(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:100:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 98 | long double sinl(long double __x);
 99 |
100 | double tan(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
101 | float tanf(float __x);
102 | long double tanl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:45: error: no exact matches in call to global function 'sinh'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sinh'
 92 |     }
 93 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:45: error: no exact matches in call to global function 'cosh'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cosh'
 96 |     }
 97 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |     }
 97 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:45: error: no exact matches in call to global function 'tanh'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tanh'
100 |     }
101 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
100 |     }
101 |
[79/81] Compiling DL4S Float.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(self.modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:32: error: cannot convert value of type 'Float' to expected argument type 'Double'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                                `- error: cannot convert value of type 'Float' to expected argument type 'Double'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:27: error: cannot convert return expression of type 'Double' to return type 'Float'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                           `- error: cannot convert return expression of type 'Double' to return type 'Float'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no exact matches in call to global function 'exp'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no exact matches in call to global function 'exp'
64 |     }
65 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no 'exp' candidates produce the expected contextual result type 'Float'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no 'exp' candidates produce the expected contextual result type 'Float'
64 |     }
65 |
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no exact matches in call to global function 'log'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no exact matches in call to global function 'log'
68 |     }
69 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no 'log' candidates produce the expected contextual result type 'Float'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no 'log' candidates produce the expected contextual result type 'Float'
68 |     }
69 |
Foundation.log:1:13: note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: 'log' produces 'Double', not the expected contextual result type 'Float'
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: 'log' produces 'Double', not the expected contextual result type 'Float'
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no exact matches in call to global function 'sin'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no exact matches in call to global function 'sin'
72 |     }
73 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no 'sin' candidates produce the expected contextual result type 'Float'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no 'sin' candidates produce the expected contextual result type 'Float'
72 |     }
73 |
Foundation.sin:1:13: note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no exact matches in call to global function 'cos'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no exact matches in call to global function 'cos'
76 |     }
77 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no 'cos' candidates produce the expected contextual result type 'Float'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no 'cos' candidates produce the expected contextual result type 'Float'
76 |     }
77 |
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no exact matches in call to global function 'tanh'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
80 |     }
81 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
80 |     }
81 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no exact matches in call to global function 'sinh'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no exact matches in call to global function 'sinh'
84 |     }
85 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no 'sinh' candidates produce the expected contextual result type 'Float'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no 'sinh' candidates produce the expected contextual result type 'Float'
84 |     }
85 |
Foundation.sinh:1:13: note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no exact matches in call to global function 'cosh'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no exact matches in call to global function 'cosh'
88 |     }
89 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no 'cosh' candidates produce the expected contextual result type 'Float'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no 'cosh' candidates produce the expected contextual result type 'Float'
88 |     }
89 |
Foundation.cosh:1:13: note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no exact matches in call to global function 'tanh'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
92 |     }
93 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
92 |     }
93 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:67:38: error: cannot convert value of type 'Float' to expected argument type 'Double'
 65 |
 66 |     public func sqrt() -> Int32 {
 67 |         return Int32(Foundation.sqrt(Float(self)))
    |                                      `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 68 |     }
 69 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:71:33: error: no exact matches in call to global function 'log'
 69 |
 70 |     public func log() -> Int32 {
 71 |         return Int32(Foundation.log(Float(self)))
    |                                 `- error: no exact matches in call to global function 'log'
 72 |     }
 73 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:75:33: error: no exact matches in call to global function 'exp'
 73 |
 74 |     public func exp() -> Int32 {
 75 |         return Int32(Foundation.exp(Float(self)))
    |                                 `- error: no exact matches in call to global function 'exp'
 76 |     }
 77 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:45: error: no exact matches in call to global function 'sin'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sin'
 80 |     }
 81 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |     }
 81 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:45: error: no exact matches in call to global function 'cos'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cos'
 84 |     }
 85 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 84 |     }
 85 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:45: error: no exact matches in call to global function 'tan'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tan'
 88 |     }
 89 |
Foundation.tan:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tan(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:100:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 98 | long double sinl(long double __x);
 99 |
100 | double tan(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
101 | float tanf(float __x);
102 | long double tanl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:45: error: no exact matches in call to global function 'sinh'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sinh'
 92 |     }
 93 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:45: error: no exact matches in call to global function 'cosh'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cosh'
 96 |     }
 97 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |     }
 97 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:45: error: no exact matches in call to global function 'tanh'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tanh'
100 |     }
101 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
100 |     }
101 |
[80/81] Compiling DL4S Int32.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(self.modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:32: error: cannot convert value of type 'Float' to expected argument type 'Double'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                                `- error: cannot convert value of type 'Float' to expected argument type 'Double'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:27: error: cannot convert return expression of type 'Double' to return type 'Float'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                           `- error: cannot convert return expression of type 'Double' to return type 'Float'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no exact matches in call to global function 'exp'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no exact matches in call to global function 'exp'
64 |     }
65 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no 'exp' candidates produce the expected contextual result type 'Float'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no 'exp' candidates produce the expected contextual result type 'Float'
64 |     }
65 |
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no exact matches in call to global function 'log'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no exact matches in call to global function 'log'
68 |     }
69 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no 'log' candidates produce the expected contextual result type 'Float'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no 'log' candidates produce the expected contextual result type 'Float'
68 |     }
69 |
Foundation.log:1:13: note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: 'log' produces 'Double', not the expected contextual result type 'Float'
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: 'log' produces 'Double', not the expected contextual result type 'Float'
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no exact matches in call to global function 'sin'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no exact matches in call to global function 'sin'
72 |     }
73 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no 'sin' candidates produce the expected contextual result type 'Float'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no 'sin' candidates produce the expected contextual result type 'Float'
72 |     }
73 |
Foundation.sin:1:13: note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no exact matches in call to global function 'cos'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no exact matches in call to global function 'cos'
76 |     }
77 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no 'cos' candidates produce the expected contextual result type 'Float'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no 'cos' candidates produce the expected contextual result type 'Float'
76 |     }
77 |
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no exact matches in call to global function 'tanh'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
80 |     }
81 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
80 |     }
81 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no exact matches in call to global function 'sinh'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no exact matches in call to global function 'sinh'
84 |     }
85 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no 'sinh' candidates produce the expected contextual result type 'Float'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no 'sinh' candidates produce the expected contextual result type 'Float'
84 |     }
85 |
Foundation.sinh:1:13: note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no exact matches in call to global function 'cosh'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no exact matches in call to global function 'cosh'
88 |     }
89 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no 'cosh' candidates produce the expected contextual result type 'Float'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no 'cosh' candidates produce the expected contextual result type 'Float'
88 |     }
89 |
Foundation.cosh:1:13: note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no exact matches in call to global function 'tanh'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
92 |     }
93 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
92 |     }
93 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:67:38: error: cannot convert value of type 'Float' to expected argument type 'Double'
 65 |
 66 |     public func sqrt() -> Int32 {
 67 |         return Int32(Foundation.sqrt(Float(self)))
    |                                      `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 68 |     }
 69 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:71:33: error: no exact matches in call to global function 'log'
 69 |
 70 |     public func log() -> Int32 {
 71 |         return Int32(Foundation.log(Float(self)))
    |                                 `- error: no exact matches in call to global function 'log'
 72 |     }
 73 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:75:33: error: no exact matches in call to global function 'exp'
 73 |
 74 |     public func exp() -> Int32 {
 75 |         return Int32(Foundation.exp(Float(self)))
    |                                 `- error: no exact matches in call to global function 'exp'
 76 |     }
 77 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:45: error: no exact matches in call to global function 'sin'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sin'
 80 |     }
 81 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |     }
 81 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:45: error: no exact matches in call to global function 'cos'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cos'
 84 |     }
 85 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 84 |     }
 85 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:45: error: no exact matches in call to global function 'tan'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tan'
 88 |     }
 89 |
Foundation.tan:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tan(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:100:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 98 | long double sinl(long double __x);
 99 |
100 | double tan(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
101 | float tanf(float __x);
102 | long double tanl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:45: error: no exact matches in call to global function 'sinh'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sinh'
 92 |     }
 93 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:45: error: no exact matches in call to global function 'cosh'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cosh'
 96 |     }
 97 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |     }
 97 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:45: error: no exact matches in call to global function 'tanh'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tanh'
100 |     }
101 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
100 |     }
101 |
[81/81] Compiling DL4S NumericType.swift
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(self.modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:32: error: cannot convert value of type 'Float' to expected argument type 'Double'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                                `- error: cannot convert value of type 'Float' to expected argument type 'Double'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:59:27: error: cannot convert return expression of type 'Double' to return type 'Float'
57 |
58 |     public func sqrt() -> Float {
59 |         return Foundation.sqrt(self)
   |                           `- error: cannot convert return expression of type 'Double' to return type 'Float'
60 |     }
61 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no exact matches in call to global function 'exp'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no exact matches in call to global function 'exp'
64 |     }
65 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:63:27: error: no 'exp' candidates produce the expected contextual result type 'Float'
61 |
62 |     public func exp() -> Float {
63 |         return Foundation.exp(self)
   |                           `- error: no 'exp' candidates produce the expected contextual result type 'Float'
64 |     }
65 |
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no exact matches in call to global function 'log'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no exact matches in call to global function 'log'
68 |     }
69 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:67:27: error: no 'log' candidates produce the expected contextual result type 'Float'
65 |
66 |     public func log() -> Float {
67 |         return Foundation.log(self)
   |                           `- error: no 'log' candidates produce the expected contextual result type 'Float'
68 |     }
69 |
Foundation.log:1:13: note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: 'log' produces 'Double', not the expected contextual result type 'Float'
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: 'log' produces 'Double', not the expected contextual result type 'Float'
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no exact matches in call to global function 'sin'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no exact matches in call to global function 'sin'
72 |     }
73 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:71:27: error: no 'sin' candidates produce the expected contextual result type 'Float'
69 |
70 |     public func sin() -> Float {
71 |         return Foundation.sin(self)
   |                           `- error: no 'sin' candidates produce the expected contextual result type 'Float'
72 |     }
73 |
Foundation.sin:1:13: note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no exact matches in call to global function 'cos'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no exact matches in call to global function 'cos'
76 |     }
77 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:75:27: error: no 'cos' candidates produce the expected contextual result type 'Float'
73 |
74 |     public func cos() -> Float {
75 |         return Foundation.cos(self)
   |                           `- error: no 'cos' candidates produce the expected contextual result type 'Float'
76 |     }
77 |
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no exact matches in call to global function 'tanh'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
80 |     }
81 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:79:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
77 |
78 |     public func tan() -> Float {
79 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
80 |     }
81 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no exact matches in call to global function 'sinh'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no exact matches in call to global function 'sinh'
84 |     }
85 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:83:27: error: no 'sinh' candidates produce the expected contextual result type 'Float'
81 |
82 |     public func sinh() -> Float {
83 |         return Foundation.sinh(self)
   |                           `- error: no 'sinh' candidates produce the expected contextual result type 'Float'
84 |     }
85 |
Foundation.sinh:1:13: note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no exact matches in call to global function 'cosh'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no exact matches in call to global function 'cosh'
88 |     }
89 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:87:27: error: no 'cosh' candidates produce the expected contextual result type 'Float'
85 |
86 |     public func cosh() -> Float {
87 |         return Foundation.cosh(self)
   |                           `- error: no 'cosh' candidates produce the expected contextual result type 'Float'
88 |     }
89 |
Foundation.cosh:1:13: note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no exact matches in call to global function 'tanh'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no exact matches in call to global function 'tanh'
92 |     }
93 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:91:27: error: no 'tanh' candidates produce the expected contextual result type 'Float'
89 |
90 |     public func tanh() -> Float {
91 |         return Foundation.tanh(self)
   |                           `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
92 |     }
93 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:67:38: error: cannot convert value of type 'Float' to expected argument type 'Double'
 65 |
 66 |     public func sqrt() -> Int32 {
 67 |         return Int32(Foundation.sqrt(Float(self)))
    |                                      `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 68 |     }
 69 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:71:33: error: no exact matches in call to global function 'log'
 69 |
 70 |     public func log() -> Int32 {
 71 |         return Int32(Foundation.log(Float(self)))
    |                                 `- error: no exact matches in call to global function 'log'
 72 |     }
 73 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:75:33: error: no exact matches in call to global function 'exp'
 73 |
 74 |     public func exp() -> Int32 {
 75 |         return Int32(Foundation.exp(Float(self)))
    |                                 `- error: no exact matches in call to global function 'exp'
 76 |     }
 77 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:45: error: no exact matches in call to global function 'sin'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sin'
 80 |     }
 81 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:79:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 77 |
 78 |     public func sin() -> Int32 {
 79 |         return Int32(round(Float(Foundation.sin(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |     }
 81 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:45: error: no exact matches in call to global function 'cos'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cos'
 84 |     }
 85 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:83:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 81 |
 82 |     public func cos() -> Int32 {
 83 |         return Int32(round(Float(Foundation.cos(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 84 |     }
 85 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:45: error: no exact matches in call to global function 'tan'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tan'
 88 |     }
 89 |
Foundation.tan:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tan(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:100:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 98 | long double sinl(long double __x);
 99 |
100 | double tan(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
101 | float tanf(float __x);
102 | long double tanl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:87:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 85 |
 86 |     public func tan() -> Int32 {
 87 |         return Int32(round(Float(Foundation.tan(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:45: error: no exact matches in call to global function 'sinh'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'sinh'
 92 |     }
 93 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:91:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 89 |
 90 |     public func sinh() -> Int32 {
 91 |         return Int32(round(Float(Foundation.sinh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:45: error: no exact matches in call to global function 'cosh'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'cosh'
 96 |     }
 97 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:95:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 93 |
 94 |     public func cosh() -> Int32 {
 95 |         return Int32(round(Float(Foundation.cosh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |     }
 97 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:45: error: no exact matches in call to global function 'tanh'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                                             `- error: no exact matches in call to global function 'tanh'
100 |     }
101 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:99:28: error: cannot convert value of type 'Float' to expected argument type 'Double'
 97 |
 98 |     public func tanh() -> Int32 {
 99 |         return Int32(round(Float(Foundation.tanh(Float(self)))))
    |                            `- error: cannot convert value of type 'Float' to expected argument type 'Double'
100 |     }
101 |
BUILD FAILURE 6.3 android