You are here

Revision of Matrix Operators and Functions from Fri, 09/11/2009 - 18:01

Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.

The following table list matrix operators and functions that are supported by OpenMx. A blank value for the columns 'Implemented' or 'Passing Tests' indicates that the entry has been implemented or is passing the sample tests, respectively.

Operator nameR nameMx nameImplementedPassing Tests

Inversionsolve(A)A~ Yes
Transposet(A)A' Yes
Element poweringA ^ BA ^ B Yes
Matrix multiplicationA %*% BA * B Yes
Dot productA * BA . B Yes
Kronecker productA %x% BA @ B Yes
Quadratic product1A %&% BA & B Yes
Element divisionA / BA % B Yes
AdditionA + BA + B Yes
Subtraction (binary)A - BA - B Yes
Subtraction (unary)- A- A Yes
Horizontal adhesioncbind(A,B,C)A | B | C Yes
Vertical adhesionrbind(A,B,C) A _ B _ C Yes
Determinantdet(A)\det(A) No
Trace1tr(A)\tr(A) Yes
Sumsum(A,B,C)\sum(A,B,C) Yes
Productprod(A,B,C)\prod(A,B,C) Yes
Maximummax(A,B,C)\max(A,B,C) Yes
Minimummin(A,B,C)\min(A,B,C) Yes
Absolute valueabs(A)\abs(A) Yes
Cosinecos(A)\cos(A) Yes
Hyperbolic cosinecosh(A)\cosh(A) Yes
Sinesin(A)\sin(A) Yes
Hyperbolic sinesinh(A)\sinh(A) Yes
Tangenttan(A)\tan(A) Yes
Hyperbolic tangenttanh(A)\tanh(A) Yes
Element Exponentexp(A)\exp(A) Yes
Element Natural Loglog(A)\ln(A) Yes
Element Square Rootsqrt(A)\sqrt(A) Yes

1 Support for this operation in the R frontend is provided by the OpenMx library. This operation is not defined by the R core library, so you will be unable to use it without loading the OpenMx library.