Class

MPSMatrix

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

Declaration

class 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

Properties

var device: MTLDevice

The device on which the matrix will be used.

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.

var rowBytes: Int

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

var data: MTLBuffer

The buffer that stores the matrix data.

Instance Properties

Relationships

Inherits From

Conforms To

See Also

Matrices

class MPSMatrixDescriptor

A description of attributes used to create an MPS matrix.

class MPSTemporaryMatrix

A matrix allocated on GPU private memory.