種類
ライブラリ
- ビルトイン (151)
- bigdecimal (60)
-
bigdecimal
/ jacobian (12) -
bigdecimal
/ ludcmp (12) -
bigdecimal
/ newton (12) - matrix (24)
- openssl (36)
- pathname (21)
-
shell
/ command-processor (6)
クラス
- Array (21)
- BasicObject (12)
- BigDecimal (60)
- Fixnum (3)
- IO (12)
- Matrix (24)
- Numeric (24)
-
OpenSSL
:: BN (12) - Pathname (21)
-
Shell
:: CommandProcessor (6) - String (12)
- Struct (19)
モジュール
- FileTest (24)
- Jacobian (12)
- LUSolve (12)
- Newton (12)
-
OpenSSL
:: X509 (12)
キーワード
-
EXCEPTION
_ ZERODIVIDE (12) - MEMZERO (12)
-
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Numeric (12)
- Ruby用語集 (12)
-
SIGN
_ NEGATIVE _ ZERO (12) -
SIGN
_ POSITIVE _ ZERO (12) -
V
_ ERR _ DEPTH _ ZERO _ SELF _ SIGNED _ CERT (12) - X509 (12)
- ZeroDivisionError (12)
-
bigdecimal
/ jacobian (12) -
bigdecimal
/ newton (12) - empty? (9)
- filter (7)
- isEqual (12)
- ludecomp (12)
-
method
_ missing (12) - nonzero? (24)
- norm (12)
- pack (21)
- pack テンプレート文字列 (12)
-
rb
_ load (12) - select (12)
- sign (12)
- size (12)
- size? (12)
- sysseek (12)
- unpack (12)
- zero? (45)
検索結果
先頭5件
-
NEWS for Ruby 3
. 1 . 0 (26036.0) -
NEWS for Ruby 3.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...NEWS for Ruby 3.1.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリス......名にできるようになりました。 11256
//emlist{
def foo(&)
bar(&)
end
//}
* ピン演算子に式を書けるようになりました。 17411
//emlist{
Prime.each_cons(2).lazy.find_all{_1 in [n, ^(n + 2)]}.take(3).to_a
#=> [[3, 5], [5, 7], [11, 13]]
//}
* ピン演算子がイ......* Addrinfo.getaddrinfo がaddress_resolveフックをサポートしました。 17370
* ブロックなしの Timeout.timeout に timeout_after フックが導入されました。 17470
* 新しいSchedulerのフックのio_readとio_writeが導入され、zero-copy read/write... -
NEWS for Ruby 3
. 0 . 0 (26018.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...NEWS for Ruby 3.0.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリス......ord arguments are now separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matche......ement array. 12706
* Now `{ a: 1 }.each(&->(k, v) { })` raises an ArgumentError due to lambda's arity check.
* When writing to STDOUT redirected to a closed pipe, no broken pipe error message will be shown now. 14413
* `TRUE`/`FALSE`/`NIL` constants are no longer defined.
* Integer#zero?... -
Matrix
. zero(n) -> Matrix (18248.0) -
n × n の零行列(要素が全て 0 の行列)を生成して返します。
...
n × n の零行列(要素が全て 0 の行列)を生成して返します。
//emlist[例][ruby]{
require 'matrix'
p Matrix.zero(2) #=> Matrix[[0, 0], [0, 0]]
//}
@param n 生成する正方零行列の次数... -
Matrix
. zero(row , column) -> Matrix (18213.0) -
row × column の零行列(要素が全て 0 の行列)を生成して返します。
...row × column の零行列(要素が全て 0 の行列)を生成して返します。
//emlist[例][ruby]{
require 'matrix'
p Matrix.zero(2, 3) #=> Matrix[[0, 0, 0], [0, 0, 0]]
//}
@param row 生成する行列の行数
@param column 生成する行列の列数... -
Numeric
# nonzero? -> self | nil (12206.0) -
自身がゼロの時 nil を返し、非ゼロの時 self を返します。
...自身がゼロの時 nil を返し、非ゼロの時 self を返します。
//emlist[例][ruby]{
p 10.nonzero? #=> 10
p 0.nonzero? #=> nil
p 0.0.nonzero? #=> nil
p Rational(0, 2).nonzero? #=> nil
//}
非ゼロの時に self を返すため、自身が 0......理をさせたい場合に以
下のように記述する事もできます。
//emlist[例][ruby]{
a = %w( z Bb bB bb BB a aA Aa AA A )
b = a.sort {|a,b| (a.downcase <=> b.downcase).nonzero? || a <=> b }
b #=> ["A", "a", "AA", "Aa", "aA", "BB", "Bb", "bB", "bb", "z"]
//}
@see Numeric#zero?... -
BigDecimal
:: SIGN _ NEGATIVE _ ZERO -> Integer (12201.0) -
負の 0 に対応する BigDecimal#sign の値を返します。
...負の 0 に対応する BigDecimal#sign の値を返します。... -
BigDecimal
:: SIGN _ POSITIVE _ ZERO -> Integer (12201.0) -
正の 0 に対応する BigDecimal#sign の値を返します。
...正の 0 に対応する BigDecimal#sign の値を返します。... -
OpenSSL
:: X509 :: V _ ERR _ DEPTH _ ZERO _ SELF _ SIGNED _ CERT -> Integer (12201.0) -
検証している証明書がルート CA (自己署名証明書)であり、 それが信頼されている証明書でないことを意味します。
...いことを意味します。
OpenSSL::X509::Store#error や
OpenSSL::X509::StoreContext#error のエラーコードとして
使われます。
@see OpenSSL::X509::Store#add_file,
OpenSSL::X509::Store#add_path,
OpenSSL::X509::Store#add_cert,
OpenSSL::X509::Store#set_default_paths... -
BigDecimal
# nonzero? -> self | nil (12200.0) -
self が 0 以外のときに self を返します。0 のときに nil を返します。
...self が 0 以外のときに self を返します。0 のときに nil を返します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0").nonzero? # => nil
BigDecimal("1").nonzero? # => 0.1e1
//}... -
BigDecimal
:: EXCEPTION _ ZERODIVIDE -> Integer (12200.0) -
BigDecimal に 0 による割り算を実行した場合に例外を発生させるかど うかを設定、確認する際の値を返します。
BigDecimal に 0 による割り算を実行した場合に例外を発生させるかど
うかを設定、確認する際の値を返します。
BigDecimal.mode の第 1 引数に指定します。