Thank you
Type: Posts; User: baxy
Thank you
a small example with the static input:
#include <vector>
#include <iostream>
using namespace std;
int main(){
hi,
well i am in a need of a more efficient way to do the following:
I am interested into overlapping intervals, actually their start and end position. What I have is a set of intervals (2-7,...
Hi,
the situation is the following. I am working with a function which requires ostream to be passed into it so that it can directly print results into file od stdout.... example
...
I didn't know about this one.... I believe cachegrind did the trick in resolving my confusions
thnx
Hi, so as you can see in th obove code my reads are close to each other in vec1 but not on vec2, moreover there is no temporal locality on vec2 since under a uniform distribution model (which is...
Hi,
I have a basic question regarding how cache memory works.
Let say I have a vector that does not fit into my cach memory (too large.) and this vector contains random numbers (ints) that are...
Hi,
let say my situation is the following. I have two vectors one of which is a vector of vectors:
vector<int> v1;
Ok after a day of googling i understand that threading is not the way to go. so here is my attempt with forking:
#include <iostream>
#include <vector>
#include <unistd.h>
#include...
ok , but how do i go about utilizing my computer resources then. since now i am only using one thread to do the task and i have 23 left. and since my processing time is long i thought the best way to...
Hi,
well even after all the advice you guys gave me I am still struggling to make a functional piece of code. (thought i could do it on my own but it turns out i cannot) so I am asking for some...
What actually happens when I make a thread and pass a vector reference to it which i fill in the thread. example : let say I have a function that takes a vector reference and adds numbers to it. and...
hi,
i have this strange (to me) problem. I have a function in which i make the following function calls:
vector<Tint> segments =...
hi,
what would be the best (and jet simplest) way to avoid errors in the following situation.
so i am reading a two column file:
fstream fs;
Hi,
could someone recomend a c++ library containing single linkage , avrg. -linkage and complete linkage clustering algorithms? Has anyone came accross some of them?
b
:o
totally forgot .... sorry sorry sorry !!!!
add:
Once more sorry. I had this fealing that I had a similar situation before but I could not remember when and where. I trully did not mean to...
Hi,
I have a problem with compiling the following situation:
I have a class in which there is a comparison function:
template <typename Tint>
bool CMC<Tint>::CmpVec(const vector<Tint>&...
Hi,
What I'm trying to do is to remove elements from my vector. Generally the idea is to do something like this:
#include <iostream>
#include <vector>
#include <string>
#include...
hi,
I was wondering if there is a better way to do the following.
Let say I have a recursive function rec():
#include <iostream>
#include <vector>
hi
so the situation is the following :
I am using a qsort function (legacy code) in order to do some sorting. qsort() is called from inside the class within a function which is a member of...
thnx!
Hi,
I do not understand why this does not work:
#include <cstdlib>
#include <iostream>
Hi,
I'm let say stuck with some "legacy" code that i cannot make it to work
example:
I give up. So here are my test codes and runtimes. File is exactly as i described it above. In the examples below i was interested in the first column and in the number in the second column.
...
Touché
I absolutly agree (habit i guess)
get line vs get character is rather slow. and though this could be done pure c style I am just wondering if maybe someone has a slick and fast way of...