multiarray 1.0.3 → 1.0.5
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 +7 -0
- data/COPYING +12 -17
- data/Rakefile +1 -87
- data/config.rb +18 -0
- data/lib/multiarray/gcccontext.rb +4 -1
- data/lib/multiarray/inject.rb +1 -1
- data/lib/multiarray.rb +2 -2
- metadata +16 -39
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8b0ad9dab8fbba85ccc9d704d99236d996d24a542fcece8dc5b3bab484ce4c7a
|
4
|
+
data.tar.gz: 62162d33df465227e937657f8f36993acf8e58a63846b5a3c0c2e133f9394119
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f81e04609f299a237cfb0c0dec82af1f1e36bbc6c02b9059f264d1d3e2e462f5fa267d74585b15125c37615dc099171692f2b9006a593534cddd68284980c5c7
|
7
|
+
data.tar.gz: e83578f471fcc8c4f21152222b3bfee07dc19a1b34a2cad48e339a75b5b74126629ae39d34703290625b105d331abebbd5aec3f3621afc95e4f79342f9783786
|
data/COPYING
CHANGED
@@ -1,15 +1,11 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
2
|
+
Version 3, 29 June 2007
|
3
3
|
|
4
|
-
|
5
|
-
GNU GENERAL PUBLIC LICENSE
|
6
|
-
Version 3, 29 June 2007
|
7
|
-
|
8
|
-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
9
5
|
Everyone is permitted to copy and distribute verbatim copies
|
10
6
|
of this license document, but changing it is not allowed.
|
11
7
|
|
12
|
-
|
8
|
+
Preamble
|
13
9
|
|
14
10
|
The GNU General Public License is a free, copyleft license for
|
15
11
|
software and other kinds of works.
|
@@ -72,7 +68,7 @@ patents cannot be used to render the program non-free.
|
|
72
68
|
The precise terms and conditions for copying, distribution and
|
73
69
|
modification follow.
|
74
70
|
|
75
|
-
|
71
|
+
TERMS AND CONDITIONS
|
76
72
|
|
77
73
|
0. Definitions.
|
78
74
|
|
@@ -80,7 +76,7 @@ modification follow.
|
|
80
76
|
|
81
77
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
82
78
|
works, such as semiconductor masks.
|
83
|
-
|
79
|
+
|
84
80
|
"The Program" refers to any copyrightable work licensed under this
|
85
81
|
License. Each licensee is addressed as "you". "Licensees" and
|
86
82
|
"recipients" may be individuals or organizations.
|
@@ -513,7 +509,7 @@ actual knowledge that, but for the patent license, your conveying the
|
|
513
509
|
covered work in a country, or your recipient's use of the covered work
|
514
510
|
in a country, would infringe one or more identifiable patents in that
|
515
511
|
country that you have reason to believe are valid.
|
516
|
-
|
512
|
+
|
517
513
|
If, pursuant to or in connection with a single transaction or
|
518
514
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
519
515
|
covered work, and grant a patent license to some of the parties
|
@@ -622,9 +618,9 @@ an absolute waiver of all civil liability in connection with the
|
|
622
618
|
Program, unless a warranty or assumption of liability accompanies a
|
623
619
|
copy of the Program in return for a fee.
|
624
620
|
|
625
|
-
|
621
|
+
END OF TERMS AND CONDITIONS
|
626
622
|
|
627
|
-
|
623
|
+
How to Apply These Terms to Your New Programs
|
628
624
|
|
629
625
|
If you develop a new program, and you want it to be of the greatest
|
630
626
|
possible use to the public, the best way to achieve this is to make it
|
@@ -649,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
|
|
649
645
|
GNU General Public License for more details.
|
650
646
|
|
651
647
|
You should have received a copy of the GNU General Public License
|
652
|
-
along with this program. If not, see <
|
648
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
653
649
|
|
654
650
|
Also add information on how to contact you by electronic and paper mail.
|
655
651
|
|
@@ -668,12 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
|
|
668
664
|
You should also get your employer (if you work as a programmer) or school,
|
669
665
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
670
666
|
For more information on this, and how to apply and follow the GNU GPL, see
|
671
|
-
<
|
667
|
+
<https://www.gnu.org/licenses/>.
|
672
668
|
|
673
669
|
The GNU General Public License does not permit incorporating your program
|
674
670
|
into proprietary programs. If your program is a subroutine library, you
|
675
671
|
may consider it more useful to permit linking proprietary applications with
|
676
672
|
the library. If this is what you want to do, use the GNU Lesser General
|
677
673
|
Public License instead of this License. But first, please read
|
678
|
-
<
|
679
|
-
|
674
|
+
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
data/Rakefile
CHANGED
@@ -4,22 +4,7 @@ require 'rake/clean'
|
|
4
4
|
require 'rake/testtask'
|
5
5
|
require 'rake/packagetask'
|
6
6
|
require 'rbconfig'
|
7
|
-
|
8
|
-
PKG_NAME = 'multiarray'
|
9
|
-
PKG_VERSION = '1.0.3'
|
10
|
-
RB_FILES = FileList[ 'lib/**/*.rb' ]
|
11
|
-
TC_FILES = FileList[ 'test/tc_*.rb' ]
|
12
|
-
TS_FILES = FileList[ 'test/ts_*.rb' ]
|
13
|
-
PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
|
14
|
-
RB_FILES + TS_FILES + TC_FILES
|
15
|
-
BIN_FILES = [ 'README.md', 'COPYING', '.document' ] +
|
16
|
-
RB_FILES + TS_FILES + TC_FILES
|
17
|
-
SUMMARY = %q{Multi-dimensional and uniform Ruby arrays}
|
18
|
-
DESCRIPTION = %q{This Ruby-extension defines Hornetseye::MultiArray and other native datatypes. Hornetseye::MultiArray provides multi-dimensional Ruby arrays with elements of same type. The extension is designed to be mostly compatible with Masahiro Tanaka's NArray. However it allows the definition of custom element types and operations on them. This work was also inspired by Ronald Garcia's boost::multi_array and by Todd Veldhuizen's Blitz++.}
|
19
|
-
LICENSE = 'GPL-3+'
|
20
|
-
AUTHOR = %q{Jan Wedekind}
|
21
|
-
EMAIL = %q{jan@wedesoft.de}
|
22
|
-
HOMEPAGE = %q{http://wedesoft.github.com/multiarray/}
|
7
|
+
require_relative 'config'
|
23
8
|
|
24
9
|
$SITELIBDIR = RbConfig::CONFIG[ 'sitelibdir' ]
|
25
10
|
|
@@ -67,75 +52,4 @@ Rake::PackageTask.new PKG_NAME, PKG_VERSION do |p|
|
|
67
52
|
p.package_files = PKG_FILES
|
68
53
|
end
|
69
54
|
|
70
|
-
begin
|
71
|
-
require 'rubygems'
|
72
|
-
require 'rubygems/builder'
|
73
|
-
$SPEC = Gem::Specification.new do |s|
|
74
|
-
s.name = PKG_NAME
|
75
|
-
s.version = PKG_VERSION
|
76
|
-
s.platform = Gem::Platform::RUBY
|
77
|
-
s.date = Date.today.to_s
|
78
|
-
s.summary = SUMMARY
|
79
|
-
s.description = DESCRIPTION
|
80
|
-
s.license = LICENSE
|
81
|
-
s.author = AUTHOR
|
82
|
-
s.email = EMAIL
|
83
|
-
s.homepage = HOMEPAGE
|
84
|
-
s.files = PKG_FILES
|
85
|
-
s.test_files = TC_FILES
|
86
|
-
s.require_paths = [ 'lib' ]
|
87
|
-
s.rubyforge_project = %q{hornetseye}
|
88
|
-
s.extensions = %w{Rakefile}
|
89
|
-
s.has_rdoc = 'yard'
|
90
|
-
s.extra_rdoc_files = []
|
91
|
-
s.rdoc_options = %w{--no-private}
|
92
|
-
s.add_dependency %q<malloc>, [ '~> 1.1' ]
|
93
|
-
s.add_development_dependency %q{rake}
|
94
|
-
end
|
95
|
-
GEM_SOURCE = "#{PKG_NAME}-#{PKG_VERSION}.gem"
|
96
|
-
$BINSPEC = Gem::Specification.new do |s|
|
97
|
-
s.name = PKG_NAME
|
98
|
-
s.version = PKG_VERSION
|
99
|
-
s.platform = Gem::Platform::CURRENT
|
100
|
-
s.date = Date.today.to_s
|
101
|
-
s.summary = SUMMARY
|
102
|
-
s.description = DESCRIPTION
|
103
|
-
s.license = LICENSE
|
104
|
-
s.author = AUTHOR
|
105
|
-
s.email = EMAIL
|
106
|
-
s.homepage = HOMEPAGE
|
107
|
-
s.files = BIN_FILES
|
108
|
-
s.test_files = TC_FILES
|
109
|
-
s.require_paths = [ 'lib' ]
|
110
|
-
s.rubyforge_project = %q{hornetseye}
|
111
|
-
s.has_rdoc = 'yard'
|
112
|
-
s.extra_rdoc_files = []
|
113
|
-
s.rdoc_options = %w{--no-private}
|
114
|
-
s.add_dependency %q<malloc>, [ '~> 1.1' ]
|
115
|
-
end
|
116
|
-
GEM_BINARY = "#{PKG_NAME}-#{PKG_VERSION}-#{$BINSPEC.platform}.gem"
|
117
|
-
desc "Build the gem file #{GEM_SOURCE}"
|
118
|
-
task :gem => [ "pkg/#{GEM_SOURCE}" ]
|
119
|
-
file "pkg/#{GEM_SOURCE}" => [ 'pkg' ] + $SPEC.files do
|
120
|
-
when_writing 'Creating GEM' do
|
121
|
-
Gem::Builder.new( $SPEC ).build
|
122
|
-
verbose true do
|
123
|
-
FileUtils.mv GEM_SOURCE, "pkg/#{GEM_SOURCE}"
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
desc "Build the gem file #{GEM_BINARY}"
|
128
|
-
task :gem_binary => [ "pkg/#{GEM_BINARY}" ]
|
129
|
-
file "pkg/#{GEM_BINARY}" => [ 'pkg' ] + $BINSPEC.files do
|
130
|
-
when_writing 'Creating binary GEM' do
|
131
|
-
Gem::Builder.new( $BINSPEC ).build
|
132
|
-
verbose true do
|
133
|
-
FileUtils.mv GEM_BINARY, "pkg/#{GEM_BINARY}"
|
134
|
-
end
|
135
|
-
end
|
136
|
-
end
|
137
|
-
rescue LoadError
|
138
|
-
STDERR.puts 'Please install \'rubygems\' if you want to create Gem packages'
|
139
|
-
end
|
140
|
-
|
141
55
|
CLOBBER.include 'doc', '.yardoc'
|
data/config.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rake'
|
2
|
+
|
3
|
+
PKG_NAME = 'multiarray'
|
4
|
+
PKG_VERSION = '1.0.5'
|
5
|
+
RB_FILES = FileList[ 'config.rb', 'lib/**/*.rb' ]
|
6
|
+
TC_FILES = FileList[ 'test/tc_*.rb' ]
|
7
|
+
TS_FILES = FileList[ 'test/ts_*.rb' ]
|
8
|
+
PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
|
9
|
+
RB_FILES + TS_FILES + TC_FILES
|
10
|
+
BIN_FILES = [ 'README.md', 'COPYING', '.document' ] +
|
11
|
+
RB_FILES + TS_FILES + TC_FILES
|
12
|
+
SUMMARY = %q{Multi-dimensional and uniform Ruby arrays}
|
13
|
+
DESCRIPTION = %q{This Ruby-extension defines Hornetseye::MultiArray and other native datatypes. Hornetseye::MultiArray provides multi-dimensional Ruby arrays with elements of same type. The extension is designed to be mostly compatible with Masahiro Tanaka's NArray. However it allows the definition of custom element types and operations on them. This work was also inspired by Ronald Garcia's boost::multi_array and by Todd Veldhuizen's Blitz++.}
|
14
|
+
LICENSE = 'GPL-3+'
|
15
|
+
AUTHOR = %q{Jan Wedekind}
|
16
|
+
EMAIL = %q{jan@wedesoft.de}
|
17
|
+
HOMEPAGE = %q{http://wedesoft.github.io/multiarray/}
|
18
|
+
|
@@ -27,7 +27,10 @@ module Hornetseye
|
|
27
27
|
# @private
|
28
28
|
CFG = RbConfig::CONFIG
|
29
29
|
|
30
|
-
if CFG[
|
30
|
+
if CFG['rubyarchhdrdir']
|
31
|
+
CFLAGS = "-DNDEBUG -Wno-unused-function #{CFG[ 'CFLAGS' ]} " +
|
32
|
+
"-I#{CFG['rubyhdrdir']} -I#{CFG['rubyarchhdrdir']}"
|
33
|
+
elsif CFG[ 'rubyhdrdir' ]
|
31
34
|
# GCC compiler flags
|
32
35
|
#
|
33
36
|
# @private
|
data/lib/multiarray/inject.rb
CHANGED
data/lib/multiarray.rb
CHANGED
metadata
CHANGED
@@ -1,48 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiarray
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jan Wedekind
|
9
|
-
autorequire:
|
10
8
|
bindir: bin
|
11
9
|
cert_chain: []
|
12
|
-
date:
|
10
|
+
date: 2025-06-30 00:00:00.000000000 Z
|
13
11
|
dependencies:
|
14
12
|
- !ruby/object:Gem::Dependency
|
15
13
|
name: malloc
|
16
14
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
15
|
requirements:
|
19
|
-
- - ~>
|
16
|
+
- - "~>"
|
20
17
|
- !ruby/object:Gem::Version
|
21
18
|
version: '1.1'
|
22
19
|
type: :runtime
|
23
20
|
prerelease: false
|
24
21
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
22
|
requirements:
|
27
|
-
- - ~>
|
23
|
+
- - "~>"
|
28
24
|
- !ruby/object:Gem::Version
|
29
25
|
version: '1.1'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: rake
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
26
|
description: This Ruby-extension defines Hornetseye::MultiArray and other native datatypes.
|
47
27
|
Hornetseye::MultiArray provides multi-dimensional Ruby arrays with elements of same
|
48
28
|
type. The extension is designed to be mostly compatible with Masahiro Tanaka's NArray.
|
@@ -55,10 +35,11 @@ extensions:
|
|
55
35
|
- Rakefile
|
56
36
|
extra_rdoc_files: []
|
57
37
|
files:
|
58
|
-
-
|
59
|
-
- README.md
|
38
|
+
- ".document"
|
60
39
|
- COPYING
|
61
|
-
- .
|
40
|
+
- README.md
|
41
|
+
- Rakefile
|
42
|
+
- config.rb
|
62
43
|
- lib/multiarray.rb
|
63
44
|
- lib/multiarray/argument.rb
|
64
45
|
- lib/multiarray/bool.rb
|
@@ -99,7 +80,6 @@ files:
|
|
99
80
|
- lib/multiarray/store.rb
|
100
81
|
- lib/multiarray/unmask.rb
|
101
82
|
- lib/multiarray/variable.rb
|
102
|
-
- test/ts_multiarray.rb
|
103
83
|
- test/tc_bool.rb
|
104
84
|
- test/tc_compile.rb
|
105
85
|
- test/tc_float.rb
|
@@ -109,31 +89,28 @@ files:
|
|
109
89
|
- test/tc_object.rb
|
110
90
|
- test/tc_rgb.rb
|
111
91
|
- test/tc_sequence.rb
|
112
|
-
|
92
|
+
- test/ts_multiarray.rb
|
93
|
+
homepage: http://wedesoft.github.io/multiarray/
|
113
94
|
licenses:
|
114
95
|
- GPL-3+
|
115
|
-
|
96
|
+
metadata: {}
|
116
97
|
rdoc_options:
|
117
|
-
- --no-private
|
98
|
+
- "--no-private"
|
118
99
|
require_paths:
|
119
100
|
- lib
|
120
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
102
|
requirements:
|
123
|
-
- -
|
103
|
+
- - ">="
|
124
104
|
- !ruby/object:Gem::Version
|
125
105
|
version: '0'
|
126
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
-
none: false
|
128
107
|
requirements:
|
129
|
-
- -
|
108
|
+
- - ">="
|
130
109
|
- !ruby/object:Gem::Version
|
131
110
|
version: '0'
|
132
111
|
requirements: []
|
133
|
-
|
134
|
-
|
135
|
-
signing_key:
|
136
|
-
specification_version: 3
|
112
|
+
rubygems_version: 3.6.3
|
113
|
+
specification_version: 4
|
137
114
|
summary: Multi-dimensional and uniform Ruby arrays
|
138
115
|
test_files:
|
139
116
|
- test/tc_bool.rb
|