octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #62209] interpn: Incorrect results for certain


From: Adam
Subject: [Octave-bug-tracker] [bug #62209] interpn: Incorrect results for certain choices of input
Date: Mon, 21 Mar 2022 17:32:41 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62209>

                 Summary: interpn:  Incorrect results for certain choices of
input
                 Project: GNU Octave
            Submitted by: adam_a
            Submitted on: Mon 21 Mar 2022 09:32:40 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: adam_a
        Originator Email: 
             Open/Closed: Open
                 Release: 6.4.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I'm getting incorrect results when using interpn in version 6.4.0.  Example
code is below.


x = rand(10,10,10);
y = interpn( 1:10 , 1:10 , 1:10 , x , 1:0.5:10 , 1:0.25:10 , 1:0.5:10 );
size(y)


This correctly returns:  [ 19   37   19 ]


y = interpn( 1:10 , 1:10 , 1:10 , x , 1:0.5:10 , 1:0.5:10 , 1:0.5:10 );
size(y)


The size of y ought to be:  [ 19   19   19 ]
Instead, the size returned is:   [ 1   19 ]

Can anyone confirm whether this is repeatable please?




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62209>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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