HP 50g HP 50g_user's manual_English_HDPSG49AEM8.pdf - Page 118

Matrix-vector multiplication, the product, c

Page 118 highlights

Matrix-vector multiplication Matrix-vector multiplication is possible only if the number of columns of the matrix is equal to the length of the vector. A couple of examples of matrixvector multiplication follow: Vector-matrix multiplication, on the other hand, is not defined. This multiplication can be performed, however, as a special case of matrix multiplication as defined next. Matrix multiplication Matrix multiplication is defined by Cm×n = Am×p⋅Bp×n. Notice that matrix multiplication is only possible if the number of columns in the first operand is equal to the number of rows of the second operand. The general term in the product, cij, is defined as p ∑ cij = aik ⋅ bkj , for i = 1,2,K, m; j = 1,2,K, n. k =1 Matrix multiplication is not commutative, i.e., in general, A⋅B ≠ B⋅A. Furthermore, one of the multiplications may not even exist. The following screen shots show the results of multiplications of the matrices that we stored earlier: Page 9-5

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Page 9-5
Matrix-vector multiplication
Matrix-vector multiplication is possible only if the number of columns of the
matrix is equal to the length of the vector.
A couple of examples of matrix-
vector multiplication follow:
Vector-matrix multiplication, on the other hand, is not defined.
This
multiplication can be performed, however, as a special case of matrix
multiplication as defined next.
Matrix multiplication
Matrix multiplication is defined by
C
m
×
n
=
A
m
×
p
B
p
×
n
. Notice that matrix
multiplication is only possible if the number of columns in the first operand
is equal to the number of rows of the second operand.
The general term in
the product, c
ij
, is defined as
Matrix multiplication is not commutative, i.e., in general,
A
B
B
A
.
Furthermore, one of the multiplications may not even exist.
The following
screen shots show the results of multiplications of the matrices that we
stored earlier:
.
,
,
2
,
1
;
,
,
2
,
1
,
1
n
j
m
i
for
b
a
c
p
k
kj
ik
ij
K
K
=
=
=
=