มุมมองที่แตกต่าง

@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 ครั้งของตัวมันเอง

มีให้เมื่อ 'องค์ประกอบ': 'แตกต่าง'
มีให้โดยที่ `องค์ประกอบ`: `EuclideanDifferentiable`
มีให้เมื่อ 'องค์ประกอบ': 'แตกต่าง' & 'เท่าเทียม'
  • คำประกาศ

    public static func == (
      lhs: Array.DifferentiableView,
      rhs: Array.DifferentiableView
    ) -> Bool
มีให้เมื่อ 'องค์ประกอบ': 'แตกต่าง'
มีให้โดยที่ `องค์ประกอบ`: `เลขคณิตแบบบวก` & `เชิงอนุพันธ์'
  • คำประกาศ

    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 }
มีให้เมื่อ 'องค์ประกอบ': 'แตกต่าง'
มีให้โดยที่ `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
มีให้เมื่อ 'องค์ประกอบ': 'แตกต่าง'
มีให้โดยที่ `องค์ประกอบ`: `แตกต่าง` & `VectorProtocol`
มีให้โดยที่ `องค์ประกอบ`: `หาความแตกต่างได้` & `PointwiseMultiplicative`
  • คำประกาศ

    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`)