Next: Vectors, Previous: Introduction to Matrices and Linear Algebra, Up: Introduction to Matrices and Linear Algebra [Contents][Index]
演算子.
は、非可換乗算とスカラー積を表します。
オペランドが、1列行列または1行行列a
とb
の時、
式a.b
は、sum (a[i]*b[i], i, 1, length(a))
と同値です。
もしa
とb
が複素数でないなら、これはスカラー積であり、
a
とb
の内積すなわちドット積もコールされます。
a
とb
が複素数の時、スカラー積は
conjugate(a).b
として定義されます;
eigen
パッケージのinnerproduct
は、複素スカラー積を供給します。
オペランドがもっと一般的な行列の時、
積は、a
とb
の行列積です。
b
の行数は、a
の列数と等しくなければいけなく、
結果は、a
の行数と等しい行数と
b
の列数と等しい列数を持ちます。
.
を算術演算子として
浮動小数点数の小数点と区別するために、
どちらかの側にスペースを残す必要があるかもしれません。
例えば、5.e3
は5000.0
ですが、5 . e3
は5
掛けるe3
です。
.
を含む式の整理を支配する
いくつかのフラグがあります。
すなわち、dot0nscsimp
, dot0simp
, dot1simp
, dotassoc
,
dotconstrules
, dotdistrib
, dotexptsimp
, dotident
,
dotscrules
。
Next: Vectors, Previous: Introduction to Matrices and Linear Algebra, Up: Introduction to Matrices and Linear Algebra [Contents][Index]