Class

MPSMatrixMultiplication

A matrix multiplication kernel.

Declaration

@interface MPSMatrixMultiplication : MPSKernel

Overview

An MPSMatrixMultiplication object computes the following operation:

C = alpha * op(A) * op(B) + beta * C

Where A, B, and C are matrices represented by MPSMatrix objects, and alpha and beta are scalar values of the same data type as the values of C. A and B may each have an optional transposition operation applied.

Matrices A, B, and C are also referred to as the left input matrix, the right input matrix, and the result matrix respectively.

Topics

Methods

Properties

leftMatrixOrigin

The origin of the left input matrix.

rightMatrixOrigin

The origin of the right input matrix.

resultMatrixOrigin

The origin of the result matrix.

Relationships

Inherits From

See Also

Matrix Arithmetic Operations

MPSMatrixSum

A kernel for performing a pointwise summation of a matrix.

MPSMatrixVectorMultiplication

A matrix-vector multiplication kernel

MPSMatrixFindTopK

A kernel for computing the top-K values and their corresponding indices in a matrix.