Structureswift 6.1.2_Differentiation->Swift
DifferentiableView
The view of an array as the differentiable product manifold of Element multiplied with itself count times.
@frozen struct DifferentiableViewThe view of an array as the differentiable product manifold of Element multiplied with itself count times.
@frozen struct DifferentiableViewwhere Element:Differentiableimport Swiftimport _Differentiation@frozen struct Array<Element>An ordered, random-access collection.
protocol DifferentiableA type that mathematically represents a differentiable manifold whose tangent spaces are finite-dimensional.
@differentiable(reverse, wrt: self) func differentiableMap<Result>(_ body: (Element) -> Result) -> [Result] where Result : Differentiable @differentiable(reverse, wrt: (self, initialResult)) func differentiableReduce<Result>(_ initialResult: Result, _ nextPartialResult: (Result, Element) -> Result) -> Result where Result : Differentiable mutating func move(by offset: Array<Element>.TangentVector) typealias TangentVector = Array<Element.TangentVector>.DifferentiableViewprotocol CopyableA type whose values can be implicitly or explicitly copied.
protocol CustomReflectableA type that explicitly supplies its own mirror.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol Escapableprotocol ExpressibleByArrayLiteralA type that can be initialized using an array literal.
init(_ base: [Element]) Creates a differentiable view of the given array.
init(arrayLiteral elements: Element...) var base: [Element] { get set }The viewed array.
var customMirror: Mirror { get }var description: String { get }mutating func move(by offset: Array<Element>.DifferentiableView.TangentVector) typealias TangentVector = Array<Element.TangentVector>.DifferentiableViewmutating func move(by offset: Self.TangentVector) protocol EquatableA type that can be compared for value equality.
static func == (lhs: Array<Element>.DifferentiableView, rhs: Array<Element>.DifferentiableView) -> Bool static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.
protocol AdditiveArithmetic : EquatableA type with values that support addition and subtraction.
static var zero: Array<Element>.DifferentiableView { get }subscript(index: Int) -> Element { get } static func + (lhs: Array<Element>.DifferentiableView, rhs: Array<Element>.DifferentiableView) -> Array<Element>.DifferentiableView static func - (lhs: Array<Element>.DifferentiableView, rhs: Array<Element>.DifferentiableView) -> Array<Element>.DifferentiableView static func + (x: Self) -> Self Returns the given number unchanged.
static func += (lhs: inout Self, rhs: Self) static func -= (lhs: inout Self, rhs: Self)