You are here

Revision of Matrix Operators and Functions from Sat, 09/05/2009 - 18:34

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~

Transpositiont(A)A'

Element poweringA ^ BA ^ B

MultiplicationA %*% BA * B

Dot productA * BA . B

Kronecker productA %x% BA @ B

Quadratic product1A %&% BA & B

Element divisionA / BA % B

AdditionA + BA + B

Subtraction (binary)A - BA - B

Subtraction (unary)- A- A

Horizontal adhesioncbind(A,B,C)A | B | C

Vertical adhesionrbind(A,B,C) A _ B _ C

Determinantdet(A)\det(A) No

Trace1tr(A)\tr(A)

Sumsum(A,B,C)\sum(A,B,C)

Productprod(A,B,C)\prod(A,B,C)

Maximummax(A,B,C)\max(A,B,C)

Minimummin(A,B,C)\min(A,B,C)

Absolute valueabs(A)\abs(A)

Cosinecos(A)\cos(A)

Hyperbolic cosinecosh(A)\cosh(A)

Sinesin(A)\sin(A)

Hyperbolic sinesinh(A)\sinh(A)

Tangenttan(A)\tan(A)

Hyperbolic tangenttanh(A)\tanh(A)

Element Exponentexp(A)\exp(A)

Element Natural Loglog(A)\ln(A)

Element Square Rootsqrt(A)\sqrt(A)

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.