enum Status Values
badAllocation | ||
|---|---|---|
unexpectedDimensions | ||
missingGpu | ||
deviceCodeMismatch | ||
deviceMemoryMismatch | ||
missingKernel | ||
misaligned | ||
packMismatch | ||
missingLibrary |
Conforms to
Equatable, Hashable, RawRepresentable, Sendableimport NumKong
let a: [Float32] = [1, 2, 3]
let b: [Float32] = [4, 5, 6]
let dot = a.dot(b) // widened to Float64
print(dot as Any)StatusWhy a call failed, one case per failing nk_status_t, which nk_status_name spells.1enum Status badAllocation | ||
|---|---|---|
unexpectedDimensions | ||
missingGpu | ||
deviceCodeMismatch | ||
deviceMemoryMismatch | ||
missingKernel | ||
misaligned | ||
packMismatch | ||
missingLibrary |
Equatable, Hashable, RawRepresentable, SendablenameThe C spelling, like "unexpected_dimensions".var name: String { get } ErrorOne failed call: a status every caller can branch on, and the detail the status cannot carry.3statusThe failure identity, shared with the C library.let status: Status messageThis binding's detail when it rejected the call itself, else empty.let message: String descriptionvar description: String { get }