y_support 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/y_support/abstract_algebra.rb +6 -0
- data/lib/y_support/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 629249c866bf65956eb005fe95e52760b1a90ca7
|
|
4
|
+
data.tar.gz: d1fbe32ecfe7ae9c20d406370aa75a4f84b187c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47fcc146fb66370b5cfec8e20b7dd14c18641b5b62d35215a5a371258b65d517953db5338b75743d5d15cfcff821e6b51c747c72c250ef61b850882138e4b897
|
|
7
|
+
data.tar.gz: 2467010f8dd198422bef47f38de23403d3446327c633fad3e7cbae55acd3576a57babd68b12b95e447b7d1fb4b233bee0623b9f4216c93ef1681c297d0c14839
|
|
@@ -174,6 +174,12 @@ end
|
|
|
174
174
|
# on the operation one wants to do with such matrices.
|
|
175
175
|
#
|
|
176
176
|
class Matrix
|
|
177
|
+
attr_writer :zero
|
|
178
|
+
|
|
179
|
+
def zero
|
|
180
|
+
if empty? then @zero else self[0, 0] * 0 end
|
|
181
|
+
end
|
|
182
|
+
|
|
177
183
|
# Matrix multiplication.
|
|
178
184
|
#
|
|
179
185
|
def * arg # arg is matrix or vector or number
|
data/lib/y_support/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: y_support
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- boris
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-05-
|
|
11
|
+
date: 2013-05-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
124
124
|
version: '0'
|
|
125
125
|
requirements: []
|
|
126
126
|
rubyforge_project:
|
|
127
|
-
rubygems_version: 2.0.
|
|
127
|
+
rubygems_version: 2.0.3
|
|
128
128
|
signing_key:
|
|
129
129
|
specification_version: 4
|
|
130
130
|
summary: LocalObject, RespondTo, InertRecorder, NullObject, NameMagic, core extensions,
|