[#69084] [Ruby trunk - Feature #11124] [Open] [PATCH] lib/*: use monotonic clock for timeouts — normalperson@...
Issue #11124 has been reported by Eric Wong.
5 messages
2015/05/06
[#69138] [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module — nobu@...
Issue #11136 has been updated by Nobuyoshi Nakada.
3 messages
2015/05/12
[#69160] [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start — nobu@...
Issue #11146 has been updated by Nobuyoshi Nakada.
4 messages
2015/05/13
[#69175] Re: [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start
— Eric Wong <normalperson@...>
2015/05/13
nobu@ruby-lang.org wrote:
[ruby-core:69315] [Ruby trunk - Feature #10903] [PATCH] Matrix#zip returns a matrix
From:
ruby-core@...
Date:
2015-05-22 09:45:31 UTC
List:
ruby-core #69315
Issue #10903 has been updated by Marc-Andre Lafortune.
Tracker changed from Bug to Feature
Hi, sorry I missed your proposal until now, and thanks for the patch.
Could you explain in what kind of circumstances one would use this? I'm not sure I see what kind of mathematical operation this can correspond to.
----------------------------------------
Feature #10903: [PATCH] Matrix#zip returns a matrix
https://bugs.ruby-lang.org/issues/10903#change-52582
* Author: Lito Nicolai
* Status: Assigned
* Priority: Normal
* Assignee: Marc-Andre Lafortune
----------------------------------------
Currently:
> x = Matrix.I 2
> x.zip x
=> [[1, 1], [0, 0], [0, 0], [1, 1]] # It's an array!
With the patch:
> x.zip x
=> Matrix[[1, 1], [0, 0], [0, 0], [1, 1]]
And also:
> x.zip x, x # and so on
=> Matrix[[1, 1, 1], [0, 0, 0], [0, 0, 0], [1, 1, 1]]
---Files--------------------------------
matrix_zip.patch (1.42 KB)
--
https://bugs.ruby-lang.org/