Vector

Vector

ri

 ---------------------------------------------------------- Class: Vector
      The  Vector  class represents a mathematical vector, which is
      useful in its own right, and also constitutes a row or column of a
      Matrix.
 
 
 Method Catalogue
 ----------------
      To create a Vector:
 
      *     Vector.[](*array)  
 
      *     Vector.elements(array, copy = true)  
 
      To access elements:
 
      *     [](i)  
 
      To enumerate the elements:
 
      *     #each2(v)  
 
      *     #collect2(v)  
 
      Vector arithmetic:
 
      *     *(x) "is matrix or number"  
 
      *      (v)  
 
      *     -(v)  
 
      Vector functions:
 
      *     #inner_product(v)  
 
      *     #collect  
 
      *     #map  
 
      *     #map2(v)  
 
      *     #r  
 
      *     #size  
 
      Conversion to other data types:
 
      *     #covector  
 
      *     #to_a  
 
      *     #coerce(other)  
 
      String representations:
 
      *     #to_s  
 
      *     #inspect  
 
 ------------------------------------------------------------------------
 
 
 Includes:
 ---------
      ExceptionForMatrix()
 
 
 Class methods:
 --------------
      [], elements, new
 
 
 Instance methods:
 -----------------
      *,  , -, ==, [], clone, coerce, collect, collect2, compare_by,
      covector, each2, eqn?, hash, init_elements, inner_product, inspect,
      map, map2, r, size, to_a, to_s

refe

 ==== Vector ====
 [2002-04-03]  by すす [URL:sugawah@attglobal.net
 
 (数Numericを要素とする)ベクトルを扱うクラス
 ---- Singleton methods ----
 [] elements
 ---- Instance methods ----
 *   -  = collect collect2 covector each2 inner_product
 map map2 r size to_a to_f to_i to_r
 ---- Singleton methods (inherited) ----
 ---- Instance methods (inherited) ----
 == === =~ __id__ __send__ _dump _load class clone display
 dup eql? equal? extend freeze frozen? hash id initialize
 initialize_copy inspect instance_eval instance_of?
 instance_variable_get instance_variable_set
 instance_variables is_a? kind_of? marshal_dump marshal_load
 method method_missing methods nil? object_id pretty_print
 pretty_print_cycle pretty_print_instance_variables
 private_methods protected_methods public_methods
 remove_instance_variable respond_to? send
 singleton_method_added singleton_method_removed
 singleton_method_undefined singleton_methods taint tainted?
 to_ary to_hash to_int to_s to_str type untaint

* はてなダイアリーキーワード:Vector

  • 2006/05/12 19:52:25 *
  • 2006/05/12 19:52:41 -
  • 2006/05/12 19:53:19 ==
  • 2006/05/15 12:08:43 clone
  • 2006/05/15 12:09:33 collect
  • 2006/05/15 12:15:30 each
  • 2006/05/15 12:32:31 inspect
  • 2006/05/15 12:39:51 map
  • 2006/05/12 20:07:44 Matrix
  • 2006/05/15 12:42:14 new
  • 2006/05/15 12:56:40 size
  • 2006/05/15 13:04:47 to_a
  • 2006/05/15 13:05:00 to_f
  • 2006/05/15 13:05:16 to_i
  • 2006/05/15 13:05:31 to_s
  • 2006/05/15 11:58:20 Vector
  • 2006/05/15 11:59:35 []
  • 2006/05/15 11:59:42 []=
  • 2006/05/15 11:59:52 ^