bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] [bug #43868] gsl_permutation_mul is described backwards


From: Patrick Alken
Subject: [Bug-gsl] [bug #43868] gsl_permutation_mul is described backwards
Date: Mon, 29 Jun 2015 14:04:42 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0

Follow-up Comment #1, bug #43868 (project gsl):

The code and documentation are actually correct. Note that the permutation
acts by exchanging columns instead of rows, so the nested index does the right
thing. The attached code (perm.c) checks this on two simple permuations:

Pa = [0,1,3,2]
Pb = [1,3,2,0]

and makes sure gsl_permutation_mul gives the expected results. A quick check
by hand shows that it does.

(file #34342)
    _______________________________________________________

Additional Item Attachment:

File name: perm.c                         Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43868>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]