User Profile

Collapse

Profile Sidebar

Collapse
acheng
acheng
Last Activity: Apr 18 '12, 06:28 AM
Joined: Feb 27 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • acheng
    started a topic How to produce 3D graph Using MathGL
    in C

    How to produce 3D graph Using MathGL

    I want to plot a 3D graph using MathGL. There are three variables (X,Y,Z), and kinds of combination correspond different C values. Also C vector sets the color scheme. I write some codes as below. But it doesn't work. I'm not sure I use wrong functions or not.

    Code:
    mglData x("x"),y("y"),z("z"),c("c");
    mglGraph *gr=new mglGraphZB;
    gr->SetSize(1200,800);gr->Title("Eletron
    ...
    See more | Go to post

  • acheng
    replied to a bug of boost uBlas?
    in C
    Thanks for reply.
    i am not familiar with the Boost Community. Would you please post this question to there for me? Or show the url of submission please.
    See more | Go to post

    Leave a comment:


  • 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
No activity results to display
Show More
Working...