bugGNU Octave - Bugs: bug #50574, error: operator =: no conversion...


bug #50574: error: operator =: no conversion for assignment of 'scalar' to indexed 'float complex scalar'

Submitted by:  Ceral Paquet <octavebugs>
Submitted on:  Sat 18 Mar 2017 08:51:57 AM UTC  
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.2.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 21 Mar 2017 11:01:28 PM UTC, comment #4:

Verified fix with both original example and my simpler one. Marking as Fixed and closing report.

Rik <rik5>
Project Administrator
Tue 21 Mar 2017 01:45:34 PM UTC, comment #3:

I checked in the following changeset:


John W. Eaton <jwe>
Project Administrator
Sat 18 Mar 2017 05:06:04 PM UTC, comment #2:

Confirmed. Octave is missing a conversion template.

A simpler method to reproduce is

The corresponding method of assigning assigning to doubles works

The error message is quite specific and quite accurate. It is the conversion of a double scalar to an indexed 'float complex scalar' that is missing. The conversion to a 'float matrix' exists and works correctly.

Rik <rik5>
Project Administrator
Sat 18 Mar 2017 09:10:30 AM UTC, comment #1:

Strange. I have a really recent development version and see a problem here, but it manifests a little differently:

It looks like my median() comes from the nan package:

Where is your median originating from? I don't think there is a line #93 in my version.

Your guess does make sense in a way, i.e., that there is some missing C++ conversion whose definition was overlooked. But check where median is coming from and if it is an external file, check what line 93 is.

Dan Sebald <sebald>
Sat 18 Mar 2017 08:51:57 AM UTC, original submission:

I ran into this error - not really sure what it means. Maybe a missing template somewhere deep in the C++ ...

Ceral Paquet <octavebugs>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by sebald (Posted a comment)
  • -unavailable- added by octavebugs (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 21 Mar 2017 11:01:28 PM UTCrik5StatusReady For Test=>Fixed
    Tue 21 Mar 2017 01:45:34 PM UTCjweStatusConfirmed=>Ready For Test
    Sat 18 Mar 2017 05:06:04 PM UTCrik5CategoryNone=>Libraries
      SummarySingle complex median error: no conversion for assignment =>error: operator =: no conversion for assignment of 'scalar' to indexed 'float complex scalar'

    Back to the top

    Powered by Savane 3.1-cleanup1