Chế độ xem khác biệt

@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

Chế độ xem một mảng dưới dạng đa tạp sản phẩm có thể phân biệt của Element được nhân với chính nó theo count lần.

Có sẵn ở nơi `Thành phần`: `Có thể phân biệt`
Có sẵn ở nơi `Phần tử`: `EuclideanDifferentiable`
Có sẵn ở nơi `Phần tử`: `Có thể phân biệt` & `Có thể so sánh được`
  • Tuyên ngôn

    public static func == (
      lhs: Array.DifferentiableView,
      rhs: Array.DifferentiableView
    ) -> Bool
Có sẵn ở nơi `Thành phần`: `Có thể phân biệt`
Có sẵn khi `Phần tử`: `Số học cộng` & `Có thể phân biệt`
  • Tuyên ngôn

    public static var zero: Array.DifferentiableView { get }
  • Tuyên ngôn

    public static func + (
      lhs: Array.DifferentiableView,
      rhs: Array.DifferentiableView
    ) -> Array.DifferentiableView
  • Tuyên ngôn

    public static func - (
      lhs: Array.DifferentiableView,
      rhs: Array.DifferentiableView
    ) -> Array.DifferentiableView
  • Tuyên ngôn

    public subscript(index: Int) -> Element { get }
Có sẵn ở nơi `Thành phần`: `Có thể phân biệt`
Có sẵn ở nơi `Phần tử`: `Có thể phân biệt` & `Hàm cơ bản`
  • Căn bậc hai của x .

    Đối với loại thực, nếu x âm thì kết quả là .nan . Đối với các loại phức tạp, có một nhánh cắt trên trục thực âm.

    Tuyên ngôn

    public static func sqrt(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Cosin của x , được hiểu là một góc tính bằng radian.

    Tuyên ngôn

    public static func cos(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Sin của x , được hiểu là một góc tính bằng radian.

    Tuyên ngôn

    public static func sin(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Tiếp tuyến của x , được hiểu là một góc tính bằng radian.

    Tuyên ngôn

    public static func tan(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Cosin nghịch đảo của x tính bằng radian.

    Tuyên ngôn

    public static func acos(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Sin nghịch đảo của x tính bằng radian.

    Tuyên ngôn

    public static func asin(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Tang nghịch đảo của x tính bằng radian.

    Tuyên ngôn

    public static func atan(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Cosin hyperbol của x .

    Tuyên ngôn

    public static func cosh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Sin hyperbol của x .

    Tuyên ngôn

    public static func sinh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Tiếp tuyến hyperbol của x .

    Tuyên ngôn

    public static func tanh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Cosin hyperbol nghịch đảo của x .

    Tuyên ngôn

    public static func acosh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Sin hyperbol nghịch đảo của x .

    Tuyên ngôn

    public static func asinh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Tang hyperbol nghịch đảo của x .

    Tuyên ngôn

    public static func atanh(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Hàm số mũ được áp dụng cho x hoặc e**x .

    Tuyên ngôn

    public static func exp(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Hai nâng lên lũy thừa x .

    Tuyên ngôn

    public static func exp2(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Mười nâng lên lũy thừa x .

    Tuyên ngôn

    public static func exp10(_ x: `Self`) -> Array<Element>.DifferentiableView
  • exp(x) - 1 được đánh giá để duy trì độ chính xác gần bằng 0.

    Tuyên ngôn

    public static func expm1(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Logarit tự nhiên của x .

    Tuyên ngôn

    public static func log(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Logarit cơ số hai của x .

    Tuyên ngôn

    public static func log2(_ x: `Self`) -> Array<Element>.DifferentiableView
  • Logarit cơ số mười của x .

    Tuyên ngôn

    public static func log10(_ x: `Self`) -> Array<Element>.DifferentiableView
  • log(1 + x) được đánh giá để duy trì độ chính xác gần bằng 0.

    Tuyên ngôn

    public static func log1p(_ x: `Self`) -> Array<Element>.DifferentiableView
  • exp(y log(x)) được tính toán mà không làm mất độ chính xác trung gian.

    Đối với kiểu thực, nếu x âm thì kết quả là NaN, ngay cả khi y có giá trị nguyên. Đối với các kiểu phức, có một nhánh cắt trên trục thực âm.

    Tuyên ngôn

    public static func pow(_ x: `Self`, _ y: `Self`) -> Array<Element>.DifferentiableView
  • x được nâng lên lũy thừa thứ n .

    Tích của n bản sao của x .

    Tuyên ngôn

    public static func pow(_ x: `Self`, _ n: Int) -> Array<Element>.DifferentiableView
  • Căn bậc n của x .

    Đối với kiểu thực, nếu x âm và n chẵn thì kết quả là NaN. Đối với các kiểu phức, có một nhánh cắt dọc theo trục thực âm.

    Tuyên ngôn

    public static func root(_ x: `Self`, _ n: Int) -> Array<Element>.DifferentiableView
Có sẵn ở nơi `Thành phần`: `Có thể phân biệt`
Có sẵn ở nơi `Element`: `Differentable` & `VectorProtocol`
Có sẵn ở nơi `Phần tử`: `Có thể phân biệt` & `PointwiseMultiplicative`
  • Tuyên ngôn

    public static var one: `Self` { get }
  • Tuyên ngôn

    public var reciprocal: `Self` { get }
  • Tuyên ngôn

    public static func .* (lhs: `Self`, rhs: `Self`) -> Array<Element>.DifferentiableView
  • Tuyên ngôn

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