jblas-ruby 1.1.1

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.
@@ -0,0 +1,55 @@
1
+ # Proxy objects for elementwise, column-wise and row-wise access.
2
+
3
+ # Copyright (c) 2009-2010, Mikio L. Braun and contributors
4
+ # All rights reserved.
5
+ #
6
+ # Redistribution and use in source and binary forms, with or without
7
+ # modification, are permitted provided that the following conditions are
8
+ # met:
9
+ #
10
+ # * Redistributions of source code must retain the above copyright
11
+ # notice, this list of conditions and the following disclaimer.
12
+ #
13
+ # * Redistributions in binary form must reproduce the above
14
+ # copyright notice, this list of conditions and the following
15
+ # disclaimer in the documentation and/or other materials provided
16
+ # with the distribution.
17
+ #
18
+ # * Neither the name of the Technische Universität Berlin nor the
19
+ # names of its contributors may be used to endorse or promote
20
+ # products derived from this software without specific prior
21
+ # written permission.
22
+ #
23
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
+ # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
+ # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
+ # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27
+ # HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28
+ # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
+ # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
+ # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
+ # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
+ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+
35
+ module JBLAS
36
+ class MatrixElementWiseProxy
37
+ def initialize(matrix)
38
+ @matrix = matrix
39
+ end
40
+
41
+ def *(other)
42
+ @matrix.mul(other)
43
+ end
44
+ end
45
+
46
+ class MatrixDotProxy
47
+ def initialize(matrix)
48
+ @matrix = matrix
49
+ end
50
+
51
+ def *(other)
52
+ @matrix.dot(other)
53
+ end
54
+ end
55
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jblas-ruby
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 1
8
+ - 1
9
+ version: 1.1.1
10
+ platform: ruby
11
+ authors:
12
+ - Mikio L. Braun
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-08-27 00:00:00 +02:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: Fast linear algebra for JRuby based on the jblas library.
22
+ email: mikiobraun@gmail.com
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files: []
28
+
29
+ files:
30
+ - lib/jblas.rb
31
+ - lib/jblas/complex.rb
32
+ - lib/jblas/mixin_arith.rb
33
+ - lib/jblas/extensions.rb
34
+ - lib/jblas/errors.rb
35
+ - lib/jblas/mixin_convert.rb
36
+ - lib/jblas/mixin_complex_matrix.rb
37
+ - lib/jblas/functions.rb
38
+ - lib/jblas/mixin_class.rb
39
+ - lib/jblas/java.rb
40
+ - lib/jblas/mixin_enum.rb
41
+ - lib/jblas/arith.rb
42
+ - lib/jblas/matrix_mixin.rb
43
+ - lib/jblas/mixin_general.rb
44
+ - lib/jblas/0readme.rb
45
+ - lib/jblas/proxies.rb
46
+ - lib/jblas/mixin_access.rb
47
+ - lib/jblas/jblas-1.1.1.jar
48
+ has_rdoc: true
49
+ homepage: http://mikiobraun.github.com/jblas-ruby
50
+ licenses: []
51
+
52
+ post_install_message:
53
+ rdoc_options: []
54
+
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ segments:
63
+ - 0
64
+ version: "0"
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ segments:
71
+ - 0
72
+ version: "0"
73
+ requirements:
74
+ - none
75
+ rubyforge_project:
76
+ rubygems_version: 1.3.7
77
+ signing_key:
78
+ specification_version: 3
79
+ summary: jblas-ruby - Java based linear algebra for Ruby
80
+ test_files: []
81
+