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
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Vector
/
//opt/alt/ruby21/share/ri/2.1.0/system/Vector/cdesc-Vector.ri
U:RDoc::NormalClass[iI"Vector:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"`The +Vector+ class represents a mathematical vector, which is useful in its own right, and ;TI"2also constitutes a row or column of a Matrix.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Method Catalogue;T@o; ;[I"To create a Vector:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o; ;[I"Vector.[](*array);To;;0;[o; ;[I"(Vector.elements(array, copy = true);T@o; ;[I"To access elements:;To;;;;[o;;0;[o; ;[I"#[](i);T@o; ;[I"To enumerate the elements:;To;;;;[o;;0;[o; ;[I"#each2(v);To;;0;[o; ;[I"#collect2(v);T@o; ;[I"Vector arithmetic:;To;;;;[o;;0;[o; ;[I" #*(x) "is matrix or number";To;;0;[o; ;[I" #+(v);To;;0;[o; ;[I" #-(v);T@o; ;[I"Vector functions:;To;;;;[o;;0;[o; ;[I"#inner_product(v);To;;0;[o; ;[I"#cross_product(v);To;;0;[o; ;[I" #collect;To;;0;[o; ;[I"#magnitude;To;;0;[o; ;[I" #map;To;;0;[o; ;[I" #map2(v);To;;0;[o; ;[I" #norm;To;;0;[o; ;[I"#normalize;To;;0;[o; ;[I"#r;To;;0;[o; ;[I" #size;T@o; ;[I"$Conversion to other data types:;To;;;;[o;;0;[o; ;[I"#covector;To;;0;[o; ;[I" #to_a;To;;0;[o; ;[I"#coerce(other);T@o; ;[I"String representations:;To;;;;[o;;0;[o; ;[I" #to_s;To;;0;[o; ;[I" #inspect;T: @fileI"lib/matrix.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[ I" elements;TI"R;T:protectedFI"lib/matrix.rb;T[ [[I"Enumerable;To;;[ ;@�;0@�[[I" class;T[[:public[[I"[];F@�[I" elements;F@�[I"new;T@�[;[ [:private[ [I" instance;T[[;[%[I"*;T@�[I"+;T@�[I"-;T@�[I"/;F@�[I"==;T@�[I"[];F@�[I" clone;F@�[I"coerce;F@�[I"collect;F@�[I" collect2;F@�[I"component;F@�[I" covector;F@�[I"cross_product;F@�[I" each;F@�[I" each2;F@�[I"element;F@�[I"elements_to_f;F@�[I"elements_to_i;F@�[I"elements_to_r;F@�[I" eql?;F@�[I" hash;F@�[I"inner_product;F@�[I"inspect;F@�[I"magnitude;F@�[I"map;F@�[I" map2;F@�[I" norm;F@�[I"normalize;F@�[I"r;F@�[I" size;F@�[I" to_a;F@�[I" to_s;F@�[;[ [;[[I"[]=;F@�[I"set_component;F@�[I"set_element;F@�[[I"Matrix::ConversionHelper;To;;[ ;@�;0@�[U:RDoc::Context::Section[i 0o;;[ ;0;0[@�@�cRDoc::TopLevel