るりまサーチ

最速Rubyリファレンスマニュアル検索!
10988件ヒット [1-100件を表示] (0.185秒)
トップページ > クエリ:-[x] > クエリ:E[x] > クエリ:*[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

クラス

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

Integer#*(other) -> Numeric (21406.0)

算術演算子。積を計算します。

...算術演算子。積を計算します。

@param other 二項演算の右側の引数(対象)
@return 計算結果

//emlist[][ruby]{
2 * 3 # => 6
//}...

Vector#*(other) -> Vector (21319.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.*(-1...
....5) # => Vector[-1.5, -3.0, -5.25, -150.0]
//}...

Complex#*(other) -> Complex (21318.0)

積を計算します。

...積を計算します。

@param other 自身に掛ける数

//emlist[例][ruby]{
Complex(1, 2) * 2 # => (2+4i)
Complex(1, 2) * Complex(2, 3) # => (-4+7i)
Complex(1, 2) * Rational(1, 2) # => ((1/2)+(1/1)*i)
//}...

Benchmark::Tms#*(x) -> Benchmark::Tms (21300.0)

self と x の乗算を計算します。

...self と x の乗算を計算します。

@param x Benchmark::Tms のオブジェクトか Float に暗黙の変換ができるオブジェクトです。

@return 計算結果は新しい Benchmark::Tms オブジェクトです。

@see Benchmark::Tms#memberwise...

BigDecimal#*(other) -> BigDecimal (21300.0)

積を計算します。

...積を計算します。

@param other self に掛ける数を指定します。

計算結果の精度についてはlib:bigdecimal#precisionを参照してください。...

絞り込み条件を変える

OpenSSL::BN#*(other) -> OpenSSL::BN (21300.0)

自身と other の積を返します。

...自身と other の積を返します。

@param other かける数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_mul...

Rake::FileList#*(other) -> Array | String (21300.0)

Array#* と動作を合わせるために再定義しています。

...Array#* と動作を合わせるために再定義しています。


@see Array#*...

Vector#*(m) -> Matrix (21209.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]]
//}...

Rational#*(other) -> Rational | Float (18324.0)

積を計算します。

...します。

@param other 自身に掛ける数

other に Float を指定した場合は、計算結果を Float で返しま
す。

//emlist[例][ruby]{
r = Rational(3, 4)
r * 2 # => (3/2)
r * 4 # => (3/1)
r * 0.5 # => 0.375
r * Rational(1, 2) # => (3...

String#*(times) -> String (18318.0)

文字列の内容を times 回だけ繰り返した新しい文字列を作成して返します。

...容を times 回だけ繰り返した新しい文字列を作成して返します。

@param times 整数
@return self を times 回繰り返した新しい文字列

@raise ArgumentError 引数に負数を指定したときに発生します。

//emlist[例][ruby]{
p "str" * 3 # => "...
...strstrstr"

str = "abc"
p str * 4 # => "abcabcabcabc"
p str * 0 # => ""
p str # => "abc" (変化なし)
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>