るりまサーチ

最速Rubyリファレンスマニュアル検索!
42件ヒット [1-42件を表示] (0.020秒)
トップページ > クエリ:column[x] > クエリ:columns[x]

別のキーワード

  1. matrix column
  2. ripper column
  3. psych column
  4. matrix column_size
  5. matrix column_count

ライブラリ

クラス

モジュール

キーワード

検索結果

Matrix.columns(columns) -> Matrix (24430.0)

引数 columns を列ベクトルの集合とする行列を生成します。

...引数 columns を列ベクトルの集合とする行列を生成します。

@param columns 配列の配列を渡します。

=== 注意

Matrix.rows との違いは引数として渡す配列の配列を列ベクトルの配列とみなして行列を生成します。

//emlist[例][ruby]{
re...
...3]
# [ 4, 5, 6]
# [-1, -2, -3]

# 配列を列ベクトルとして生成
m = Matrix.columns([a1, a2, a3])
p m # => Matrix[[1, 4, -1], [2, 5, -2], [3, 6, -3]]
# 行列としてのイメージ => [1, 4, -1]
#...

Readline.set_screen_size(rows, columns) -> Readline (223.0)

端末のサイズを引数 row、columns に設定します。

...端末のサイズを引数 row、columns に設定します。

@param rows 行数を整数で指定します。

@param columns 列数を整数で指定します。

@raise NotImplementedError サポートしていない環境で発生します。

@see GNU Readline ライブラリの rl_set_scre...

Matrix.empty(row_size=0, column_size=0) -> Matrix (125.0)

要素を持たない行列を返します。

...が0の行列のことです。

row_size 、 column_size のいずれか一方は0である必要があります。

//emlist[例][ruby]{
require 'matrix'
m = Matrix.empty(2, 0)
m == Matrix[ [], [] ]
# => true
n = Matrix.empty(0, 3)
n == Matrix.columns([ [], [], [] ])
# => true
m * n
# => Matrix[[0...
..., 0, 0], [0, 0, 0]]
//}

@param row_size 行列の行数
@param column_size 行列の列数
@raise ArgumentError row_size, column_size が両方とも0でない場合に発生します...

CSV::Row#deconstruct -> [object] (24.0)

パターンマッチに使用する行の値の配列を返します。

...[1, 2, 3])
case row
in [2.., 2.., 2..]
puts "all 2 or more"
in [...2, 2.., 2..]
puts "first column is less than 2, and rest columns are 2 or more"
end
#=> "first column is less than 2, and rest columns are 2 or more" が出力される
//}

@see d:spec/pattern_matching#matching_non_primitive_obj...

CSV::Row#deconstruct_keys(keys) -> Hash (24.0)

パターンマッチに使用するヘッダの名前と値の Hash を返します。

...r3: 2.. }
puts "all 2 or more"
in { header1: ...2, header2: 2.., header3: 2.. }
puts "first column is less than 2, and rest columns are 2 or more"
end
#=> "first column is less than 2, and rest columns are 2 or more" が出力される
//}

@see d:spec/pattern_matching#matching_non_primitive_obj...

絞り込み条件を変える