One Logo Pool Ball
Accelerate · IOS API REFERENCE

BNNSNDArrayDescriptor

struct · SDK 27.1

struct BNNSNDArrayDescriptor

Members (30)

get

data

TypeScript
get data(): (SDKHandle) | null
Swift declaration
var data: UnsafeMutableRawPointer?
set

data

TypeScript
set data(value: (SDKHandle) | null)
Swift declaration
var data: UnsafeMutableRawPointer?
get

data_bias

TypeScript
get data_bias(): number
Swift declaration
var data_bias: Float
set

data_bias

TypeScript
set data_bias(value: number)
Swift declaration
var data_bias: Float
get

data_scale

TypeScript
get data_scale(): number
Swift declaration
var data_scale: Float
set

data_scale

TypeScript
set data_scale(value: number)
Swift declaration
var data_scale: Float
get

data_type

TypeScript
get data_type(): BNNSDataType
Swift declaration
var data_type: BNNSDataType
set

data_type

TypeScript
set data_type(value: BNNSDataType)
Swift declaration
var data_type: BNNSDataType
get

flags

TypeScript
get flags(): BNNSNDArrayFlags
Swift declaration
var flags: BNNSNDArrayFlags
set

flags

TypeScript
set flags(value: BNNSNDArrayFlags)
Swift declaration
var flags: BNNSNDArrayFlags
get

layout

TypeScript
get layout(): BNNSDataLayout
Swift declaration
var layout: BNNSDataLayout
set

layout

TypeScript
set layout(value: BNNSDataLayout)
Swift declaration
var layout: BNNSDataLayout
get

size

TypeScript
get size(): [number, number, number, number, number, number, number, number]
Swift declaration
var size: (Int, Int, Int, Int, Int, Int, Int, Int)
set

size

TypeScript
set size(value: [number, number, number, number, number, number, number, number])
Swift declaration
var size: (Int, Int, Int, Int, Int, Int, Int, Int)
get

stride

TypeScript
get stride(): [number, number, number, number, number, number, number, number]
Swift declaration
var stride: (Int, Int, Int, Int, Int, Int, Int, Int)
set

stride

TypeScript
set stride(value: [number, number, number, number, number, number, number, number])
Swift declaration
var stride: (Int, Int, Int, Int, Int, Int, Int, Int)
get

table_data

TypeScript
get table_data(): (SDKHandle) | null
Swift declaration
var table_data: UnsafeMutableRawPointer?
set

table_data

TypeScript
set table_data(value: (SDKHandle) | null)
Swift declaration
var table_data: UnsafeMutableRawPointer?
get

table_data_type

TypeScript
get table_data_type(): BNNSDataType
Swift declaration
var table_data_type: BNNSDataType
set

table_data_type

TypeScript
set table_data_type(value: BNNSDataType)
Swift declaration
var table_data_type: BNNSDataType
method · iOS 14.0+

deallocate

TypeScript
deallocate(): void
Swift declaration
func deallocate()

Frees any memory associated with this `BNNSNDArrayDescriptor`.

init · iOS 15.0+

init

TypeScript
static initDataShapeBatchSize(data: Float32Array, shape: BNNS_Shape, batchSize: number): (BNNSNDArrayDescriptor) | null
Swift declaration
init?<T>(data: UnsafeMutableBufferPointer<T>, shape: BNNS.Shape, batchSize: Int) where T : BNNSScalar

Creates an `BNNSNDArrayDescriptor` referencing the same memory as the specified `UnsafeMutableBufferPointer`.

init · iOS 14.0+

init

TypeScript
static initDataShape(data: Float32Array, shape: BNNS_Shape): (BNNSNDArrayDescriptor) | null
Swift declaration
init?<T>(data: UnsafeMutableBufferPointer<T>, shape: BNNS.Shape) where T : BNNSScalar

Creates an `BNNSNDArrayDescriptor` referencing the same memory as the specified `UnsafeMutableBufferPointer`.

get · iOS 14.0+

shape

TypeScript
get shape(): BNNS_Shape
Swift declaration
var shape: BNNS.Shape { get }

The computed shape (layout, size, and stride) of this `BNNSNDArrayDescriptor`.

static · iOS 14.0+

allocate

TypeScript
static allocateInitializingFromShapeBatchSize(source: Array<number>, shape: BNNS_Shape, batchSize?: number): BNNSNDArrayDescriptor
Swift declaration
static func allocate<C>(initializingFrom source: C, shape: BNNS.Shape, batchSize: Int = 1) -> BNNSNDArrayDescriptor where C : Collection, C.Element : BNNSScalar

Creates an `BNNSNDArrayDescriptor` populated with a **copy** of the values in `source`.

static · iOS 14.0+

allocate

TypeScript
static allocateRepeatingShapeBatchSize(repeatedValue: number, shape: BNNS_Shape, batchSize?: number): BNNSNDArrayDescriptor
Swift declaration
static func allocate<T>(repeating repeatedValue: T, shape: BNNS.Shape, batchSize: Int = 1) -> BNNSNDArrayDescriptor where T : BNNSScalar

Creates an `BNNSNDArrayDescriptor` filled with the specified scalar value.

get · iOS 16.0+

dataSize

TypeScript
get dataSize(): number
Swift declaration
var dataSize: Int { get }

The size, in bytes, of the array data. This value is `0` if `data` is `nil` of if BNNS is unable to determine the size of the array data. - seealso: `BNNSNDArrayGetDataSize`

init · iOS 14.0+

init

TypeScript
static initDataTypeShape(dataType: BNNSDataType, shape: BNNS_Shape): BNNSNDArrayDescriptor
Swift declaration
init(dataType: BNNSDataType, shape: BNNS.Shape)

Creates a data-less `BNNSNDArrayDescriptor`

init

init

TypeScript
static initFlagsLayoutSizeStrideDataData_typeTable_dataTable_data_typeData_scaleData_bias(flags: BNNSNDArrayFlags, layout: BNNSDataLayout, size: [number, number, number, number, number, number, number, number], stride: [number, number, number, number, number, number, number, number], data: (SDKHandle) | null, data_type: BNNSDataType, table_data: (SDKHandle) | null, table_data_type: BNNSDataType, data_scale: number, data_bias: number): BNNSNDArrayDescriptor
Swift declaration
init(flags: BNNSNDArrayFlags, layout: BNNSDataLayout, size: (Int, Int, Int, Int, Int, Int, Int, Int), stride: (Int, Int, Int, Int, Int, Int, Int, Int), data: UnsafeMutableRawPointer?, data_type: BNNSDataType, table_data: UnsafeMutableRawPointer?, table_data_type: BNNSDataType, data_scale: Float, data_bias: Float)
init

init

TypeScript
static init(): BNNSNDArrayDescriptor
Swift declaration
init()

Skipped declarations

11 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

BNNSNDArrayDescriptor.allocate(randomNormalUsing:mean:standardDeviation:shape:batchSize:)

This declaration needs Swift generic type arguments. (no canonical witness for Scalar)

BNNSNDArrayDescriptor.allocate(randomUniformUsing:range:shape:batchSize:)

This declaration needs Swift generic type arguments. (no canonical witness for Scalar)

BNNSNDArrayDescriptor.allocate(randomUniformUsing:range:shape:batchSize:)

This declaration needs Swift generic type arguments. (no canonical witness for Scalar)

BNNSNDArrayDescriptor.init(data:scalarType:shape:)

Passing a Swift type itself is not supported.

BNNSNDArrayDescriptor.allocateUninitialized(scalarType:shape:batchSize:)

Passing a Swift type itself is not supported.

BNNSNDArrayDescriptor.allocate(randomIn:shape:batchSize:)

This declaration needs Swift generic type arguments. (no canonical witness for Scalar)

BNNSNDArrayDescriptor.allocate(randomIn:shape:batchSize:)

This declaration needs Swift generic type arguments. (no canonical witness for Scalar)

BNNSNDArrayDescriptor.allocate(randomIn:using:shape:batchSize:)

This declaration needs Swift generic type arguments. (no canonical witness for Scalar)

BNNSNDArrayDescriptor.allocate(randomIn:using:shape:batchSize:)

This declaration needs Swift generic type arguments. (no canonical witness for Scalar)

BNNSNDArrayDescriptor.makeArray(of:batchSize:)

Passing a Swift type itself is not supported.

BNNSNDArrayDescriptor.init(data:scalarType:shape:batchSize:)

Passing a Swift type itself is not supported.

All Accelerate types →