1840件ヒット
[1-100件を表示]
(0.097秒)
別のキーワード
ライブラリ
クラス
- Array (230)
- Complex (48)
- Data (3)
- Dir (19)
- Enumerator (60)
-
Enumerator
:: Lazy (169) - Exception (12)
- File (64)
-
File
:: Stat (12) - Float (45)
-
Gem
:: Installer (12) - Hash (20)
- IO (156)
- Integer (12)
- MatchData (106)
- Matrix (162)
- Module (84)
- Numeric (81)
- Object (48)
- OptionParser (48)
- Pathname (36)
- Prime (12)
-
Rake
:: InvocationChain (12) - Random (36)
- Range (27)
- Rational (97)
- Set (24)
- String (3)
- StringIO (74)
- Struct (12)
- Thread (9)
- TracePoint (12)
- Vector (36)
-
WIN32OLE
_ TYPELIB (12)
モジュール
- Enumerable (36)
- TSort (11)
キーワード
- * (12)
- ** (1)
-
/ (12) - [] (84)
- accept (12)
- adjugate (12)
-
angle
_ with (12) - antisymmetric? (7)
- append (12)
- atime (12)
-
backtrace
_ locations (12) - begin (12)
- birthtime (12)
- bsearch (24)
- bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- bytes (7)
- ceil (12)
- children (12)
- chunk (12)
-
cofactor
_ expansion (12) - collect (12)
- collect2 (12)
-
collect
_ concat (12) - combination (24)
- cycle (12)
-
delete
_ at (12) -
deprecate
_ constant (12) - det (12)
- detect (12)
- determinant (12)
- drop (12)
- each (72)
-
each
_ byte (24) -
each
_ child (7) -
each
_ line (48) - eigen (12)
- eigensystem (12)
- end (12)
- entries (12)
-
entrywise
_ product (8) -
enum
_ for (48) - fdatasync (12)
- feed (12)
-
fetch
_ values (22) - filter (7)
-
filter
_ map (6) - find (12)
-
find
_ all (12) -
flat
_ map (12) - flatten (24)
- flatten! (24)
- flock (12)
- floor (12)
-
hadamard
_ product (8) - hstack (12)
- install (12)
- isatty (12)
-
laplace
_ expansion (12) - lines (7)
- lstat (12)
- map (12)
- next (12)
-
next
_ values (12) - offset (24)
- on (36)
- path (32)
- peek (12)
-
peek
_ values (12) - permutation (24)
-
prime
_ division (24) - printf (12)
- private (48)
-
private
_ constant (12) - quo (12)
- rand (36)
- rationalize (24)
- regular? (12)
- reject (12)
-
relative
_ path _ from (12) -
remove
_ const (12) - reopen (24)
-
repeated
_ combination (24) -
repeated
_ permutation (24) -
report
_ on _ exception= (9) -
reverse
_ each (2) - rotate (12)
- rotate! (12)
- round (33)
- select (12)
- size (1)
-
skew
_ symmetric? (7) - stat (12)
- step (81)
- take (12)
-
to
_ d (36) -
to
_ enum (48) -
to
_ f (12) -
to
_ i (12) -
to
_ path (8) -
to
_ r (12) - tr (12)
- trace (12)
- truncate (36)
-
tsort
_ each (11) - tty? (12)
-
values
_ at (12) - with (3)
検索結果
先頭5件
-
Pathname
# relative _ path _ from(base _ directory) -> Pathname (15319.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......athname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対パスが求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pat......hname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
Array
# at(nth) -> object | nil (15125.0) -
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
...ドによる
暗黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
a = [ "a", "b", "c", "d", "e" ]
a[0] #=> "a"
a[1] #=> "b"
a... -
Array
# repeated _ combination(n) -> Enumerator (12331.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数......指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3]
a.repeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],......3,3]]
a.repeated_combination(4).to_a #=> [[1,1,1,1],[1,1,1,2],[1,1,1,3],[1,1,2,2],[1,1,2,3],
# [1,1,3,3],[1,2,2,2],[1,2,2,3],[1,2,3,3],[1,3,3,3],
# [2,2,2,2],[2,2,2,3],[2,2,3,3],[2,3,3,3],[3,3,3,3]]
a.repeated_combination(0).to_a... -
Array
# repeated _ permutation(n) -> Enumerator (12331.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数......t[例][ruby]{
a = [1, 2]
a.repeated_permutation(1).to_a #=> [[1], [2]]
a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
a.repeated_permutation(0).......to_a #=> [[]] # one permutation of length 0
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=... -
Array
# repeated _ combination(n) { |c| . . . } -> self (12231.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数......指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3]
a.repeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],......3,3]]
a.repeated_combination(4).to_a #=> [[1,1,1,1],[1,1,1,2],[1,1,1,3],[1,1,2,2],[1,1,2,3],
# [1,1,3,3],[1,2,2,2],[1,2,2,3],[1,2,3,3],[1,3,3,3],
# [2,2,2,2],[2,2,2,3],[2,2,3,3],[2,3,3,3],[3,3,3,3]]
a.repeated_combination(0).to_a... -
Array
# repeated _ permutation(n) { |p| . . . } -> self (12231.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数......t[例][ruby]{
a = [1, 2]
a.repeated_permutation(1).to_a #=> [[1], [2]]
a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
a.repeated_permutation(0).......to_a #=> [[]] # one permutation of length 0
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=... -
Enumerator
:: Lazy # collect _ concat {|item| . . . } -> Enumerator :: Lazy (9231.0) -
ブロックの実行結果をひとつに繋げたものに対してイテレートするような Enumerator::Lazy のインスタンスを返します。
...ロックの実行結果をひとつに繋げたものに対してイテレートするような
Enumerator::Lazy のインスタンスを返します。
//emlist[][ruby]{
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]
//}
ブロックの返した値 x......force メソッドを持つ (例:Enumerator::Lazy) とき
それ以外のときは、x は分解されず、そのままの値として使われます。
//emlist[][ruby]{
[{a:1}, {b:2}].lazy.flat_map {|i| i}.force
#=> [{:a=>1}, {:b=>2}]
//}
@raise ArgumentError ブロックを指定しなか......った場合に発生します。
@see Enumerable#flat_map... -
Enumerator
:: Lazy # flat _ map {|item| . . . } -> Enumerator :: Lazy (9231.0) -
ブロックの実行結果をひとつに繋げたものに対してイテレートするような Enumerator::Lazy のインスタンスを返します。
...ロックの実行結果をひとつに繋げたものに対してイテレートするような
Enumerator::Lazy のインスタンスを返します。
//emlist[][ruby]{
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]
//}
ブロックの返した値 x......force メソッドを持つ (例:Enumerator::Lazy) とき
それ以外のときは、x は分解されず、そのままの値として使われます。
//emlist[][ruby]{
[{a:1}, {b:2}].lazy.flat_map {|i| i}.force
#=> [{:a=>1}, {:b=>2}]
//}
@raise ArgumentError ブロックを指定しなか......った場合に発生します。
@see Enumerable#flat_map... -
Matrix
# adjugate -> Matrix (9219.0) -
余因子行列を返します。
...余因子行列を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6],[3,9]].adjugate # => Matrix[[9, -6], [-3, 7]]
//}
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します。
@see Matrix#cofactor...