CPUNumeric
public protocol CPUNumeric : Comparable, Numeric
Undocumented
-
Undocumented
Declaration
Swift
static func fill(value: Self, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func fill(value: Self, result: UnsafeMutableBufferPointer<Self>, stride: Int, count: Int)
-
Undocumented
Declaration
Swift
static func transpose(val: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, srcRows: Int, srcCols: Int)
-
Undocumented
Declaration
Swift
static func vAdd(lhs: UnsafeBufferPointer<Self>, rhs: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func vsAdd(lhs: UnsafeBufferPointer<Self>, rhs: Self, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func vNeg(val: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func vSub(lhs: UnsafeBufferPointer<Self>, rhs: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func vMul(lhs: UnsafeBufferPointer<Self>, rhs: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func vsMul(lhs: UnsafeBufferPointer<Self>, rhs: Self, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func vDiv(lhs: UnsafeBufferPointer<Self>, rhs: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func svDiv(lhs: Self, rhs: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func gemm(lhs: UnsafeBufferPointer<Self>, rhs: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, lhsShape: (Int, Int), rhsShape: (Int, Int), resultShape: (Int, Int), alpha: Self, beta: Self, transposeFirst: Bool, transposeSecond: Bool)
-
Undocumented
Declaration
Swift
static func log(val: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func exp(val: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func relu(val: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func tanh(val: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func sqrt(val: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func sum(val: UnsafeBufferPointer<Self>, count: Int) -> Self
-
Undocumented
Declaration
Swift
static func sum(val: UnsafeBufferPointer<Self>, stride: Int, count: Int) -> Self
-
Undocumented
Declaration
Swift
static func argmax(values: UnsafeBufferPointer<Self>, count: Int) -> (Int, Self)
-
Undocumented
Declaration
Swift
static func argmin(values: UnsafeBufferPointer<Self>, count: Int) -> (Int, Self)
-
Undocumented
Declaration
Swift
static func argmax(values: UnsafeBufferPointer<Self>, stride: Int, count: Int) -> (Int, Self)
-
Undocumented
Declaration
Swift
static func argmin(values: UnsafeBufferPointer<Self>, stride: Int, count: Int) -> (Int, Self)
-
Undocumented
Declaration
Swift
static func max(lhs: UnsafeBufferPointer<Self>, rhs: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func min(lhs: UnsafeBufferPointer<Self>, rhs: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
max(lhs:
Default implementationrhs: result: context: count: ) Undocumented
Default Implementation
Undocumented
Declaration
Swift
static func max(lhs: UnsafeBufferPointer<Self>, rhs: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, context: UnsafeMutableBufferPointer<Self>, count: Int)
-
min(lhs:
Default implementationrhs: result: context: count: ) Undocumented
Default Implementation
Undocumented
Declaration
Swift
static func min(lhs: UnsafeBufferPointer<Self>, rhs: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, context: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func copy(values: UnsafeBufferPointer<Self>, srcStride: Int, result: UnsafeMutableBufferPointer<Self>, dstStride: Int, count: Int)
-
Undocumented
Declaration
Swift
static func arange(start: Self, end: Self, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func sin(values: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func cos(values: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
Undocumented
Declaration
Swift
static func tan(values: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, count: Int)
-
img2col(values:
Default implementationresult: batchSize: channels: height: width: kernelHeight: kernelWidth: padding: stride: ) Undocumented
Default Implementation
Undocumented
Declaration
Swift
static func img2col(values: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, batchSize: Int, channels: Int, height: Int, width: Int, kernelHeight: Int, kernelWidth: Int, padding: Int, stride: Int)
-
col2img(values:
Default implementationresult: batchSize: channels: height: width: kernelHeight: kernelWidth: padding: stride: ) Undocumented
Default Implementation
Undocumented
Declaration
Swift
static func col2img(values: UnsafeBufferPointer<Self>, result: UnsafeMutableBufferPointer<Self>, batchSize: Int, channels: Int, height: Int, width: Int, kernelHeight: Int, kernelWidth: Int, padding: Int, stride: Int)
-
scatter(values:
Default implementationcontext: result: dst_shape: axis: ignoreIndex: ) Undocumented
Default Implementation
Undocumented
Declaration
Swift
static func scatter(values: UnsafeBufferPointer<Self>, context: UnsafeBufferPointer<Int32>, result: UnsafeMutableBufferPointer<Self>, dst_shape: [Int], axis: Int, ignoreIndex: Int32)
-
gather(values:
Default implementationcontext: result: src_shape: axis: ignoreIndex: ) Undocumented
Default Implementation
Undocumented
Declaration
Swift
static func gather(values: UnsafeBufferPointer<Self>, context: UnsafeBufferPointer<Int32>, result: UnsafeMutableBufferPointer<Self>, src_shape: [Int], axis: Int, ignoreIndex: Int32)