Class

MPSMatrixDescriptor

A description of attributes used to create an MPS matrix.

Declaration

@interface MPSMatrixDescriptor : NSObject

Overview

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

Topics

Methods

+ matrixDescriptorWithDimensions:columns:rowBytes:dataType:

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

+ rowBytesFromColumns:dataType:

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

Properties

rows

The number of rows in the matrix.

columns

The number of columns in the matrix.

dataType

The type of the values in the matrix.

MPSDataType

A value to specify a type of data.

rowBytes

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

Relationships

Inherits From

See Also

Matrices

MPSMatrix

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

MPSTemporaryMatrix

A matrix allocated on GPU private memory.