Skip to content

swift_autoDiffCreateLinearMapContext(__)

0x41c edited this page Feb 28, 2022 · 1 revision

swift_autoDiffCreateLinearMapContext(_:)

malloc's a buffer suitable for the AutoDiffLinearMapContext and returns the initialized memory. The memory passed in increases the allocation internally at the tail.

@_silgen_name("swift_autoDiffCreateLinearMapContext")
public func swift_autoDiffCreateLinearMapContext(
    _ topLevelLinearMapStructSize: Int
) -> UnsafeRawPointer

Parameters

  • topLevelLinearMapStructSize: The size of the linear map struct that will be located at the tail of the context.

Returns

A pointer to the freshly allocated context.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally