386件ヒット
[201-300件を表示]
(0.044秒)
別のキーワード
ライブラリ
- ビルトイン (80)
- matrix (78)
-
rexml
/ document (228)
クラス
- Array (24)
- Matrix (64)
- Module (12)
- Proc (6)
-
REXML
:: Attribute (36) -
REXML
:: Attributes (12) -
REXML
:: DocType (24) -
REXML
:: Element (120) -
REXML
:: Elements (36) - Range (2)
- Vector (14)
モジュール
- Enumerable (36)
キーワード
- [] (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) - attribute (12)
-
attribute
_ of (12) -
attributes
_ of (12) - collect! (21)
- component (12)
- delete (12)
-
delete
_ all (12) -
delete
_ attribute (12) -
drop
_ while (24) - each (12)
-
each
_ element _ with _ attribute (12) -
get
_ text (12) - map! (21)
- namespace (12)
- prefix (12)
-
reverse
_ each (14) -
ruby2
_ keywords (18) -
take
_ while (24) - text (12)
-
to
_ a (12) -
to
_ string (12) - xpath (12)
検索結果
先頭5件
-
Matrix
# collect!(which = :all) -> Enumerator (3121.0) -
行列の各要素に対してブロックの適用を繰り返した結果で要素を置き換えます。
...ックの適用を繰り返した結果で要素を置き換えます。
ブロックのない場合は、自身と map! から生成した Enumerator オブジェクトを返します。
@param which which に以下の Symbol を指定することで、
引数として使われる......詳細は、 Matrix#each の項目を参照して下さい。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map! { |element| element * 10 } #=> Matrix[[10, 20], [30, 40]]
p m #=> Matrix[[10, 20], [30, 40]]
//}
@see Matrix#each, Matrix#map... -
Matrix
# collect!(which = :all) {|element| . . . } -> self (3121.0) -
行列の各要素に対してブロックの適用を繰り返した結果で要素を置き換えます。
...ックの適用を繰り返した結果で要素を置き換えます。
ブロックのない場合は、自身と map! から生成した Enumerator オブジェクトを返します。
@param which which に以下の Symbol を指定することで、
引数として使われる......詳細は、 Matrix#each の項目を参照して下さい。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map! { |element| element * 10 } #=> Matrix[[10, 20], [30, 40]]
p m #=> Matrix[[10, 20], [30, 40]]
//}
@see Matrix#each, Matrix#map... -
Matrix
# map!(which = :all) -> Enumerator (3121.0) -
行列の各要素に対してブロックの適用を繰り返した結果で要素を置き換えます。
...ックの適用を繰り返した結果で要素を置き換えます。
ブロックのない場合は、自身と map! から生成した Enumerator オブジェクトを返します。
@param which which に以下の Symbol を指定することで、
引数として使われる......詳細は、 Matrix#each の項目を参照して下さい。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map! { |element| element * 10 } #=> Matrix[[10, 20], [30, 40]]
p m #=> Matrix[[10, 20], [30, 40]]
//}
@see Matrix#each, Matrix#map... -
Matrix
# map!(which = :all) {|element| . . . } -> self (3121.0) -
行列の各要素に対してブロックの適用を繰り返した結果で要素を置き換えます。
...ックの適用を繰り返した結果で要素を置き換えます。
ブロックのない場合は、自身と map! から生成した Enumerator オブジェクトを返します。
@param which which に以下の Symbol を指定することで、
引数として使われる......詳細は、 Matrix#each の項目を参照して下さい。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map! { |element| element * 10 } #=> Matrix[[10, 20], [30, 40]]
p m #=> Matrix[[10, 20], [30, 40]]
//}
@see Matrix#each, Matrix#map... -
REXML
:: Element # get _ text(path = nil) -> REXML :: Text | nil (3113.0) -
先頭のテキスト子ノードを返します。
...てください。
path を渡した場合は、その XPath 文字列で指定される
テキストノードの文字列を返します。
テキストノードがない場合には nil を返します。
@param path XPath文字列
@see REXML::Element#text
//emlist[][ruby]{
require 'rexml/docu... -
REXML
:: Element # text(path = nil) -> String | nil (3113.0) -
先頭のテキスト子ノードの文字列を返します。
...ください。
path を渡した場合は、その XPath 文字列で指定される
テキストノードの文字列を返します。
テキストノードがない場合には nil を返します。
@param path XPath文字列
@see REXML::Element#get_text
//emlist[][ruby]{
require 'rexml/doc... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (3013.0) -
属性の名前空間の URI を返します。
...常は省略します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("xmlns:ns", "http://www.example.com/ns")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").prefix # => "ns"
p e.attributes.get_attribute("r").namespace # => "http://www.... -
REXML
:: Attribute # prefix -> String (3013.0) -
属性の名前空間を返します。
...。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new( "elns:myelement" )
e.add_attribute( "nsa:a", "aval" )
e.add_attribute( "b", "bval" )
p e.attributes.get_attribute( "a" ).prefix # -> "nsa"
p e.attributes.get_attribute( "b" ).prefix # -> "elns"
a = REXML::Attribute.new( "x",... -
REXML
:: Attribute # to _ string -> String (3013.0) -
"name='value'" という形式の文字列を返します。
..."name='value'" という形式の文字列を返します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").to_string # => "ns:r='rval'"
//}... -
Matrix
# [](i , j) -> () (3008.0) -
(i,j)要素を返します。 行列の範囲外の値を指定した場合には nil を返します。
...分を0オリジンで指定します。
@param j 要素の列成分を0オリジンで指定します。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, 2, 1.5]
m = Matrix[a1, a2, a3]
p m[0, 0] # => 1
p m[1, 1] # => 15
p m[1, 2] # => 20
p m[1, 3] # => nil
//}... -
Matrix
# component(i , j) -> () (3008.0) -
(i,j)要素を返します。 行列の範囲外の値を指定した場合には nil を返します。
...分を0オリジンで指定します。
@param j 要素の列成分を0オリジンで指定します。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, 2, 1.5]
m = Matrix[a1, a2, a3]
p m[0, 0] # => 1
p m[1, 1] # => 15
p m[1, 2] # => 20
p m[1, 3] # => nil
//}...