nmatrix 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,55 +0,0 @@
1
- # = NMatrix
2
- #
3
- # A linear algebra library for scientific computation in Ruby.
4
- # NMatrix is part of SciRuby.
5
- #
6
- # NMatrix was originally inspired by and derived from NArray, by
7
- # Masahiro Tanaka: http://narray.rubyforge.org
8
- #
9
- # == Copyright Information
10
- #
11
- # SciRuby is Copyright (c) 2010 - 2012, Ruby Science Foundation
12
- # NMatrix is Copyright (c) 2012, Ruby Science Foundation
13
- #
14
- # Please see LICENSE.txt for additional copyright notices.
15
- #
16
- # == Contributing
17
- #
18
- # By contributing source code to SciRuby, you agree to be bound by
19
- # our Contributor Agreement:
20
- #
21
- # * https://github.com/SciRuby/sciruby/wiki/Contributor-Agreement
22
- #
23
- # == extconf.rb
24
- #
25
- # Configuration file for the NMatrix C/C++ extension.
26
-
27
- require 'mkmf'
28
-
29
- # Configure our compilers and compiler options.
30
- $CFLAGS = '-I. -fPIC -Wall -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -mtune=native -O3'
31
- CONFIG['CXXFLAGS'] = '-std=c++11'
32
-
33
- if clang_path = find_executable('clang') and clang_pp_path = find_executable('clang++')
34
- CONFIG['CC'] = clang_path
35
- CONFIG['CXX'] = clang_pp_path
36
- end
37
-
38
- # Necessary header files.
39
- find_header('ruby/config.h')
40
-
41
- # List the source files that need to be compiled.
42
- $srcs = [
43
- # 'nmatrix.cpp',
44
- 'ruby_constants.cpp',
45
-
46
- 'data/data.cpp',
47
- 'math.cpp',
48
- 'storage/storage.cpp',
49
- 'storage/dense.cpp'
50
- ]
51
-
52
- $objs = $srcs.map { |f| f.sub('.cpp', '.o') }
53
-
54
- # Create the actual Makefile.
55
- create_makefile('NMatrix')