File: //usr/share/ri/3.0.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"1Matrix[ [1,2], [3,4] ].collect { |e| e**2 } ;TI"# => 1 4 ;TI"# 9 16;T:
@fileI"lib/matrix.rb;T:0@omit_headings_from_table_of_contents_below00I"e;T[[I"map;To;; [ ;@8;0I"(which = :all);T@8FI"Matrix;TcRDoc::NormalClass00