CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Posts
    15

    boost: swap two columns of a matrix

    I'm trying to swap two columns of a ublas matrix like

    matrix <double> m_mat(2,2);


    but since they are row-major I can't find a solution (excepted for an ugly cycle)

    Do you have any other better solutions in mind?

  2. #2
    Join Date
    Jul 2010
    Posts
    15

    Re: boost: swap two columns of a matrix

    I was silly, there's a swap function ready-for-use.

    Thank you however

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured