Matrix Operators

 

Unlike C/C++, SPL supports infix operators for matrix multiply, matrix power, matrix solve and matrix right division. The postfix and ~^ operators perform matrix transpose and matrix conjugate transpose.

 

 

Operator

Function

Description

*^

mmult

matrix multiply

\^

mdiv

matrix solve

/^

mrdiv

matrix right division

^^

mpow

matrix power

transpose

matrix transpose (postfix)

~^

transposeconj

matrix conjugate transpose (postfix)