DGEMMでそれを行うことができますが、DGERを使用する方がスタイリズム的に正しいでしょう。これは専用の外製品の実装です。そのため、正しく使用しやすいです:
cblas_dger(CblasRowMajor, /* you’re using row-major storage */
dx1, /* the matrix X has dx1 rows ... */
dx2, /* ... and dx2 columns. */
1.0, /* scale factor to apply to x1x2' */
x1,
1, /* stride between elements of x1. */
x2,
1, /* stride between elements of x2. */
X,
dx2); /* leading dimension of matrix X. */
DGEMM します 通り過ぎる素敵な機能があります \beta = 0
結果マトリックスを初期化します。これにより、コールの前に明示的に自分でゼロにする必要がないようになります。 @artem Shinkarovの答えは、DGEMMの使用方法についての素晴らしい説明を提供します。