extension Array: MutableCollectionAlgorithms
extension Array: KeyPathIterable
extension Array: Differentiable where Element: Differentiable
extension Array: EuclideanDifferentiable
where Element: EuclideanDifferentiable
3extension Array : ConvertibleFromNumpyArray
where Element : NumpyScalarCompatible
extension Array where Element: Differentiable
10एन-public extension Array where Element : NumpyScalarCompatible
extension Array: TensorArrayProtocol where Element: TensorGroup
extension Array : PythonConvertible where Element : PythonConvertible
प्लेसहोल्डर9 एल10एन-प्लेसहोल्डर10 एल10एन-प्लेसहोल्डर11 एल10एन-extension Array: ElementaryFunctions where Element: ElementaryFunctions
extension Array : ConvertibleFromPython where Element : ConvertibleFromPython
extension Array where Element == Bool
extension Array where Element == Int64
extension Array where Element == XLATensor
extension Array where Element == UInt8
extension Array where Element: AnyTensor
extension Array where Element == PaddingConfigDimension
Element
के भिन्न-भिन्न उत्पाद के रूप में किसी सरणी का दृश्य अपने आप मेंcount
गुना बढ़ जाता है।घोषणा
18@frozen public struct DifferentiableView
extension Array.DifferentiableView: EuclideanDifferentiable where Element: EuclideanDifferentiable
19 एल10extension Array.DifferentiableView: Differentiable where Element: Differentiable
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
प्लेसहोल्डर26 एल10एन-प्लेसहोल्डर27 एल10एन-extension Array.DifferentiableView: KeyPathIterable where Element: Differentiable
एल10एन-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
घोषणा
public typealias AllKeyPaths = [PartialKeyPath<Array>]
घोषणा
public var allKeyPaths: [PartialKeyPath<Array>] { get }
घोषणा
public typealias TangentVector = Array<Element.TangentVector>.DifferentiableView
घोषणा
public mutating mutating func move(along direction: TangentVector)
एक क्लोजर जो
self
के समानcount
के साथ शून्य काTangentVector
उत्पन्न करता है।घोषणा
public var zeroTangentVectorInitializer: () -> TangentVector { get }
घोषणा
public var differentiableVectorView: TangentVector { get }
घोषणा
@derivative init(repeating: count)
घोषणा
@differentiable(wrt: self) public func differentiableMap<Result: Differentiable>( _ body: @differentiable (Element) -> Result ) -> [Result]
घोषणा
@differentiable(wrt: (self, initialResult) public func differentiableReduce<Result: Differentiable>( _ initialResult: Result, _ nextPartialResult: @differentiable (Result, Element) -> Result ) -> Result
निर्दिष्ट
numpy.ndarray
उदाहरण के समान आकार और स्केलर के साथ एकArray
बनाता है।शर्त लगाना
numpy
पायथन पैकेज स्थापित होना चाहिए।घोषणा
public init?(numpy numpyArray: PythonObject)
पैरामीटर
numpyArray
परिवर्तित करने के लिए
numpy.ndarray
उदाहरण।प्रतिलाभ की मात्रा
numpyArray
कोArray
में बदल दिया गया। यदिnumpyArray
1-D नहीं है या संगत स्केलरdtype
नहीं है, तोnil
लौटाता है।इस
Array
समान स्केलर के साथ एक 1-Dnumpy.ndarray
उदाहरण बनाता है।शर्त लगाना
numpy
पायथन पैकेज स्थापित होना चाहिए।घोषणा
func makeNumpyArray() -> PythonObject
घोषणा
public var pythonObject: PythonObject { get }
घोषणा
public init?(_ pythonObject: PythonObject)
x
का वर्गमूल.वास्तविक प्रकारों के लिए, यदि
x
ऋणात्मक है तो परिणाम.nan
है। जटिल प्रकारों के लिए ऋणात्मक वास्तविक अक्ष पर एक शाखा काटी जाती है।घोषणा
public static func sqrt(_ x: `Self`) -> Array<Element>
x
की कोज्या, रेडियन में एक कोण के रूप में व्याख्या की गई।घोषणा
public static func cos(_ x: `Self`) -> Array<Element>
x
की ज्या, रेडियन में एक कोण के रूप में व्याख्या की गई।घोषणा
public static func sin(_ x: `Self`) -> Array<Element>
x
की स्पर्शरेखा, रेडियन में एक कोण के रूप में व्याख्या की गई।घोषणा
public static func tan(_ x: `Self`) -> Array<Element>
रेडियन में
x
का व्युत्क्रम कोज्या.घोषणा
public static func acos(_ x: `Self`) -> Array<Element>
रेडियन में
x
की व्युत्क्रम ज्या.घोषणा
public static func asin(_ x: `Self`) -> Array<Element>
रेडियन में
x
का व्युत्क्रम स्पर्शरेखा।घोषणा
public static func atan(_ x: `Self`) -> Array<Element>
x
की अतिपरवलयिक कोज्या।घोषणा
public static func cosh(_ x: `Self`) -> Array<Element>
x
की अतिशयोक्तिपूर्ण ज्या।घोषणा
public static func sinh(_ x: `Self`) -> Array<Element>
x
की अतिशयोक्तिपूर्ण स्पर्शरेखा।घोषणा
public static func tanh(_ x: `Self`) -> Array<Element>
x
की व्युत्क्रम अतिपरवलयिक कोज्या।घोषणा
public static func acosh(_ x: `Self`) -> Array<Element>
x
की व्युत्क्रम अतिपरवलयिक ज्या।घोषणा
public static func asinh(_ x: `Self`) -> Array<Element>
x
का व्युत्क्रम अतिशयोक्तिपूर्ण स्पर्शरेखा।घोषणा
public static func atanh(_ x: `Self`) -> Array<Element>
घातीय फ़ंक्शन
x
, याe**x
पर लागू होता है।घोषणा
public static func exp(_ x: `Self`) -> Array<Element>
दो को घात
x
तक बढ़ाया गया।घोषणा
public static func exp2(_ x: `Self`) -> Array<Element>
दस को
x
घात तक बढ़ाया गया।घोषणा
public static func exp10(_ x: `Self`) -> Array<Element>
exp(x) - 1
का मूल्यांकन किया गया ताकि सटीकता को शून्य के करीब रखा जा सके।घोषणा
public static func expm1(_ x: `Self`) -> Array<Element>
x
का प्राकृतिक लघुगणक।घोषणा
public static func log(_ x: `Self`) -> Array<Element>
x
का आधार-दो लघुगणक।घोषणा
public static func log2(_ x: `Self`) -> Array<Element>
x
का आधार-दस लघुगणक।घोषणा
public static func log10(_ x: `Self`) -> Array<Element>
log(1 + x)
मूल्यांकन किया गया ताकि सटीकता को शून्य के करीब रखा जा सके।घोषणा
public static func log1p(_ x: `Self`) -> Array<Element>
exp(y log(x))
की गणना मध्यवर्ती परिशुद्धता के नुकसान के बिना की गई।वास्तविक प्रकारों के लिए, यदि
x
ऋणात्मक है तो परिणाम NaN है, भले हीy
का एक अभिन्न मान हो। जटिल प्रकारों के लिए, नकारात्मक वास्तविक अक्ष पर एक शाखा काटी जाती है।घोषणा
public static func pow(_ x: `Self`, _ y: `Self`) -> Array<Element>
x
n
घात तक बढ़ाया गया।x
कीn
प्रतियों का गुणनफल।घोषणा
public static func pow(_ x: `Self`, _ n: Int) -> Array<Element>
x
काn
वाँ मूल।वास्तविक प्रकारों के लिए, यदि
x
ऋणात्मक है औरn
सम है, तो परिणाम NaN है। जटिल प्रकारों के लिए, नकारात्मक वास्तविक अक्ष के साथ एक शाखा काटी जाती है।घोषणा
public static func root(_ x: `Self`, _ n: Int) -> Array<Element>
घोषणा
public init(_owning tensorHandles: UnsafePointer<CTensorHandle>?, count: Int)
घोषणा
public init<C: RandomAccessCollection>( _handles: C ) where C.Element: _AnyTensorHandle
टिप्पणी
SHA1 हैश केवल 20 बाइट्स लंबा है और इसलिए लौटाए गएSIMD32<UInt8>
के केवल पहले 20 बाइट्स गैर-शून्य हैं।घोषणा
func sha1() -> SIMD32<UInt8>
घोषणा
func sha512() -> SIMD64<UInt8>
a || b
की गणना करता हैa || b
तत्ववार जैसे कि हम दो मुखौटे एक साथ कर रहे थे।घोषणा
public func mergingMask(with other: [Bool]) -> [Bool]
घोषणा
func withArrayRef<Result>(_ body: (Int64ArrayRef) throws -> Result) rethrows -> Result
घोषणा
func withArrayRef<Result>(_ body: (OpaqueXLATensorArrayRef) throws -> Result) rethrows -> Result
घोषणा
func withArrayRef<T, Result>(_ body: (OpaqueXLATensorArrayRef) throws -> Result) rethrows -> Result where Element == Tensor<T>
घोषणा
func withArrayRef<Result>(_ body: (inout PaddingConfig) -> Result) -> Result