Skip to content

Instantly share code, notes, and snippets.

View geektoni's full-sized avatar

Giovanni De Toni geektoni

View GitHub Profile
../../src/shogun/libshogun.so.17.2: undefined reference to `dsyev_'
../../src/shogun/libshogun.so.17.2: undefined reference to `dorgqr_'
../../src/shogun/libshogun.so.17.2: undefined reference to `dstemr_'
../../src/shogun/libshogun.so.17.2: undefined reference to `dsyevr_'
../../src/shogun/libshogun.so.17.2: undefined reference to `dsygvx_'
../../src/shogun/libshogun.so.17.2: undefined reference to `dgesvd_'
collect2: error: ld returned 1 exit status
tests/unit/CMakeFiles/shogun-unit-test.dir/build.make:6787: recipe for target 'tests/unit/shogun-unit-test' failed
make[2]: *** [tests/unit/shogun-unit-test] Error 1
CMakeFiles/Makefile2:235: recipe for target 'tests/unit/CMakeFiles/shogun-unit-test.dir/all' failed
# This is the CMakeCache file.
# For build in directory: /home/uriel/Github/shogun/build_cpp
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# This is the CMakeCache file.
# For build in directory: /home/uriel/Github/shogun/build_cpp
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================================================-=============================================-============-================================================================================
ii a11y-profile-manager-indicator 0.1.10-0ubuntu3 amd64 Accessibility Profile Manager - Unity desktop indicator
ii account-plugin-facebook 0.12+16.04.20160126-0ubuntu1 all GNOME Control Center account plugin for single signon - facebook
ii account-plugin-flickr 0.12+16.04.20160126-0ubuntu1 all GNOME Control C
Shogun's Progress Bar
1) Base features:
- UTF-8/ASCII progress bar mode switch (prevents Windows madness);
- Display current SG_PROGRESS information (maybe others like iterations/second);
- Three range types:
-> prange(0, 100): range with bound;
-> prange(100): range with upper bound;
-> prange(it.begin(), it.end()): range using an iterators (range over a custom set of values);
-> prange_mt(100): range multi-threaded;
#ifndef __SGOBJECT_H__
#define __SGOBJECT_H__
#include <shogun/lib/config.h>
#include <shogun/lib/common.h>
#include <shogun/lib/DataType.h>
#include <shogun/lib/ShogunException.h>
#include <shogun/base/Version.h>
#include <shogun/base/unique.h>
#include <shogun/io/SGIO.h>
#include <shogun/base/some.h>
#include <iostream>
class base {
public:
base() : val(1) {};
virtual void print() {std::cout << val << std::endl;}
int ref() {};
int unref() {};
private:
/*
* Written (W) 2017 Giovanni De Toni
*/
#ifndef __SG_PROGRESS_H__
#define __SG_PROGRESS_H__
#include <iterator>
#include <memory>
#include <string>
#include <thread>
#include <shogun/base/progress.h>
#include <shogun/io/SGIO.h>
#include <shogun/base/init.h>
using namespace shogun;
int main() {
init_shogun_with_defaults();
// General version
// Works with multi threaded environment and imposes no constraints
// to the for() loop. This means that can be used inside a #pragma
// without problems.
pr = progress(range(0,10), io, ASCII)
for (int i=0; i<10; i++)
{
/* Do stuff */
pr.print_progress()