Class

MPSMatrix

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

Declaration

@interface MPSMatrix : NSObject

Overview

MPSMatrix objects serve as inputs and outputs of MPSMatrixMultiplication objects. Matrix data is assumed to be stored in row-major order.

Topics

Methods

- initWithBuffer:descriptor:

Initializes a matrix with a buffer.

Properties

device

The device on which the matrix will be used.

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.

rowBytes

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

data

The buffer that stores the matrix data.

Instance Properties

Relationships

Inherits From

See Also

Matrices

MPSMatrixDescriptor

A description of attributes used to create an MPS matrix.

MPSTemporaryMatrix

A matrix allocated on GPU private memory.