LoginSignup
0
0

More than 5 years have passed since last update.

la_outer_productはベクトル外積にあらず

Last updated at Posted at 2017-12-28

問題

swiftでAccelerateをimportして利用できる行列ライブラリla_xxxにあるla_outer_productでベクトルを入力しても外積ベクトルが得られない

原因

la_outer_productはテンソルの直積を返すライブラリでした。例えば、2つの3次元ベクトル(正確には、3行1列の行列)を入力すると、戻りは3行3列の直積行列になります。
swiftにはBasic Linear Algebra Subprograms (BLAS)も用意されていますが、こちらにもベクトル外積のライブラリは見当たりませんでしたので、自身で実装しました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0