1655件ヒット
[101-200件を表示]
(0.219秒)
ライブラリ
- ビルトイン (56)
-
bigdecimal
/ jacobian (12) -
bigdecimal
/ ludcmp (24) -
cgi
/ html (12) - csv (1146)
- matrix (355)
-
minitest
/ spec (1) -
minitest
/ unit (1) - readline (12)
クラス
- Array (12)
- CSV (504)
-
CSV
:: FieldInfo (36) -
CSV
:: Row (342) -
CSV
:: Table (228) - Matrix (331)
- Object (1)
- String (12)
- UncaughtThrowError (33)
- Vector (12)
モジュール
-
CGI
:: HtmlExtension (12) - Jacobian (12)
- Kernel (12)
- LUSolve (24)
-
MiniTest
:: Assertions (1) - Readline (12)
キーワード
- << (36)
- == (24)
- Matrix (12)
- Row (12)
- UncaughtThrowError (11)
- [] (60)
- []= (43)
-
add
_ row (12) -
assert
_ throws (1) - build (24)
-
by
_ col _ or _ row (12) -
by
_ col _ or _ row! (12) -
by
_ row (12) -
by
_ row! (12) - cofactor (12)
-
cofactor
_ expansion (12) - convert (36)
- converters (12)
- covector (12)
- deconstruct (3)
-
deconstruct
_ keys (3) - delete (24)
-
delete
_ if (24) - each (36)
-
each
_ with _ index (24) - empty (12)
- empty? (12)
- field (12)
- field? (12)
-
field
_ row? (12) - fields (12)
- filter (36)
-
find
_ index (36) -
first
_ minor (12) -
force
_ quotes? (12) - foreach (24)
- generate (12)
-
generate
_ line (12) - gets (12)
- header (12)
- header? (12)
-
header
_ convert (36) -
header
_ converters (12) -
header
_ row? (24) - headers (36)
- include? (12)
- index (60)
- inspect (36)
- jacobian (12)
-
laplace
_ expansion (12) - length (12)
- line (12)
- lineno (12)
- ludecomp (12)
- lusolve (12)
- minor (24)
-
must
_ throw (1) - new (36)
- open (24)
- parse (24)
-
parse
_ csv (12) - push (24)
- puts (12)
-
quote
_ char (12) -
rb
_ f _ throw (12) -
rb
_ throw (12) - read (24)
- readline (12)
- readlines (24)
-
return
_ headers? (12) - rewind (12)
-
row
_ count (12) -
row
_ sep (12) -
row
_ size (12) -
row
_ vector (12) -
row
_ vectors (12) - rows (12)
-
ruby 1
. 8 . 2 feature (12) -
set
_ screen _ size (12) - shift (12)
- size (12)
- tag (11)
- textarea (12)
- throw (12)
-
to
_ a (12) -
to
_ csv (24) -
to
_ hash (12) -
to
_ s (23) -
unconverted
_ fields? (12) - value (11)
-
values
_ at (24) -
write
_ headers? (12) - zero (24)
検索結果
先頭5件
-
Matrix
. row _ vector(row) -> Matrix (12424.0) -
要素がrowの(1,n)型の行列(行ベクトル)を生成します。
...要素がrowの(1,n)型の行列(行ベクトル)を生成します。
@param row (1,n)型の行列として生成するVector Array オブジェクト... -
Matrix
. rows(rows , copy = true) -> Matrix (12400.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 配列を複製するかどうかを真偽値で指定... -
CSV
:: Table # by _ row -> CSV :: Table (12345.0) -
ロウモードになっている新しい CSV::Table オブジェクトを返します。
...emlist[例][ruby]{
require "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 (12327.0) -
自身をロウモードに変更します。
...。
@return 必ず自身を返すので安全にメソッドチェーンできます。
//emlist[例][ruby]{
require "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_count:3>
table[0] # => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
table[1] # => #<CSV::Row "header1":"row2_1" "header2":"row2_2">
//}... -
CSV
:: Table # by _ col _ or _ row -> CSV :: Table (12303.0) -
ミックスモードになっている新しい CSV::Table オブジェクトを返します。
...][ruby]{
require "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
co......l_or_row_table # => #<CSV::Table mode:col_or_row row_count:3>
table # => #<CSV::Table mode:col row_count:3>
//}... -
CSV
:: Table # by _ col _ or _ row! -> self (12285.0) -
自身をミックスモードに変更します。
...。
@return 必ず自身を返すので安全にメソッドチェーンできます。
//emlist[例][ruby]{
require "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_co......l!
table # => #<CSV::Table mode:col row_count:3>
table.by_col_or_row!
table # => #<CSV::Table mode:col_or_row row_count:3>
//}... -
CSV
# row _ sep -> String (12237.0) -
行区切り文字列として使用する文字列を返します。
...行区切り文字列として使用する文字列を返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2|row1_1,row1_2", row_sep: "|")
csv.row_sep # => "|"
csv.read # => [["header1", "header2"], ["row1_1", "row1_2"]]
//}
@see CSV.new... -
CSV
# header _ row? -> bool (12219.0) -
次に読み込まれる行が、ヘッダである場合に真を返します。 そうでない場合は、偽を返します。
...に読み込まれる行が、ヘッダである場合に真を返します。
そうでない場合は、偽を返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.header_row? # => true
csv.readline
csv.header_row? # => false
//}... -
Matrix
# row _ vectors -> [Vector] (12207.0) -
自分自身を行ベクトルの配列として返します。
...自分自身を行ベクトルの配列として返します。
//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_vectors # => [Vector[1, 2, 3], Vector[10, 15, 20], Vector[-1, -2, 1.5]]
//}...