(rontolisp) docs
← 関数

linalg:full

(linalg:full shape value &key element-type)

要素がすべて value の配列を作成します。shape はランク 1 のベクタの場合は整数、ランク 2 の行列の場合はリスト (rows cols) です。linalg:zeroslinalg:ones はそれぞれ 0 と 1 の特殊ケースです。 デフォルトは packed double-float で、:element-type 'single-float を渡すと packed single-float (#f) になります。