Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Matrix
/
//opt/alt/ruby27/share/ri/system/Matrix/collect-i.ri
U:RDoc::AnyMethod[iI"collect:ETI"Matrix#collect;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"RReturns a matrix that is the result of iteration of the given block over all ;TI"elements of the matrix. ;TI"7Elements can be restricted by passing an argument:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"(:all (default): yields all elements;To;;0; [o; ; [I"4:diagonal: yields only elements on the diagonal;To;;0; [o; ; [I">:off_diagonal: yields all elements except on the diagonal;To;;0; [o; ; [I"::lower: yields only elements on or below the diagonal;To;;0; [o; ; [I";:strict_lower: yields only elements below the diagonal;To;;0; [o; ; [I";:strict_upper: yields only elements above the diagonal;To;;0; [o; ; [I";:upper: yields only elements on or above the diagonal ;TI"0Matrix[ [1,2], [3,4] ].collect { |e| e**2 };To:RDoc::Markup::Verbatim; [I" => 1 4 ;TI" 9 16;T:@format0: @fileI"lib/matrix.rb;T:0@omit_headings_from_table_of_contents_below00I"e;T[[I"map;To;; [ ;@:;0I"(which = :all);T@:FI"Matrix;TcRDoc::NormalClass00