1490件ヒット
[1-100件を表示]
(0.050秒)
ライブラリ
- ビルトイン (41)
-
bigdecimal
/ jacobian (11) -
bigdecimal
/ ludcmp (22) -
cgi
/ html (11) - csv (1045)
- matrix (325)
-
minitest
/ spec (1) -
minitest
/ unit (1) - readline (11)
クラス
- Array (11)
- CSV (440)
-
CSV
:: FieldInfo (33) -
CSV
:: Row (286) -
CSV
:: Table (253) - Matrix (303)
- Object (1)
- String (11)
- UncaughtThrowError (30)
- Vector (11)
モジュール
-
CGI
:: HtmlExtension (11) - Jacobian (11)
- Kernel (11)
- LUSolve (22)
-
MiniTest
:: Assertions (1) - Readline (11)
キーワード
- << (33)
- == (22)
- CSV (11)
-
DEFAULT
_ OPTIONS (11) - Matrix (11)
- [] (55)
- []= (6)
-
add
_ row (11) -
assert
_ throws (1) -
bigdecimal
/ jacobian (11) - build (22)
-
by
_ col (11) -
by
_ col! (11) -
by
_ col _ or _ row (11) -
by
_ col _ or _ row! (11) -
by
_ row (11) -
by
_ row! (11) - cofactor (11)
-
cofactor
_ expansion (11) - convert (33)
- converters (11)
- covector (11)
- delete (22)
-
delete
_ if (33) - each (44)
-
each
_ with _ index (22) - empty (11)
- empty? (11)
- encoding (11)
- field (11)
- field? (11)
-
field
_ row? (11) - fields (11)
-
find
_ index (33) -
first
_ minor (11) -
force
_ quotes? (11) - foreach (11)
- generate (11)
-
generate
_ line (11) - gets (11)
- header (11)
- header? (11)
-
header
_ converters (11) -
header
_ row? (22) - headers (33)
- include? (11)
- index (55)
- inspect (33)
- jacobian (11)
-
laplace
_ expansion (11) - length (11)
- line (11)
- lineno (11)
- ludecomp (11)
- lusolve (11)
- minor (22)
- mode (11)
-
must
_ throw (1) - new (33)
- open (44)
- parse (22)
-
parse
_ csv (11) - push (22)
- puts (11)
-
quote
_ char (11) - read (22)
- readline (11)
- readlines (22)
-
return
_ headers? (11) - rewind (11)
-
row
_ count (11) -
row
_ sep (11) -
row
_ size (11) -
row
_ vector (11) -
row
_ vectors (11) - rows (11)
-
ruby 1
. 8 . 2 feature (11) -
set
_ screen _ size (11) - shift (11)
- size (11)
-
skip
_ blanks? (11) - tag (10)
- textarea (11)
- throw (11)
-
to
_ a (11) -
to
_ csv (22) -
to
_ hash (11) -
to
_ s (21) -
unconverted
_ fields? (11) - value (10)
-
values
_ at (22) -
write
_ headers? (11) - zero (22)
検索結果
先頭5件
-
CSV
:: Row # row -> Array (21201.0) -
同値性を比較するために使用する内部的なデータです。
同値性を比較するために使用する内部的なデータです。 -
Matrix
# row(i) -> Vector | nil (18226.0) -
i 番目の行を Vector オブジェクトで返します。 i 番目の行が存在しない場合は nil を返します。 ブロックが与えられた場合はその行の各要素についてブロックを繰り返します。
...のインデックスと見倣します。末尾の行が -1 番目になります。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.row(1) # => Vector[10, 15, 20]
cnt = 0
m.row(0) { |x|
cnt = cnt + x
}
p cnt # => 6
//}... -
Matrix
# row(i) {|x| . . . } -> self (18226.0) -
i 番目の行を Vector オブジェクトで返します。 i 番目の行が存在しない場合は nil を返します。 ブロックが与えられた場合はその行の各要素についてブロックを繰り返します。
...のインデックスと見倣します。末尾の行が -1 番目になります。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.row(1) # => Vector[10, 15, 20]
cnt = 0
m.row(0) { |x|
cnt = cnt + x
}
p cnt # => 6
//}... -
CSV
:: Row # field _ row? -> bool (9249.0) -
フィールド行であれば真を返します。そうでなければ偽を返します。
...ド行であれば真を返します。そうでなければ偽を返します。
//emlist[例][ruby]{
require "csv"
header_row = CSV::Row.new(["header1", "header2"], [], true)
row = CSV::Row.new(["header1", "header2"], [1, 2])
header_row.field_row? # => false
row.field_row? # => true
//}... -
CSV
:: Row # header _ row? -> bool (9249.0) -
ヘッダ行であれば真を返します。そうでなければ偽を返します。
...行であれば真を返します。そうでなければ偽を返します。
//emlist[例][ruby]{
require "csv"
header_row = CSV::Row.new(["header1", "header2"], [], true)
row = CSV::Row.new(["header1", "header2"], [1, 2])
header_row.header_row? # => true
row.header_row? # => false
//}... -
CSV
:: Table # by _ row -> CSV :: Table (6345.0) -
ロウモードになっている新しい CSV::Table オブジェクトを返します。
..."csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
table # => #<CSV::Table mode:col_or_row row_count:3>
row_table = table.by_row # => #<CSV::Table mode:row row_count......:3>
row_table[0] # => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
row_table[1] # => #<CSV::Row "header1":"row2_1" "header2":"row2_2">
//}... -
CSV
:: Table # by _ row! -> self (6327.0) -
自身をロウモードに変更します。
..."csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
table # => #<CSV::Table mode:col_or_row row_count:3>
table.by_row!
table # => #<CSV::Table mode:row row_coun......t:3>
table[0] # => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
table[1] # => #<CSV::Row "header1":"row2_1" "header2":"row2_2">
//}... -
Matrix
. row _ vector(row) -> Matrix (6324.0) -
要素がrowの(1,n)型の行列(行ベクトル)を生成します。
...要素がrowの(1,n)型の行列(行ベクトル)を生成します。
@param row (1,n)型の行列として生成するVector Array オブジェクト... -
CSV
:: Table # by _ col _ or _ row -> CSV :: Table (6303.0) -
ミックスモードになっている新しい CSV::Table オブジェクトを返します。
...e "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2]).by_col!
table # => #<CSV::Table mode:col row_count:3>
col_or_row_table = table.by_col_or_row
col_or_row_table......# => #<CSV::Table mode:col_or_row row_count:3>
table # => #<CSV::Table mode:col row_count:3>
//}... -
Matrix
. rows(rows , copy = true) -> Matrix (6300.0) -
引数 rows を行ベクトルの列とする行列を生成します。
...引数 rows を行ベクトルの列とする行列を生成します。
引数 copy が偽(false)ならば、rows の複製を行いません。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2, 3]
a2 = [10, 15, 20]
m = Matrix.rows([a1, a2], false) # 配列を複製せずに行列を生成
p m......# => Matrix[[1, 2, 3], [10, 15, 20]]
a2[1] = 1000 # 配列のデータを変更
p m # => Matrix[[1, 2, 3], [10, 1000, 20]]
//}
@param rows 配列の配列
@param copy 配列を複製するかどうかを真偽値で指定...