Project

General

Profile

Feature #2266

Matrix and Complex [patch]

Added by marcandre (Marc-Andre Lafortune) almost 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:26285]

Description

=begin
Now that Ruby 1.9 has Complex as a builtin type, it would be interesting if Matrix provided the following instance methods:
#conj, alias conjugate
#imag, alias imaginary
#real,
#real?,
#rect, alias rectangular

Corresponding patch attached.

This patch could also be part of mathn in the ruby 1.8 branch.
=end


Files

matrix_complex.diff (3.29 KB) matrix_complex.diff marcandre (Marc-Andre Lafortune), 10/25/2009 07:36 AM

History

#1

Updated by marcandre (Marc-Andre Lafortune) almost 10 years ago

  • Subject changed from Matrix and Complex to Matrix and Complex [patch]

=begin

=end

#2

Updated by marcandre (Marc-Andre Lafortune) over 9 years ago

  • Assignee changed from keiju (Keiju Ishitsuka) to marcandre (Marc-Andre Lafortune)
  • Target version set to 1.9.2

=begin

=end

#3

Updated by marcandre (Marc-Andre Lafortune) over 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r27159.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF