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

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

[Octave-bug-tracker] [bug #35787] Broadcasting inconsistency


From: anonymous
Subject: [Octave-bug-tracker] [bug #35787] Broadcasting inconsistency
Date: Sun, 11 Mar 2012 06:39:17 +0000
User-agent: Mozilla/5.0 (X11; FreeBSD i386; rv:9.0.1) Gecko/20100101 Firefox/9.0.1

URL:
  <http://savannah.gnu.org/bugs/?35787>

                 Summary: Broadcasting inconsistency
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sun 11 Mar 2012 06:39:16 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: forkandwait
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: *BSD

    _______________________________________________________

Details:

I think broadcasting should work like #12, but #10 gives error.

10>  eye(4) .- (1:4)'
error: operator -: nonconformant arguments (op1 is 4x4, op2 is 4x1)
11>  eye(4) .* (1:4)'
warning: product: automatic broadcasting operation applied
ans =

   1   0   0   0
   0   2   0   0
   0   0   3   0
   0   0   0   4


12>  eye(4) .- repmat((1:4)',1,4)
ans =

   0  -1  -1  -1
  -2  -1  -2  -2
  -3  -3  -2  -3
  -4  -4  -4  -3

13> version
ans = 3.6.1-rc0





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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