Project

General

Profile

Actions

Feature #2266

closed

Matrix and Complex [patch]

Added by marcandre (Marc-Andre Lafortune) about 15 years ago. Updated over 13 years ago.

Status:
Closed
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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0