Skip to content

Instantly share code, notes, and snippets.

View lambday's full-sized avatar

Soumyajit De lambday

  • Meta
  • London
  • 07:37 (UTC)
View GitHub Profile
@lambday
lambday / clone.cpp
Last active December 19, 2015 07:39
/*
* 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/lib/common.h>
mathematics/logdet/DenseMatrixOperator.cpp: In member function ‘void shogun::CDenseMatrixOperator<T>::init()’:
mathematics/logdet/DenseMatrixOperator.cpp:46:5: error: ‘m_parameters’ was not declared in this scope
mathematics/logdet/DenseMatrixOperator.cpp:46:118: error: ‘m_model_selection_parameters’ was not declared in this scope
#include <iostream>
using namespace std;
class base
{
public:
base()
{
cout << "base created" << endl;
(gdb) run
Starting program: /home/cfdvs/rahul/test/shogun/a.out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[GCDEBUG] SGObject created (0x62f4d0)
[GCDEBUG] CLinearOperator created (0x62f4d0)
[GCDEBUG] CDenseMatrixOperator created (0x62f4d0)
[DEBUG] entering CDenseMatrixOperator::clone()
[DEBUG] constructing an empty instance of CDenseMatrixOperator
[DEBUG] cloning parameter dense_matrix" at index 0
#include <iostream>
using namespace std;
class base
{
public:
base():m_base(0)
{
cout << "base created" << endl;
features/DenseFeatures.cpp:513:4: error: no match for ‘operator+=’ in ‘*(vec2 + ((long unsigned int)(((long unsigned int)i) * 8ul))) += std::operator* [with _Tp = double]((*(const double*)(& alpha)), (*(((const std::complex<double>*)vec1) + ((long unsigned int)(((long unsigned int)i) * 16ul)))))’
/*
* 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/lib/common.h>
@lambday
lambday / cg.cpp
Last active December 19, 2015 16:39
r_0 = b
p_0 = b
||r0||_2 = r.r
x_0 = 0
for i = 1 to N
{
// upate alpha
alpha_i = ||r_(i-1)||_2 / p_(i-1).(A * p_(i-1))
/*
* 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/lib/common.h>
[rahul@localhost ~]$ ssh -v [email protected]
OpenSSH_5.6p1, OpenSSL 1.0.0j-fips 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to yueh.ml.tu-berlin.de [130.149.108.16] port 22.
debug1: Connection established.
debug1: identity file /home/rahul/.ssh/id_rsa type 1
debug1: identity file /home/rahul/.ssh/id_rsa-cert type -1
debug1: identity file /home/rahul/.ssh/id_dsa type 2
debug1: identity file /home/rahul/.ssh/id_dsa-cert type -1