File: C:/Ruby27-x64/share/ri/2.7.0/system/Matrix/collect-i.ri
U:RDoc::AnyMethod[iI"collect:ETI"Matrix#collect;TF:publico: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