333件ヒット
[101-200件を表示]
(0.074秒)
ライブラリ
- ビルトイン (57)
-
bigdecimal
/ ludcmp (12) - fiddle (24)
- objspace (36)
- openssl (12)
-
win32
/ registry (192)
モジュール
- Fiddle (24)
- FileTest (45)
- Kernel (12)
- LUSolve (12)
- ObjectSpace (36)
-
OpenSSL
:: Random (12) -
Win32
:: Registry :: API (192)
キーワード
- CloseKey (12)
- CreateKey (12)
- DeleteKey (12)
- DeleteValue (12)
- EnumKey (12)
- EnumValue (12)
- FlushKey (12)
- OpenKey (12)
- QueryInfoKey (12)
- QueryValue (12)
- SetValue (12)
- check (12)
-
count
_ objects _ size (12) - empty? (9)
- lusolve (12)
- malloc (12)
-
memsize
_ of (12) -
memsize
_ of _ all (12) - packdw (12)
- packqw (12)
- realloc (12)
- require (12)
- seed (12)
- size? (12)
- unpackdw (12)
- unpackqw (12)
- zero? (12)
検索結果
先頭5件
-
LUSolve
. # lusolve(a , b , ps , zero = 0 . 0) -> [BigDecimal] (37.0) -
LU 分解を用いて、連立1次方程式 Ax = b の解 x を求めて返します。
...ます。
@param a 行列を BigDecimal の配列で指定します。
各要素を Row-major order で並べて 1 次元の配列にし、
LUSolve.#ludecomp で変換したものを指定します。
@param b ベクトルを BigDecimal の配列で指定します。
@param ps L......USolve.#ludecomp の返り値を指定します。
@param zero 0.0 を表す値を指定します。
//emlist[][ruby]{
require 'bigdecimal'
require 'bigdecimal/util'
require 'bigdecimal/ludcmp'
include LUSolve
a = [['1.0', '2.0'], ['3.0', '1.0']].flatten.map(&:to_d)
# x = ['1.0', -1.0']
b = ['-1......'2.0'].map(&:to_d)
zero = '0.0'.to_d
one = '1.0'.to_d
# 以下の 2 行は
ps = ludecomp(a, b.size, zero, one) # a が破壊的に変更される
x = lusolve(a, b, ps, zero)
# こう書いてもよい
# x = lusolve(a, b, ludecomp(a, b.size, zero, one), zero)
p x.map(&:to_f) #=> [1.0, -1.0]
//}... -
FileTest
. # empty?(file) -> bool (31.0) -
ファイルが存在して、そのサイズが 0 である時に真を返します。 そうでない場合、あるいはシステムコールに失敗した場合には false を返します。
...ない場合、あるいはシステムコールに失敗した場合には false を返します。
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生......します。
//emlist[例:][ruby]{
IO.write("zero.txt", "")
FileTest.zero?("zero.txt") # => true
IO.write("nonzero.txt", "1")
FileTest.zero?("nonzero.txt") # => false
//}
@see FileTest.#size, FileTest.#size?... -
FileTest
. # zero?(file) -> bool (31.0) -
ファイルが存在して、そのサイズが 0 である時に真を返します。 そうでない場合、あるいはシステムコールに失敗した場合には false を返します。
...ない場合、あるいはシステムコールに失敗した場合には false を返します。
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生......します。
//emlist[例:][ruby]{
IO.write("zero.txt", "")
FileTest.zero?("zero.txt") # => true
IO.write("nonzero.txt", "1")
FileTest.zero?("nonzero.txt") # => false
//}
@see FileTest.#size, FileTest.#size?... -
Kernel
. # require(feature) -> bool (31.0) -
Ruby ライブラリ feature をロードします。拡張子補完を行い、 同じファイルの複数回ロードはしません。
...alse を返します。
@param feature ファイル名の文字列です。
@raise LoadError ロードに失敗した場合に発生します。
//emlist[例][ruby]{
$LOADED_FEATURES.grep(/prime/).size # => 0
require "prime" # => true
$LOADED_FEATURES.grep(/prime/).size # => 1
require "prime......" # => false
begin
require "invalid"
rescue LoadError => e
e.message # => "cannot load such file -- invalid"
end
//}
@see Kernel.#load,Kernel.#autoload,Kernel.#require_relative... -
OpenSSL
:: Random . # seed(str) -> str (19.0) -
乱数生成器にエントロピーを 「エントロピー予測値 = str のバイト数」として 追加します。
...乱数生成器にエントロピーを
「エントロピー予測値 = str のバイト数」として
追加します。
OpenSSL::Random.random_add(str, str.size) と同じです。
@param str 予測不可能な内容の文字列
@see OpenSSL::Random.#random_add... -
Win32
:: Registry :: API . # CloseKey(hkey) (18.0) -
@todo
...@todo... -
Win32
:: Registry :: API . # CreateKey(hkey , name , opt , desired) (18.0) -
@todo
...@todo... -
Win32
:: Registry :: API . # DeleteKey(hkey , name) (18.0) -
@todo
...@todo... -
Win32
:: Registry :: API . # DeleteValue(hkey , name) (18.0) -
@todo
...@todo...