mxm

From DavinciWiki
Jump to: navigation, search


Description

Matrix multiplication

Arguments and Return Values

Arguments: Two matrices of compatible dimension

Return Value: The product of the two inputs

Usage

Syntax: mxm(obj1 = VAL, obj2 = VAL)

Multiplies obj1 by obj2 using matrix multiplication

Examples

dv> a
3x3x1 array of float, bsq format [36 bytes]
0.558329        0.100168        0.899324
0.805147        0.930234        0.535199
0.938504        0.0242239       0.597536

dv> b
4x3x1 array of float, bsq format [48 bytes]
0.458205        0.548901        0.0514236       0.666115
0.229106        0.360575        0.428428        0.183978
0.852851        0.947622        0.508408        0.380546

dv> c = mxm(a,b)
4x3x1 array of double, bsq format [96 bytes]
1.04577         1.19480         0.528850        0.732574
1.03849         1.28453         0.712041        0.911130
0.945187        1.09012         0.362432        0.856998

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 03-27-2006

Personal tools