This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (c) The Shogun Machine Learning Toolbox | |
| * Written (w) 2015 Soumyajit De | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are met: | |
| * | |
| * 1. Redistributions of source code must retain the above copyright notice, this | |
| * list of conditions and the following disclaimer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cmath> | |
| #include <cstddef> | |
| #include <algorithm> | |
| #include <memory> | |
| #include <complex> | |
| typedef std::complex<double> complex128_t; | |
| namespace impl { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [[email protected] build]$ rm -rf * && cmake -DENABLE_EIGEN=OFF -DENABLE_VIENNACL=OFF -DENABLE_TESTING=ON .. | |
| -- The C compiler identification is GNU 4.9.2 | |
| -- The CXX compiler identification is GNU 4.9.2 | |
| -- Check for working C compiler: /usr/lib64/ccache/cc | |
| -- Check for working C compiler: /usr/lib64/ccache/cc -- works | |
| -- Detecting C compiler ABI info | |
| -- Detecting C compiler ABI info - done | |
| -- Check for working CXX compiler: /usr/lib64/ccache/c++ | |
| -- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works | |
| -- Detecting CXX compiler ABI info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cstdlib> | |
| using namespace std; | |
| typedef double float64_t; | |
| typedef unsigned long index_t; | |
| template <class T> | |
| struct ComputeSquare |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 3 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * Written (W) 2013 Soumyajit De | |
| */ | |
| #include <shogun/base/init.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # This program is free software you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # Written (C) 2012-2013 Heiko Strathmann | |
| # Written (C) 2014 Soumyajit De | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 3 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * Written (W) 2013 Heiko Strathmann | |
| */ | |
| #include <shogun/base/init.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CFeatures* CFeatureSelection::apply_backward_elimination(CFeatures* features) | |
| { | |
| // by default does nothing - subclasses may override this to precompute kernel on the labels | |
| precompute(); | |
| // this will return a new instance of feature object without changing the original one | |
| CFeatures* reduced_feats = (CFeatures*)features->clone(); | |
| SG_REF(reduced_feats); | |
| // the main loop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In file included from gistfile1.cpp:6:0: | |
| /usr/local/include/viennacl/matrix.hpp: In instantiation of ‘class viennacl::matrix_base<double, viennacl::column_major, long int>’: | |
| gistfile1.cpp:99:16: required from ‘class shogun::CGPUMatrix<double>’ | |
| gistfile1.cpp:193:24: required from here | |
| /usr/local/include/viennacl/matrix.hpp:249:30: error: ‘constexpr’ needed for in-class initialization of static data member ‘const size_type viennacl::matrix_base<double, viennacl::column_major, long int>::alignment’ of non-integral type [-fpermissive] | |
| static const size_type alignment = 128; | |
| ^ | |
| gistfile1.cpp: In instantiation of ‘shogun::CGPUMatrix<T>::CGPUMatrix(shogun::SGMatrix2<T>&) [with T = double]’: | |
| gistfile1.cpp:193:34: required from here | |
| gistfile1.cpp:52:10: error: no matching function for call to ‘viennacl::matrix_base<double, viennacl::column_major, long int>::matrix_base(int32_t&, int32_t&)’ |