@@ -297,61 +297,3 @@ public func gradient<T, U, V, R>(
297
297
where R : FloatingPoint , R. TangentVector == R {
298
298
return { x, y, z in gradient ( at: x, y, z, in: f) }
299
299
}
300
-
301
- // Value with derivative (curried)
302
-
303
- @inlinable
304
- public func valueWithDerivative< T: FloatingPoint , R> (
305
- of f: @escaping @differentiable ( T ) -> R
306
- ) -> ( T ) -> ( value: R , derivative: R . TangentVector )
307
- where T. TangentVector == T {
308
- return { x in valueWithDerivative ( at: x, in: f) }
309
- }
310
-
311
- @inlinable
312
- public func valueWithDerivative< T: FloatingPoint , U: FloatingPoint , R> (
313
- of f: @escaping @differentiable ( T , U ) -> R
314
- ) -> ( T , U ) -> ( value: R , derivative: R . TangentVector )
315
- where T. TangentVector == T ,
316
- U. TangentVector == U {
317
- return { ( x, y) in valueWithDerivative ( at: x, y, in: f) }
318
- }
319
-
320
- @inlinable
321
- public func valueWithDerivative<
322
- T: FloatingPoint , U: FloatingPoint , V: FloatingPoint , R> (
323
- of f: @escaping @differentiable ( T , U , V ) -> R
324
- ) -> ( T , U , V ) -> ( value: R , derivative: R . TangentVector )
325
- where T. TangentVector == T ,
326
- U. TangentVector == U ,
327
- V. TangentVector == V {
328
- return { ( x, y, z) in valueWithDerivative ( at: x, y, z, in: f) }
329
- }
330
-
331
- // Value with gradient (curried)
332
-
333
- @inlinable
334
- public func valueWithGradient< T, R> (
335
- of f: @escaping @differentiable ( T ) -> R
336
- ) -> ( T ) -> ( value: R , gradient: T . TangentVector )
337
- where R : FloatingPoint , R. TangentVector == R {
338
- return { x in valueWithGradient ( at: x, in: f) }
339
- }
340
-
341
- @inlinable
342
- public func valueWithGradient< T, U, R> (
343
- of f: @escaping @differentiable ( T , U ) -> R
344
- ) -> ( T , U ) -> ( value: R , gradient: ( T . TangentVector , U . TangentVector ) )
345
- where R : FloatingPoint , R. TangentVector == R {
346
- return { x, y in valueWithGradient ( at: x, y, in: f) }
347
- }
348
-
349
- @inlinable
350
- public func valueWithGradient< T, U, V, R> (
351
- of f: @escaping @differentiable ( T , U , V ) -> R
352
- ) -> ( T , U , V )
353
- -> ( value: R ,
354
- gradient: ( T . TangentVector , U . TangentVector , V . TangentVector ) )
355
- where R : FloatingPoint , R. TangentVector == R {
356
- return { x, y, z in valueWithGradient ( at: x, y, z, in: f) }
357
- }
0 commit comments