[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65490] [ruby-trunk - Feature #10072] [Closed] [PATCH] Implement Vector.basis

From: ruby-core@...
Date: 2014-10-07 19:59:10 UTC
List: ruby-core #65490
Issue #10072 has been updated by Marc-Andre Lafortune.

Status changed from Assigned to Closed

Martin D端rst wrote:
>  Why not allow both? Ruby is flexible.

Indeed.
In this case though, it would be a bit of an overkill I think.
Let's use named arguments. If `basis` becomes really popular and we want to make a shortcut we still can.


----------------------------------------
Feature #10072: [PATCH] Implement Vector.basis
https://bugs.ruby-lang.org/issues/10072#change-49267

* Author: gogo tanaka
* Status: Closed
* Priority: Normal
* Assignee: Marc-Andre Lafortune
* Category: lib
* Target version: current: 2.2.0
----------------------------------------
Standard basis vectors are really important in linear algebra.

And we usually need this when we use matrix or vector. (base conversion, principal component analysis...

This is why I implemented.

But I recognize Ruby should be not for mathematician but rubyist.

Ruby doesn't need too academic method.

So If you think it is too academic you can ignore my patches.


gogo.

---Files--------------------------------
implement_Vector.basis.patch (1.59 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next