Search Result

Collapse
5 results in 0.0041 seconds.
Keywords
Members
Tags
boost
  •  

  • acheng
    started a topic a bug of boost uBlas?
    in C

    a bug of boost uBlas?

    I want to assign a matrix to submatrix of a bigger matrix.

    Code:
    ublas::matrix<int> A(8,5);
    ublas::matrix<int> B(2,5);
    for(size_t i=0;i<A.size1();++i)
        for(size_t j=0;j<A.size2();++j)
            A(i,j)=i*A.size2()+j+1;
    for(size_t i=0;i<B.size1();++i)
        for(size_t j=0;j<B.size2();++j)
            B(i,j)=i*B.size2()+j+5;
    ublas::matrix_range<ublas::matrix<int>
    ...
    See more | Go to post

  • John Papadopoul
    started a topic Boost read_graphml example
    in C

    Boost read_graphml example

    I'm trying to build a simple GraphML loader using BOOST libraries. I have a GraphML file and I want to load it in a boost adjacency list structure. The graph is directed and the only information that it is stored are the name of the nodes (0,1,2,...) and the edges from one node to another. What I did is:

    Code:
    void loadHierarchy(){
        // ...
        std::ifstream inFile;
        inFile.open("ext.gml", std::ifstream::in);
    ...
    See more | Go to post

  • How to get memory usage of an adjacency list / transitive closure?

    Hi all,

    I'm using the BOOST libraries to compute an adjacency list and its transitive closure. I'm defining them as follows:
    Code:
    ...
    typedef boost::adjacency_list<> AdjacencyList;
    AdjacencyList g_transitiveClosure;
    AdjacencyList g_adjacencyList;
    ...
    What I'm doing is:
    loop start
    add edge information to the g_adjacencyList
    compute the transitive...
    See more | Go to post

  • Tangleman
    started a topic Boost in an MFC app on NT4
    in C

    Boost in an MFC app on NT4

    I am trying to modify a current MFC application running on Windows NT4 to use boost libraries for ethernet communcications (originally, it used CommX for serial) and general increased performance, effieciency, and clarity of code.

    I started out modifying it in VS2010, but I found that I was unable to produce a valid NT4 app with VS2010. I googled the issue and found that VS2005 was the last version able to create an NT4 app. I got...
    See more | Go to post

  • tdlr
    started a topic Solution for handling boost::thread with member functions
    in C

    Solution for handling boost::thread with member functions

    I'm using VC++ 2010 with Boost 1.43.
    I've just created a class that uses winsock to handle network communication. Now there's a method called "fillQueue" which is defined like this:
    Code:
    void fillQueue(NetworkQueueTS& nq);
    Problem is, the method enters an infinite while loop which fills the NetworkQueue with data. So it needs to be in an extra thread. The NetworkQueue class itself is already thread...
    See more | Go to post
Working...