Class

MPSMatrixDescriptor

A description of attributes used to create an MPS matrix.

Declaration

class MPSMatrixDescriptor : NSObject

Overview

Matrix data is assumed to be stored in row-major order.

Topics

Methods

init(dimensions: Int, columns: Int, rowBytes: Int, dataType: MPSDataType)

Creates a matrix descriptor with the specified dimensions and data type.

class func rowBytes(fromColumns: Int, dataType: MPSDataType) -> Int

Determines the recommended matrix row stride, in bytes, for a given number of columns.

Properties

var rows: Int

The number of rows in the matrix.

var columns: Int

The number of columns in the matrix.

var dataType: MPSDataType

The type of the values in the matrix.

enum MPSDataType

A value to specify a type of data.

var rowBytes: Int

The stride, in bytes, between corresponding elements of consecutive rows in the matrix.

Relationships

Inherits From

Conforms To

See Also

Matrices

class MPSMatrix

A 2D array of data that stores the data's values.

class MPSTemporaryMatrix

A matrix allocated on GPU private memory.