pnmatrix 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/ext/nmatrix/binary_format.txt +53 -0
  3. data/ext/nmatrix/data/complex.h +388 -0
  4. data/ext/nmatrix/data/data.cpp +274 -0
  5. data/ext/nmatrix/data/data.h +651 -0
  6. data/ext/nmatrix/data/meta.h +64 -0
  7. data/ext/nmatrix/data/ruby_object.h +386 -0
  8. data/ext/nmatrix/extconf.rb +70 -0
  9. data/ext/nmatrix/math/asum.h +99 -0
  10. data/ext/nmatrix/math/cblas_enums.h +36 -0
  11. data/ext/nmatrix/math/cblas_templates_core.h +507 -0
  12. data/ext/nmatrix/math/gemm.h +241 -0
  13. data/ext/nmatrix/math/gemv.h +178 -0
  14. data/ext/nmatrix/math/getrf.h +255 -0
  15. data/ext/nmatrix/math/getrs.h +121 -0
  16. data/ext/nmatrix/math/imax.h +82 -0
  17. data/ext/nmatrix/math/laswp.h +165 -0
  18. data/ext/nmatrix/math/long_dtype.h +62 -0
  19. data/ext/nmatrix/math/magnitude.h +54 -0
  20. data/ext/nmatrix/math/math.h +751 -0
  21. data/ext/nmatrix/math/nrm2.h +165 -0
  22. data/ext/nmatrix/math/rot.h +117 -0
  23. data/ext/nmatrix/math/rotg.h +106 -0
  24. data/ext/nmatrix/math/scal.h +71 -0
  25. data/ext/nmatrix/math/trsm.h +336 -0
  26. data/ext/nmatrix/math/util.h +162 -0
  27. data/ext/nmatrix/math.cpp +1368 -0
  28. data/ext/nmatrix/nm_memory.h +60 -0
  29. data/ext/nmatrix/nmatrix.cpp +285 -0
  30. data/ext/nmatrix/nmatrix.h +476 -0
  31. data/ext/nmatrix/ruby_constants.cpp +151 -0
  32. data/ext/nmatrix/ruby_constants.h +106 -0
  33. data/ext/nmatrix/ruby_nmatrix.c +3130 -0
  34. data/ext/nmatrix/storage/common.cpp +77 -0
  35. data/ext/nmatrix/storage/common.h +183 -0
  36. data/ext/nmatrix/storage/dense/dense.cpp +1096 -0
  37. data/ext/nmatrix/storage/dense/dense.h +129 -0
  38. data/ext/nmatrix/storage/list/list.cpp +1628 -0
  39. data/ext/nmatrix/storage/list/list.h +138 -0
  40. data/ext/nmatrix/storage/storage.cpp +730 -0
  41. data/ext/nmatrix/storage/storage.h +99 -0
  42. data/ext/nmatrix/storage/yale/class.h +1139 -0
  43. data/ext/nmatrix/storage/yale/iterators/base.h +143 -0
  44. data/ext/nmatrix/storage/yale/iterators/iterator.h +131 -0
  45. data/ext/nmatrix/storage/yale/iterators/row.h +450 -0
  46. data/ext/nmatrix/storage/yale/iterators/row_stored.h +140 -0
  47. data/ext/nmatrix/storage/yale/iterators/row_stored_nd.h +169 -0
  48. data/ext/nmatrix/storage/yale/iterators/stored_diagonal.h +124 -0
  49. data/ext/nmatrix/storage/yale/math/transpose.h +110 -0
  50. data/ext/nmatrix/storage/yale/yale.cpp +2074 -0
  51. data/ext/nmatrix/storage/yale/yale.h +203 -0
  52. data/ext/nmatrix/types.h +55 -0
  53. data/ext/nmatrix/util/io.cpp +279 -0
  54. data/ext/nmatrix/util/io.h +115 -0
  55. data/ext/nmatrix/util/sl_list.cpp +627 -0
  56. data/ext/nmatrix/util/sl_list.h +144 -0
  57. data/ext/nmatrix/util/util.h +78 -0
  58. data/lib/nmatrix/blas.rb +378 -0
  59. data/lib/nmatrix/cruby/math.rb +744 -0
  60. data/lib/nmatrix/enumerate.rb +253 -0
  61. data/lib/nmatrix/homogeneous.rb +241 -0
  62. data/lib/nmatrix/io/fortran_format.rb +138 -0
  63. data/lib/nmatrix/io/harwell_boeing.rb +221 -0
  64. data/lib/nmatrix/io/market.rb +263 -0
  65. data/lib/nmatrix/io/point_cloud.rb +189 -0
  66. data/lib/nmatrix/jruby/decomposition.rb +24 -0
  67. data/lib/nmatrix/jruby/enumerable.rb +13 -0
  68. data/lib/nmatrix/jruby/error.rb +4 -0
  69. data/lib/nmatrix/jruby/math.rb +501 -0
  70. data/lib/nmatrix/jruby/nmatrix_java.rb +840 -0
  71. data/lib/nmatrix/jruby/operators.rb +283 -0
  72. data/lib/nmatrix/jruby/slice.rb +264 -0
  73. data/lib/nmatrix/lapack_core.rb +181 -0
  74. data/lib/nmatrix/lapack_plugin.rb +44 -0
  75. data/lib/nmatrix/math.rb +953 -0
  76. data/lib/nmatrix/mkmf.rb +100 -0
  77. data/lib/nmatrix/monkeys.rb +137 -0
  78. data/lib/nmatrix/nmatrix.rb +1172 -0
  79. data/lib/nmatrix/rspec.rb +75 -0
  80. data/lib/nmatrix/shortcuts.rb +1163 -0
  81. data/lib/nmatrix/version.rb +39 -0
  82. data/lib/nmatrix/yale_functions.rb +118 -0
  83. data/lib/nmatrix.rb +28 -0
  84. data/spec/00_nmatrix_spec.rb +892 -0
  85. data/spec/01_enum_spec.rb +196 -0
  86. data/spec/02_slice_spec.rb +407 -0
  87. data/spec/03_nmatrix_monkeys_spec.rb +80 -0
  88. data/spec/2x2_dense_double.mat +0 -0
  89. data/spec/4x4_sparse.mat +0 -0
  90. data/spec/4x5_dense.mat +0 -0
  91. data/spec/blas_spec.rb +215 -0
  92. data/spec/elementwise_spec.rb +311 -0
  93. data/spec/homogeneous_spec.rb +100 -0
  94. data/spec/io/fortran_format_spec.rb +88 -0
  95. data/spec/io/harwell_boeing_spec.rb +98 -0
  96. data/spec/io/test.rua +9 -0
  97. data/spec/io_spec.rb +159 -0
  98. data/spec/lapack_core_spec.rb +482 -0
  99. data/spec/leakcheck.rb +16 -0
  100. data/spec/math_spec.rb +1363 -0
  101. data/spec/nmatrix_yale_resize_test_associations.yaml +2802 -0
  102. data/spec/nmatrix_yale_spec.rb +286 -0
  103. data/spec/rspec_monkeys.rb +56 -0
  104. data/spec/rspec_spec.rb +35 -0
  105. data/spec/shortcuts_spec.rb +474 -0
  106. data/spec/slice_set_spec.rb +162 -0
  107. data/spec/spec_helper.rb +172 -0
  108. data/spec/stat_spec.rb +214 -0
  109. data/spec/test.pcd +20 -0
  110. data/spec/utm5940.mtx +83844 -0
  111. metadata +295 -0
metadata ADDED
@@ -0,0 +1,295 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pnmatrix
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.4
5
+ platform: ruby
6
+ authors:
7
+ - John Woods
8
+ - Chris Wailes
9
+ - Aleksey Timin
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 1980-01-01 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: bundler
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '1.6'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '1.6'
29
+ - !ruby/object:Gem::Dependency
30
+ name: pry
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: '0.10'
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.10'
43
+ - !ruby/object:Gem::Dependency
44
+ name: rake
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '10.3'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '10.3'
57
+ - !ruby/object:Gem::Dependency
58
+ name: rake-compiler
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '0.8'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '0.8'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rdoc
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '4.0'
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 4.0.1
81
+ type: :development
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '4.0'
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 4.0.1
91
+ - !ruby/object:Gem::Dependency
92
+ name: rspec
93
+ requirement: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '2.14'
98
+ type: :development
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '2.14'
105
+ - !ruby/object:Gem::Dependency
106
+ name: rspec-longrun
107
+ requirement: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '1.0'
112
+ type: :development
113
+ prerelease: false
114
+ version_requirements: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '1.0'
119
+ description: NMatrix is a linear algebra library for Ruby, written mostly in C and
120
+ C++.
121
+ email:
122
+ - john.o.woods@gmail.com
123
+ executables: []
124
+ extensions:
125
+ - ext/nmatrix/extconf.rb
126
+ extra_rdoc_files: []
127
+ files:
128
+ - ext/nmatrix/binary_format.txt
129
+ - ext/nmatrix/data/complex.h
130
+ - ext/nmatrix/data/data.cpp
131
+ - ext/nmatrix/data/data.h
132
+ - ext/nmatrix/data/meta.h
133
+ - ext/nmatrix/data/ruby_object.h
134
+ - ext/nmatrix/extconf.rb
135
+ - ext/nmatrix/math.cpp
136
+ - ext/nmatrix/math/asum.h
137
+ - ext/nmatrix/math/cblas_enums.h
138
+ - ext/nmatrix/math/cblas_templates_core.h
139
+ - ext/nmatrix/math/gemm.h
140
+ - ext/nmatrix/math/gemv.h
141
+ - ext/nmatrix/math/getrf.h
142
+ - ext/nmatrix/math/getrs.h
143
+ - ext/nmatrix/math/imax.h
144
+ - ext/nmatrix/math/laswp.h
145
+ - ext/nmatrix/math/long_dtype.h
146
+ - ext/nmatrix/math/magnitude.h
147
+ - ext/nmatrix/math/math.h
148
+ - ext/nmatrix/math/nrm2.h
149
+ - ext/nmatrix/math/rot.h
150
+ - ext/nmatrix/math/rotg.h
151
+ - ext/nmatrix/math/scal.h
152
+ - ext/nmatrix/math/trsm.h
153
+ - ext/nmatrix/math/util.h
154
+ - ext/nmatrix/nm_memory.h
155
+ - ext/nmatrix/nmatrix.cpp
156
+ - ext/nmatrix/nmatrix.h
157
+ - ext/nmatrix/ruby_constants.cpp
158
+ - ext/nmatrix/ruby_constants.h
159
+ - ext/nmatrix/ruby_nmatrix.c
160
+ - ext/nmatrix/storage/common.cpp
161
+ - ext/nmatrix/storage/common.h
162
+ - ext/nmatrix/storage/dense/dense.cpp
163
+ - ext/nmatrix/storage/dense/dense.h
164
+ - ext/nmatrix/storage/list/list.cpp
165
+ - ext/nmatrix/storage/list/list.h
166
+ - ext/nmatrix/storage/storage.cpp
167
+ - ext/nmatrix/storage/storage.h
168
+ - ext/nmatrix/storage/yale/class.h
169
+ - ext/nmatrix/storage/yale/iterators/base.h
170
+ - ext/nmatrix/storage/yale/iterators/iterator.h
171
+ - ext/nmatrix/storage/yale/iterators/row.h
172
+ - ext/nmatrix/storage/yale/iterators/row_stored.h
173
+ - ext/nmatrix/storage/yale/iterators/row_stored_nd.h
174
+ - ext/nmatrix/storage/yale/iterators/stored_diagonal.h
175
+ - ext/nmatrix/storage/yale/math/transpose.h
176
+ - ext/nmatrix/storage/yale/yale.cpp
177
+ - ext/nmatrix/storage/yale/yale.h
178
+ - ext/nmatrix/types.h
179
+ - ext/nmatrix/util/io.cpp
180
+ - ext/nmatrix/util/io.h
181
+ - ext/nmatrix/util/sl_list.cpp
182
+ - ext/nmatrix/util/sl_list.h
183
+ - ext/nmatrix/util/util.h
184
+ - lib/nmatrix.rb
185
+ - lib/nmatrix/blas.rb
186
+ - lib/nmatrix/cruby/math.rb
187
+ - lib/nmatrix/enumerate.rb
188
+ - lib/nmatrix/homogeneous.rb
189
+ - lib/nmatrix/io/fortran_format.rb
190
+ - lib/nmatrix/io/harwell_boeing.rb
191
+ - lib/nmatrix/io/market.rb
192
+ - lib/nmatrix/io/point_cloud.rb
193
+ - lib/nmatrix/jruby/decomposition.rb
194
+ - lib/nmatrix/jruby/enumerable.rb
195
+ - lib/nmatrix/jruby/error.rb
196
+ - lib/nmatrix/jruby/math.rb
197
+ - lib/nmatrix/jruby/nmatrix_java.rb
198
+ - lib/nmatrix/jruby/operators.rb
199
+ - lib/nmatrix/jruby/slice.rb
200
+ - lib/nmatrix/lapack_core.rb
201
+ - lib/nmatrix/lapack_plugin.rb
202
+ - lib/nmatrix/math.rb
203
+ - lib/nmatrix/mkmf.rb
204
+ - lib/nmatrix/monkeys.rb
205
+ - lib/nmatrix/nmatrix.rb
206
+ - lib/nmatrix/rspec.rb
207
+ - lib/nmatrix/shortcuts.rb
208
+ - lib/nmatrix/version.rb
209
+ - lib/nmatrix/yale_functions.rb
210
+ - spec/00_nmatrix_spec.rb
211
+ - spec/01_enum_spec.rb
212
+ - spec/02_slice_spec.rb
213
+ - spec/03_nmatrix_monkeys_spec.rb
214
+ - spec/2x2_dense_double.mat
215
+ - spec/4x4_sparse.mat
216
+ - spec/4x5_dense.mat
217
+ - spec/blas_spec.rb
218
+ - spec/elementwise_spec.rb
219
+ - spec/homogeneous_spec.rb
220
+ - spec/io/fortran_format_spec.rb
221
+ - spec/io/harwell_boeing_spec.rb
222
+ - spec/io/test.rua
223
+ - spec/io_spec.rb
224
+ - spec/lapack_core_spec.rb
225
+ - spec/leakcheck.rb
226
+ - spec/math_spec.rb
227
+ - spec/nmatrix_yale_resize_test_associations.yaml
228
+ - spec/nmatrix_yale_spec.rb
229
+ - spec/rspec_monkeys.rb
230
+ - spec/rspec_spec.rb
231
+ - spec/shortcuts_spec.rb
232
+ - spec/slice_set_spec.rb
233
+ - spec/spec_helper.rb
234
+ - spec/stat_spec.rb
235
+ - spec/test.pcd
236
+ - spec/utm5940.mtx
237
+ homepage: http://sciruby.com
238
+ licenses:
239
+ - BSD-3-Clause
240
+ metadata: {}
241
+ post_install_message: "***********************************************************\nWelcome
242
+ to SciRuby: Tools for Scientific Computing in Ruby!\n\nNMatrix requires a C/C++
243
+ compiler. Clang and GCC are \nrecommended. JRuby support is experimental, and requires\nJava.\n\nIf
244
+ you are upgrading from NMatrix 0.1.0 and rely on\nATLAS features, please check the
245
+ README.\n\nFaster matrix calculations and more advanced linear\nalgebra features
246
+ are available by installing either\nthe nmatrix-atlas or nmatrix-lapacke plugins.\n\nMore
247
+ explicit instructions for NMatrix and SciRuby should\nbe available on the SciRuby
248
+ website, sciruby.com, or\nthrough our mailing list (which can be found on our web-\nsite).\n\nThanks
249
+ for trying out NMatrix! Happy coding!\n\n***********************************************************\n"
250
+ rdoc_options: []
251
+ require_paths:
252
+ - lib
253
+ required_ruby_version: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '1.9'
258
+ required_rubygems_version: !ruby/object:Gem::Requirement
259
+ requirements:
260
+ - - ">="
261
+ - !ruby/object:Gem::Version
262
+ version: '0'
263
+ requirements: []
264
+ rubygems_version: 3.2.16
265
+ signing_key:
266
+ specification_version: 4
267
+ summary: NMatrix is a linear algebra library for Ruby
268
+ test_files:
269
+ - spec/00_nmatrix_spec.rb
270
+ - spec/01_enum_spec.rb
271
+ - spec/02_slice_spec.rb
272
+ - spec/03_nmatrix_monkeys_spec.rb
273
+ - spec/2x2_dense_double.mat
274
+ - spec/4x4_sparse.mat
275
+ - spec/4x5_dense.mat
276
+ - spec/blas_spec.rb
277
+ - spec/elementwise_spec.rb
278
+ - spec/homogeneous_spec.rb
279
+ - spec/io/fortran_format_spec.rb
280
+ - spec/io/harwell_boeing_spec.rb
281
+ - spec/io/test.rua
282
+ - spec/io_spec.rb
283
+ - spec/lapack_core_spec.rb
284
+ - spec/leakcheck.rb
285
+ - spec/math_spec.rb
286
+ - spec/nmatrix_yale_resize_test_associations.yaml
287
+ - spec/nmatrix_yale_spec.rb
288
+ - spec/rspec_monkeys.rb
289
+ - spec/rspec_spec.rb
290
+ - spec/shortcuts_spec.rb
291
+ - spec/slice_set_spec.rb
292
+ - spec/spec_helper.rb
293
+ - spec/stat_spec.rb
294
+ - spec/test.pcd
295
+ - spec/utm5940.mtx