DifferentiableView

@frozen
public struct DifferentiableView
extension Array.DifferentiableView: Differentiable
where Element: Differentiable
extension Array.DifferentiableView: EuclideanDifferentiable
where Element: EuclideanDifferentiable
extension Array.DifferentiableView: Equatable
where Element: Differentiable & Equatable
extension Array.DifferentiableView: ExpressibleByArrayLiteral
where Element: Differentiable
extension Array.DifferentiableView: CustomStringConvertible
where Element: Differentiable
extension Array.DifferentiableView: AdditiveArithmetic
where Element: AdditiveArithmetic & Differentiable
extension Array.DifferentiableView: _KeyPathIterableBase
where Element: Differentiable
extension Array.DifferentiableView: KeyPathIterable
where Element: Differentiable
extension Array.DifferentiableView: ElementaryFunctions
where Element: Differentiable & ElementaryFunctions
extension Array.DifferentiableView:
  BidirectionalCollection,
  Collection,
  MutableCollection,
  RandomAccessCollection,
  RangeReplaceableCollection,
  Sequence
where Element: Differentiable
extension Array.DifferentiableView: VectorProtocol
where Element: Differentiable & VectorProtocol
extension Array.DifferentiableView: PointwiseMultiplicative
where Element: Differentiable & PointwiseMultiplicative

התצוגה של מערך כסעפת המוצר הניתנת להבדלה של Element מוכפלת עם עצמו פעמים count .

זמין כאשר 'אלמנט': 'ניתן להבדיל'
  • המערך הנצפה.

    הַצהָרָה

    public var base: [Element] { get set }
  • יוצר תצוגה ניתנת להבדלה של המערך הנתון.

    הַצהָרָה

    public init(_ base: [Element])
  • הַצהָרָה

    @derivative
    init(_: <<error type>>)
  • הַצהָרָה

    public typealias TangentVector =
      Array<Element.TangentVector>.DifferentiableView
  • הַצהָרָה

    public mutating mutating func move(along direction: TangentVector)
  • סגירה שמייצרת TangentVector של אפסים עם count זהה self .

    הַצהָרָה

    public var zeroTangentVectorInitializer: () -> TangentVector { get }
זמין כאשר 'אלמנט': 'EuclideanDifferentiable'
זמין כאשר 'Element': 'Differentiable' & 'Equatable'
  • הַצהָרָה

    public static func == (
      lhs: Array.DifferentiableView,
      rhs: Array.DifferentiableView
    ) -> Bool
זמין כאשר 'אלמנט': 'ניתן להבדיל'
זמין כאשר 'אלמנט': 'AdditiveArithmetic' ו'Differentiable'
  • הַצהָרָה

    public static var zero: Array.DifferentiableView { get }
  • הַצהָרָה

    public static func + (
      lhs: Array.DifferentiableView,
      rhs: Array.DifferentiableView
    ) -> Array.DifferentiableView
  • הַצהָרָה

    public static func - (
      lhs: Array.DifferentiableView,
      rhs: Array.DifferentiableView
    ) -> Array.DifferentiableView
  • הַצהָרָה

    public subscript(index: Int) -> Element { get }
זמין כאשר 'אלמנט': 'ניתן להבדיל'
  • הַצהָרָה

    public typealias AllKeyPaths = [PartialKeyPath<Array.DifferentiableView>]
  • הַצהָרָה

    public var allKeyPaths: [PartialKeyPath<Array.DifferentiableView>] { get }
זמין כאשר 'Element': 'Differentiable' & 'ElementaryFunctions'
  • השורש הריבועי של x .

    עבור טיפוסים אמיתיים, אם x הוא שלילי התוצאה היא .nan . עבור טיפוסים מורכבים יש חתך ענף על הציר האמיתי השלילי.

    הַצהָרָה

    public static func sqrt(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הקוסינוס של x , מתפרש כזווית ברדיאנים.

    הַצהָרָה

    public static func cos(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הסינוס של x , מתפרש כזווית ברדיאנים.

    הַצהָרָה

    public static func sin(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הטנגנס של x , מתפרש כזווית ברדיאנים.

    הַצהָרָה

    public static func tan(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הקוסינוס ההפוך של x ברדיאנים.

    הַצהָרָה

    public static func acos(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הסינוס ההפוך של x ברדיאנים.

    הַצהָרָה

    public static func asin(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הטנגנס ההפוך של x ברדיאנים.

    הַצהָרָה

    public static func atan(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הקוסינוס ההיפרבולי של x .

    הַצהָרָה

    public static func cosh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הסינוס ההיפרבולי של x .

    הַצהָרָה

    public static func sinh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הטנגנס ההיפרבולי של x .

    הַצהָרָה

    public static func tanh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הקוסינוס ההיפרבולי ההפוך של x .

    הַצהָרָה

    public static func acosh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הסינוס ההיפרבולי ההפוך של x .

    הַצהָרָה

    public static func asinh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הטנגנס ההיפרבולי ההפוך של x .

    הַצהָרָה

    public static func atanh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הפונקציה המעריכית שהוחלה על x , או e**x .

    הַצהָרָה

    public static func exp(_ x: `Self`) -> Array<Element>.DifferentiableView
  • שניים מועלים לעוצמה x .

    הַצהָרָה

    public static func exp2(_ x: `Self`) -> Array<Element>.DifferentiableView
  • עשר מורם לעוצמה x .

    הַצהָרָה

    public static func exp10(_ x: `Self`) -> Array<Element>.DifferentiableView
  • exp(x) - 1 מוערך כדי לשמור על דיוק קרוב לאפס.

    הַצהָרָה

    public static func expm1(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הלוגריתם הטבעי של x .

    הַצהָרָה

    public static func log(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הלוגריתם בסיס שניים של x .

    הַצהָרָה

    public static func log2(_ x: `Self`) -> Array<Element>.DifferentiableView
  • הלוגריתם של בסיס עשר של x .

    הַצהָרָה

    public static func log10(_ x: `Self`) -> Array<Element>.DifferentiableView
  • log(1 + x) מוערך כדי לשמור על דיוק קרוב לאפס.

    הַצהָרָה

    public static func log1p(_ x: `Self`) -> Array<Element>.DifferentiableView
  • exp(y log(x)) מחושב ללא אובדן דיוק ביניים.

    עבור טיפוסים אמיתיים, אם x הוא שלילי התוצאה היא NaN, גם אם y יש ערך אינטגרלי. עבור טיפוסים מורכבים, יש חתך ענף על הציר האמיתי השלילי.

    הַצהָרָה

    public static func pow(_ x: `Self`, _ y: `Self`) -> Array<Element>.DifferentiableView
  • x מוגדל בחזקת n .

    המכפלה של n עותקים של x .

    הַצהָרָה

    public static func pow(_ x: `Self`, _ n: Int) -> Array<Element>.DifferentiableView
  • השורש ה- n של x .

    עבור טיפוסים אמיתיים, אם x הוא שלילי ו- n זוגי, התוצאה היא NaN. עבור טיפוסים מורכבים, יש ענף חתוך לאורך הציר האמיתי השלילי.

    הַצהָרָה

    public static func root(_ x: `Self`, _ n: Int) -> Array<Element>.DifferentiableView
זמין כאשר 'אלמנט': 'ניתן להבדיל'
זמין כאשר 'Element': 'Differentiable' & 'VectorProtocol'
זמין כאשר `Element`: `Differentiable` & `PointwiseMultiplitive`
  • הַצהָרָה

    public static var one: `Self` { get }
  • הַצהָרָה

    public var reciprocal: `Self` { get }
  • הַצהָרָה

    public static func .* (lhs: `Self`, rhs: `Self`) -> Array<Element>.DifferentiableView
  • הַצהָרָה

    public static func .*= (lhs: inout `Self`, rhs: `Self`)