Search:

Type: Posts; User: baxy

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thank you

    Thank you
  2. a small example with the static input: ...

    a small example with the static input:



    #include <vector>
    #include <iostream>

    using namespace std;

    int main(){
  3. bool vector operations - a more efficient way needed

    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,...
  4. Replies
    2
    Views
    502

    good redirection strategy ???

    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



    ...
  5. Replies
    6
    Views
    928

    I didn't know about this one.... I believe...

    I didn't know about this one.... I believe cachegrind did the trick in resolving my confusions

    thnx
  6. Replies
    6
    Views
    928

    Hi, so as you can see in th obove code my reads...

    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...
  7. Replies
    6
    Views
    928

    Understanding how cache works

    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...
  8. Thread: sorting problem

    by baxy
    Replies
    2
    Views
    570

    sorting problem

    Hi,

    let say my situation is the following. I have two vectors one of which is a vector of vectors:





    vector<int> v1;
  9. Replies
    12
    Views
    1,026

    Ok after a day of googling i understand that...

    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...
  10. Replies
    12
    Views
    1,026

    ok , but how do i go about utilizing my computer...

    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...
  11. Replies
    12
    Views
    1,026

    Threads example required

    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...
  12. Replies
    1
    Views
    476

    New threading question

    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...
  13. Replies
    2
    Views
    1,044

    Threading and joining

    hi,


    i have this strange (to me) problem. I have a function in which i make the following function calls:




    vector<Tint> segments =...
  14. Replies
    2
    Views
    658

    best way to prevent missreads

    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;
  15. Replies
    1
    Views
    616

    Clustering algorithms

    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
  16. Replies
    3
    Views
    1,423

    :o totally forgot .... sorry sorry sorry !!!!...

    :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...
  17. Replies
    3
    Views
    1,423

    sort vector of vectors by their size

    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>&...
  18. Replies
    1
    Views
    459

    removing elements from a vector

    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...
  19. Replies
    1
    Views
    826

    recursive vector loading

    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>
  20. Replies
    11
    Views
    2,465

    qsort problem with matching arguments

    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...
  21. Replies
    3
    Views
    1,744

    thnx!

    thnx!
  22. Replies
    3
    Views
    1,744

    error: ... does not name a type

    Hi,


    I do not understand why this does not work:



    #include <cstdlib>
    #include <iostream>
  23. Replies
    3
    Views
    1,066

    legacy code problem

    Hi,

    I'm let say stuck with some "legacy" code that i cannot make it to work

    example:
  24. Replies
    13
    Views
    1,307

    I give up. So here are my test codes and...

    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.
    ...
  25. Replies
    13
    Views
    1,307

    Touché I absolutly agree (habit i guess) ...

    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...
Results 1 to 25 of 222
Page 1 of 9 1 2 3 4