2933件ヒット
[1-100件を表示]
(0.049秒)
別のキーワード
種類
ライブラリ
- ビルトイン (1262)
- benchmark (22)
- bigdecimal (55)
- continuation (22)
- csv (44)
- date (22)
- getoptlong (11)
- ipaddr (11)
-
irb
/ cmd / chws (22) -
irb
/ cmd / subirb (33) -
irb
/ output-method (44) - mathn (4)
- matrix (231)
- open-uri (22)
- openssl (44)
- optparse (176)
- pathname (154)
- rake (33)
- readline (11)
-
rexml
/ document (33) -
rubygems
/ source _ index (11) - shell (6)
-
shell
/ command-processor (12) - syslog (99)
-
webrick
/ httpservlet / prochandler (11) - zlib (66)
クラス
-
ARGF
. class (11) - Array (188)
- BasicObject (22)
-
Benchmark
:: Tms (22) - BigDecimal (55)
-
CSV
:: Row (11) -
CSV
:: Table (11) - Continuation (22)
- Data (6)
- Date (22)
- Enumerator (44)
-
Enumerator
:: Lazy (11) - Fiber (11)
- Float (11)
-
Gem
:: SourceIndex (11) - GetoptLong (11)
- Hash (52)
- IO (44)
- IPAddr (11)
-
IRB
:: ExtendCommand :: ChangeWorkspace (11) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (11) -
IRB
:: ExtendCommand :: Foreground (11) -
IRB
:: ExtendCommand :: IrbCommand (11) -
IRB
:: ExtendCommand :: Kill (11) -
IRB
:: OutputMethod (44) - Integer (55)
- Matrix (152)
- Method (52)
- Module (170)
- Numeric (55)
- Object (66)
-
OpenSSL
:: BN (22) -
OpenSSL
:: OCSP :: BasicResponse (11) - OptionParser (176)
- Pathname (154)
- Proc (23)
-
REXML
:: Element (22) -
REXML
:: Text (11) -
Rake
:: FileList (33) - Rational (4)
- Refinement (3)
- Shell (6)
-
Shell
:: CommandProcessor (12) - String (183)
- Struct (12)
- Symbol (42)
-
Thread
:: Queue (9) - Time (11)
- UnboundMethod (10)
- Vector (79)
-
WEBrick
:: HTTPServlet :: ProcHandler (11) -
Zlib
:: Deflate (11) -
Zlib
:: GzipReader (44) -
Zlib
:: GzipWriter (11)
モジュール
- Enumerable (127)
-
OpenURI
:: OpenRead (22) - Syslog (99)
オブジェクト
- ENV (8)
-
Readline
:: HISTORY (11) - main (36)
キーワード
- ! (11)
- % (22)
- ** (37)
- + (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (23)
- === (7)
- >> (12)
- Comparable (11)
-
Data
_ Get _ Struct (11) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (3) - Numeric (11)
- Ruby プログラムの実行 (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Ruby用語集 (11)
- X509 (11)
- [] (22)
- alert (11)
-
alias
_ command (18) -
alias
_ method (8) - append (7)
-
arg
_ defined (11) - assign (11)
-
bind
_ call (10) - binmode (11)
- binread (11)
- binwrite (11)
-
block
_ pass (11) - bsearch (22)
- call (33)
-
call
_ trace _ func (11) - capitalize (8)
- capitalize! (8)
-
class
_ exec (11) - close (9)
- collect! (46)
- combine (7)
- concat (16)
- count (11)
- crit (11)
- cross (11)
-
cross
_ product (11) - crypt (11)
- debug (11)
- delete (11)
- delete! (11)
-
deprecate
_ constant (9) - difference (6)
- div (11)
- divmod (22)
- downcase (8)
- downcase! (8)
-
drb
/ gw (11) - each (88)
-
each
_ line (44) -
each
_ with _ index (22) - eigen (11)
- eigensystem (11)
- emerg (11)
- encode (33)
-
end
_ with? (16) -
enum
_ for (22) - err (11)
-
ev
_ const _ defined (11) -
ev
_ const _ get (11) - eval (11)
-
eval
_ node (11) -
eval
_ under (11) - exclude (11)
- execute (55)
- extend (11)
- flush (11)
- fnmatch (11)
- fnmatch? (11)
- format (11)
-
get
_ instance (11) - getopts (22)
-
handle
_ rescue (11) - hash (11)
- hstack (11)
-
import
_ methods (3) - include (33)
- independent? (11)
- info (11)
- insert (11)
-
instance
_ exec (11) - irb (11)
-
is
_ defined (11) -
load
_ gems _ in (11) - log (11)
- lup (11)
-
lup
_ decomposition (11) - map! (46)
- massign (11)
-
max
_ by (44) - merge (12)
- merge! (16)
- mkdir (11)
-
mod
_ inverse (11) -
mod
_ mul (11) -
module
_ exec (11) -
module
_ function (7) - modulo (11)
- mult (11)
- new (33)
-
next
_ year (11) - notice (11)
- on (132)
-
on
_ head (11) -
on
_ tail (11) - open (44)
-
parse
_ csv (11) - pow (22)
- power (22)
- pp (22)
- ppx (11)
- prepend (18)
-
prev
_ year (11) - printf (11)
- printn (11)
- private (14)
-
private
_ class _ method (11) -
private
_ constant (11) - product (22)
- protected (7)
- public (18)
-
public
_ class _ method (11) -
public
_ constant (11) - push (44)
- puts (22)
- raw (11)
-
rb
_ define _ method (11) -
rb
_ eval (11) -
rb
_ f _ eval (11) -
rb
_ iterate (11) -
rb
_ obj _ instance _ eval (11) - read (11)
- readlines (11)
- remainder (11)
-
remove
_ method (11) - resume (11)
- round (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) - set (11)
-
set
_ encoding (22) -
set
_ method _ visibility (11) - sign (11)
-
specific
_ eval (11) - squeeze! (11)
-
start
_ with? (16) - sum (22)
- superclass (11)
- swapcase (8)
- swapcase! (8)
- sysopen (11)
- tap (11)
-
to
_ csv (11) -
to
_ enum (22) -
to
_ f (11) -
to
_ h (33) -
transform
_ values! (16) -
undef
_ method (11) - union (6)
- unshift (11)
- upcase (8)
- upcase! (8)
- update (16)
- using (22)
- vstack (11)
- warning (11)
- whitespace (11)
- with (2)
- write (11)
- zip (44)
- クラス/メソッドの定義 (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- 制御構造 (11)
- 変数と定数 (11)
- 字句構造 (11)
検索結果
先頭5件
-
String
# *(times) -> String (18124.0) -
文字列の内容を times 回だけ繰り返した新しい文字列を作成して返します。
...ram times 整数
@return self を times 回繰り返した新しい文字列
@raise ArgumentError 引数に負数を指定したときに発生します。
//emlist[例][ruby]{
p "str" * 3 # => "strstrstr"
str = "abc"
p str * 4 # => "abcabcabcabc"
p str * 0 # => ""
p str #... -
Vector
# *(m) -> Matrix (18124.0) -
自分自身を列ベクトル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。
...自分自身を列ベクトル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。
@param m 右から乗算を行う行列
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わな......に発生します
=== 注意
引数の行列 m は自分自身を列ベクトルとした場合に乗算が定義できる行列である必要があります。
//emlist[例][ruby]{
require 'matrix'
v = Vector[1, 2]
a = [4, 5, 6]
m = Matrix[a]
p v * m # => Matrix[[4, 5, 6], [8, 10, 12]]
//}... -
Vector
# *(other) -> Vector (18124.0) -
self の各要素に数 other を乗じたベクトルを返します。
...
self の各要素に数 other を乗じたベクトルを返します。
@param other self の各要素に掛ける Numeric オブジェクトを指定します。
//emlist[例][ruby]{
require 'matrix'
a = [1, 2, 3.5, 100]
v1 = Vector.elements(a)
p v1.*(2) # => Vector[2, 4, 7.0, 200]
p v1.*(-... -
Matrix
# *(other) -> Matrix (18123.0) -
self の各成分に数 other を掛けた行列を返します。
...
self の各成分に数 other を掛けた行列を返します。
@param other self の各成分に掛ける Numeric オブジェクトを指定します。... -
Matrix
# *(m) -> Matrix | Vector (18118.0) -
self に行列またはベクトル m を右から乗じた行列を返します。
...
self に行列またはベクトル m を右から乗じた行列を返します。
m が Vector オブジェクトなら返り値も Vector オブジェクトになります。
@param m 右からの乗算が定義可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::Err... -
Benchmark
:: Tms # *(x) -> Benchmark :: Tms (18116.0) -
self と x の乗算を計算します。
...
self と x の乗算を計算します。
@param x Benchmark::Tms のオブジェクトか Float に暗黙の変換ができるオブジェクトです。
@return 計算結果は新しい Benchmark::Tms オブジェクトです。
@see Benchmark::Tms#memberwise... -
BigDecimal
# *(other) -> BigDecimal (18106.0) -
積を計算します。
...積を計算します。
@param other self に掛ける数を指定します。
計算結果の精度についてはlib:bigdecimal#precisionを参照してください。... -
BigDecimal
# **(n) -> BigDecimal (6128.0) -
self の n 乗を計算します。
...
self の n 乗を計算します。
戻り値の有効桁数は self の有効桁数の n 倍以上になります。
@param n selfを other 乗する数を指定します。
@param prec 有効桁数を整数で指定します。......
self の n 乗を計算します。
戻り値の有効桁数は self の有効桁数の n 倍以上になります。
@param n selfを other 乗する数を指定します。
@param prec 有効桁数を整数で指定します。
@see Integer#pow... -
Matrix
# **(n) -> Matrix (6116.0) -
self の n 乗を返します。
...
self の n 乗を返します。
@param n べき数の指定
@raise ExceptionForMatrix::ErrNotRegular n が 0 以下で、行列が正則でない場合に発生します... -
Integer
# **(other) -> Numeric (6106.0) -
算術演算子。冪(べき乗)を計算します。
...(self**other) % modulo と同じ結果を返します。
@return 計算結果
@raise TypeError 2引数 pow で Integer 以外を指定した場合に発生します。
@raise RangeError 2引数 pow で other に負の数を指定した場合に発生します。
//emlist[][ruby]{
2 ** 3 # => 8
2 **......0 # => 1
0 ** 0 # => 1
3.pow(3, 8) # => 3
3.pow(3, -8) # => -5
3.pow(2, -2) # => -1
-3.pow(3, 8) # => 5
-3.pow(3, -8) # => -3
5.pow(2, -8) # => -7
//}
結果が巨大すぎる整数になりそうなとき、警告を出したうえで Float::INFINITY を返します。
//emlist[計算を......放棄して Float::INFINITY を返す例][ruby]{
p 100**9999999
# => warning: in a**b, b may be too big
# Infinity
//}
判定の閾値は変わりえます。
@see BigDecimal#power...