Project

General

Profile

Feature #12032 ยป 0001-adding-documentation-for-matrix.rb.patch

Oneill38 (Megan O'Neill), 01/29/2016 03:51 AM

View differences:

lib/matrix.rb
2120 2120
    @elements.dup
2121 2121
  end
2122 2122

  
2123
  # Deprecated
2124
  # 
2125
  # Returns each element of the vector as a float.
2123 2126
  def elements_to_f
2124 2127
    warn "#{caller(1)[0]}: warning: Vector#elements_to_f is deprecated"
2125 2128
    map(&:to_f)
2126 2129
  end
2127 2130

  
2131
  # Deprecated
2132
  # 
2133
  # Returns each element of the vector as an integer.
2128 2134
  def elements_to_i
2129 2135
    warn "#{caller(1)[0]}: warning: Vector#elements_to_i is deprecated"
2130 2136
    map(&:to_i)
2131 2137
  end
2132 2138

  
2139
  # Deprecated
2140
  # 
2141
  # Returns each element of the vector as a rational.
2133 2142
  def elements_to_r
2134 2143
    warn "#{caller(1)[0]}: warning: Vector#elements_to_r is deprecated"
2135 2144
    map(&:to_r)
2136
-