chris_lib 1.1.9 → 1.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 351bd475350c86c89f42a50911ed12805b40dbc259d27144e76ffdd24b64e97c
4
- data.tar.gz: '05915975544fc81f61616f9c736af823c422316b352bc976ac9af570dfa8fc76'
3
+ metadata.gz: 7af77d04c120dacf88cc6d208c51e31c7d8eb35b280cfba48b93f0815329053c
4
+ data.tar.gz: 276f996bd4f5bd2a81b00c6ece959cf4bb26206e70970087022beea1d49eb3a0
5
5
  SHA512:
6
- metadata.gz: 224d872803a9ba27bb2356cb11b3c1434dce8321b1481f334c3570ee9294f45a19863ccc6f7bea37463a641e52afb7ef44113872f15d17a11e9cab7dd0973ff1
7
- data.tar.gz: d6d0692c4d354b9dabed8099db5f3e4f77afa75a02352f7e41dc0aba943a9f9ec986c8bfc0e7ec19f27c05d305ca163e112c0c65151a864f29240a6bd221562b
6
+ metadata.gz: b4ff3203d46941297016836351413c0116e19a288514b32cd2febb4bc1913fe4d679be202da0296cefe6c570ceb77238c932742e002c73cff33e76c1c0111914
7
+ data.tar.gz: 1c046877f6451c2b144f8f2dfded4d148eb2cbc2d00ec2e0b2d9cc73d5d19af52add06b6c8347a82a35f43e977cc041a6752000054ce748dd43e8c1ef0b36e8f
@@ -8,6 +8,15 @@ Integer.class_eval do
8
8
  end
9
9
  end
10
10
  end
11
+
12
+ Matrix.class_eval do
13
+ def pinv
14
+ full_rank = (rank == [row_count, column_count].min)
15
+ raise ExceptionForMatrix::ErrNotRegular unless full_rank
16
+ transpose * (self * transpose).inv
17
+ end
18
+ end
19
+
11
20
  Array.class_eval do
12
21
  # mean of array
13
22
  def mean
@@ -1,3 +1,3 @@
1
1
  module ChrisLib
2
- VERSION = "1.1.9"
2
+ VERSION = "1.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chris_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -50,6 +50,26 @@ dependencies:
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: 5.2.4.3
53
+ - !ruby/object:Gem::Dependency
54
+ name: actionpack
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '5.2'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 5.2.4.6
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '5.2'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 5.2.4.6
53
73
  - !ruby/object:Gem::Dependency
54
74
  name: loofah
55
75
  requirement: !ruby/object:Gem::Requirement
@@ -79,7 +99,7 @@ dependencies:
79
99
  version: '5.1'
80
100
  - - ">="
81
101
  - !ruby/object:Gem::Version
82
- version: 5.1.4.3
102
+ version: 5.1.4.6
83
103
  type: :development
84
104
  prerelease: false
85
105
  version_requirements: !ruby/object:Gem::Requirement
@@ -89,7 +109,7 @@ dependencies:
89
109
  version: '5.1'
90
110
  - - ">="
91
111
  - !ruby/object:Gem::Version
92
- version: 5.1.4.3
112
+ version: 5.1.4.6
93
113
  - !ruby/object:Gem::Dependency
94
114
  name: rspec-rails
95
115
  requirement: !ruby/object:Gem::Requirement
@@ -139,7 +159,7 @@ dependencies:
139
159
  version: '1.10'
140
160
  - - ">="
141
161
  - !ruby/object:Gem::Version
142
- version: 1.10.8
162
+ version: 1.11.4
143
163
  type: :development
144
164
  prerelease: false
145
165
  version_requirements: !ruby/object:Gem::Requirement
@@ -149,7 +169,7 @@ dependencies:
149
169
  version: '1.10'
150
170
  - - ">="
151
171
  - !ruby/object:Gem::Version
152
- version: 1.10.8
172
+ version: 1.11.4
153
173
  - !ruby/object:Gem::Dependency
154
174
  name: rack
155
175
  requirement: !ruby/object:Gem::Requirement
@@ -234,7 +254,7 @@ licenses:
234
254
  metadata:
235
255
  source_code_uri: https://github.com/obromios/chris_lib
236
256
  changelog_uri: https://github.com/obromios/chris_lib/blob/master/CHANGELOG.md
237
- post_install_message:
257
+ post_install_message:
238
258
  rdoc_options: []
239
259
  require_paths:
240
260
  - lib
@@ -250,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
270
  version: '0'
251
271
  requirements: []
252
272
  rubygems_version: 3.1.2
253
- signing_key:
273
+ signing_key:
254
274
  specification_version: 4
255
275
  summary: This an eclectic collection of methods. It include maths, datetime, and rspec
256
276
  access test libraries.