1514件ヒット
[1-100件を表示]
(0.185秒)
ライブラリ
- ビルトイン (899)
- benchmark (12)
-
cgi
/ core (24) - csv (84)
- dbm (12)
- gdbm (12)
- matrix (96)
-
net
/ smtp (84) - openssl (24)
- optparse (12)
- ostruct (24)
- rake (36)
-
rexml
/ document (60) -
rubygems
/ platform (12) - sdbm (12)
- set (9)
- shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (30) -
webrick
/ httputils (12) -
yaml
/ dbm (12)
クラス
-
ARGF
. class (84) - Array (144)
-
Benchmark
:: Tms (12) - CSV (24)
-
CSV
:: FieldInfo (12) -
CSV
:: Table (48) - DBM (12)
- Enumerator (67)
-
Enumerator
:: Lazy (12) - GDBM (12)
-
Gem
:: Platform (12) - Hash (12)
- MatchData (110)
- Matrix (36)
-
Matrix
:: EigenvalueDecomposition (24) -
Matrix
:: LUPDecomposition (24) -
Net
:: SMTP (84) - NilClass (12)
- Object (24)
-
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (24)
- OptionParser (12)
-
REXML
:: Attributes (12) -
REXML
:: Element (12) -
REXML
:: Elements (12) -
REXML
:: Parent (24) -
Rake
:: FileList (36) - Range (14)
- Regexp (24)
-
RubyVM
:: InstructionSequence (12) - SDBM (12)
- Set (12)
- Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (30) - String (176)
- Struct (30)
- Time (12)
- Vector (12)
-
WEBrick
:: HTTPUtils :: FormData (12) -
YAML
:: DBM (12)
モジュール
-
CGI
:: QueryExtension :: Value (24) - Enumerable (163)
キーワード
- + (7)
- << (12)
- == (12)
- [] (48)
- bytes (24)
- captures (12)
- cat (18)
- chain (7)
- chars (24)
- children (12)
- chunk (12)
-
chunk
_ while (12) - codepoints (24)
-
col
_ sep (12) - combination (24)
- deconstruct (8)
- delete (12)
-
delete
_ if (12) - each (72)
-
each
_ byte (24) -
each
_ codepoint (24) -
each
_ grapheme _ cluster (16) -
each
_ line (24) -
each
_ pair (24) - echo (18)
- entries (19)
- force (12)
-
get
_ elements (12) - glob (18)
-
grapheme
_ clusters (16) -
header
_ converters (12) - length (12)
- line (12)
- lines (24)
- match (24)
-
max
_ by (48) - permutation (24)
- rcptto (12)
-
rcptto
_ list (12) - readlines (24)
- ready (12)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - sample (24)
-
send
_ mail (12) - sendmail (12)
- size (24)
-
slice
_ after (24) -
slice
_ before (24) -
slice
_ when (12) - tee (18)
-
to
_ ary (84) - values (12)
-
values
_ at (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ a -> Array (30308.0) -
self の情報を 14 要素の配列にして返します。
...ォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データフォーマットを示す数......構成される Hash オブジェクト。
:arg_size: メソッド、ブロックが取る引数の総数(1 つもない場合は 0)。
:local_size: ローカル変数の総数 + 1。
:stack_max: スタックの深さ。(SystemStackError を検出するために使用)
: #label......: #path
命令シーケンスの相対パス。文字列から作成していた場合は "<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場合は nil。
: #first_lineno
命令シーケンスの 1 行目の行番号。
: type... -
Vector
# to _ a -> Array (30308.0) -
ベクトル(Vector)から配列 (Array) に変換します。
...ベクトル(Vector)から配列 (Array) に変換します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 3, 5, 7, 9]
p v.to_a
# => [2, 3, 5, 7, 9]
//}... -
REXML
:: Parent # to _ a -> [REXML :: Child] (30302.0) -
子ノード列の配列を返します。
子ノード列の配列を返します。 -
Struct
# to _ a -> [object] (30208.0) -
構造体のメンバの値を配列にいれて返します。
...列にいれて返します。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345).to_a
# => ["Joe Smith", "123 Maple, Anytown NC", 12345]
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンス......に対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
@see d:spec/pattern_matching#matching_non_primitive_objects... -
Matrix
:: EigenvalueDecomposition # to _ a -> [Matrix , Matrix , Matrix] (27502.0) -
Matrix::EigenvalueDecomposition#v, Matrix::EigenvalueDecomposition#d, Matrix::EigenvalueDecomposition#v_inv をこの順に並べた配列を返します。
...Matrix::EigenvalueDecomposition#v,
Matrix::EigenvalueDecomposition#d,
Matrix::EigenvalueDecomposition#v_inv
をこの順に並べた配列を返します。... -
Matrix
:: LUPDecomposition # to _ a -> [Matrix , Matrix , Matrix] (27502.0) -
分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で 返します。
分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で
返します。 -
Array
# to _ a -> Array (27326.0) -
self を返します。ただし、Array のサブクラスのインスタンスに対して呼ばれた時は、 自身を Array に変換したものを返します。
...し、Array のサブクラスのインスタンスに対して呼ばれた時は、
自身を Array に変換したものを返します。
//emlist[例][ruby]{
class SubArray < Array; end
ary1 = Array([1, 2, 3, 4])
ary2 = SubArray([1, 2, 3, 4])
ary1.to_a # => [1, 2, 3, 4]
ary1.to_a.class......# => Array
ary2.to_a # => [1, 2, 3, 4]
ary2.to_a.class # => Array
//}
@see Array#to_ary... -
REXML
:: Elements # to _ a(xpath = nil) -> [REXML :: Element] (27314.0) -
すべての子要素の配列を返します。
...xpath を指定した場合は、その XPath 文字列に
マッチする要素の配列を返します。
REXML::Elements#each と同様、REXML::XPath.match などと
異なり、要素以外の子ノードは無視されます。
@param xpath XPath文字列
//emlist[][ruby]{
require 'rexml/......document'
require 'rexml/xpath'
doc = REXML::Document.new '<a>sean<b/>elliott<c/></a>'
doc.root.elements.to_a # => [<b/>, <c/>]
doc.root.elements.to_a("child::node()") # => [<b/>, <c/>]
REXML::XPath.match(doc.root, "child::node()") # => ["sean", <b/>, "elliott", <c/>]
//}... -
Matrix
# to _ a -> Array (27308.0) -
自分自身をArrayに変換したものを返します。
...自身をArrayに変換したものを返します。
行ベクトルを配列(Array)としたものの配列(つまり配列の配列)として返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.to_a # => [[1, 2,...