405件ヒット
[1-100件を表示]
(0.097秒)
ライブラリ
- ビルトイン (93)
- json (24)
-
json
/ add / ostruct (12) -
json
/ add / struct (12) - openssl (24)
- prime (240)
クラス
-
Enumerator
:: Lazy (93) -
OpenSSL
:: PKey :: EC :: Group (24) - OpenStruct (12)
- Prime (48)
-
Prime
:: EratosthenesGenerator (12) -
Prime
:: Generator23 (12) -
Prime
:: PseudoPrimeGenerator (156) -
Prime
:: TrialDivisionGenerator (12) - Struct (12)
モジュール
キーワード
- chunk (24)
- each (48)
-
each
_ with _ index (24) - next (12)
- prime? (12)
-
prime
_ division (12) - rewind (12)
-
set
_ generator (12) -
slice
_ after (22) -
slice
_ before (36) -
slice
_ when (11) - succ (48)
-
to
_ json (48) -
upper
_ bound (12) -
upper
_ bound= (12) -
with
_ index (24) -
with
_ object (24)
検索結果
先頭5件
-
OpenSSL
:: PKey :: EC :: Group # generator -> OpenSSL :: PKey :: EC :: Point (21102.0) -
群の生成元を返します。
群の生成元を返します。 -
OpenSSL
:: PKey :: EC :: Group # set _ generator(generator , order , cofactor) -> self (9209.0) -
群のパラメータを設定します。
...ラメータを設定します。
@param generator 生成元(OpenSSL::PKey::EC::Point オブジェクト)
@param order 生成元の位数(OpenSSL::BN オブジェクト)
@param cofactor 余因子OpenSSL::BN オブジェクト
@raise OpenSSL::PKey::EC::Group::Error 設定に失敗した場合に発... -
Prime
:: PseudoPrimeGenerator # upper _ bound=(upper _ bound) (9201.0) -
新しい列挙上界をセットします。
...新しい列挙上界をセットします。
@param upper_bound 新しい上界を整数または nil で指定します。 nil は上界がなく無限に素数を列挙すべきであることを意味します。... -
Prime
:: PseudoPrimeGenerator # succ -> () (9101.0) -
次の擬似素数を返します。 また内部的な位置を進めます。
次の擬似素数を返します。
また内部的な位置を進めます。
サブクラスで実装してください。
@raise NotImplementedError 必ず発生します。 -
Prime
:: PseudoPrimeGenerator # upper _ bound -> Integer | nil (9101.0) -
現在の列挙上界を返します。 nil は上界がなく無限に素数を列挙すべきであることを意味します。
現在の列挙上界を返します。 nil は上界がなく無限に素数を列挙すべきであることを意味します。 -
JSON
:: Generator :: GeneratorMethods :: TrueClass # to _ json(state _ or _ hash = nil) -> String (9001.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
"true" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::Sta......te.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
true.to_json # => "true"
//}... -
Prime
:: EratosthenesGenerator # succ -> Integer (6137.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
...いては擬似素数は真に素数です。
また内部的な列挙位置を進めます。
//emlist[例][ruby]{
require 'prime'
generator = Prime::EratosthenesGenerator.new
p generator.next #=> 2
p generator.next #=> 3
p generator.succ #=> 5
p generator.succ #=> 7
p generator.next #=> 11
//}... -
Enumerator
:: Lazy # chunk {|elt| . . . } -> Enumerator :: Lazy (6107.0) -
Enumerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。
...Enumerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.chunk{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x007f8bf18118f0>:each>>
1.step.lazy.chunk{ |n| n % 3 == 0 }.take(5).force
# => [[fa......lse, [1, 2]], [true, [3]], [false, [4, 5]], [true, [6]], [false, [7, 8]]]
//}
@see Enumerable#chunk... -
Enumerator
:: Lazy # chunk(initial _ state) {|elt , state| . . . } -> Enumerator :: Lazy (6107.0) -
Enumerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。
...Enumerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.chunk{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x007f8bf18118f0>:each>>
1.step.lazy.chunk{ |n| n % 3 == 0 }.take(5).force
# => [[fa......lse, [1, 2]], [true, [3]], [false, [4, 5]], [true, [6]], [false, [7, 8]]]
//}
@see Enumerable#chunk...