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 Mar 18 08:51:57 2017  
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 MarkupRich Markup):

You are not logged in

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


Tue Mar 21 23:01:28 2017, comment #4:

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

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

I checked in the following changeset:


John W. Eaton <jwe>
Project Administrator
Sat Mar 18 17:06:04 2017, 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 Mar 18 09:10:30 2017, 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 Mar 18 08:51:57 2017, 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 Mar 21 23:01:28 2017rik5StatusReady For Test=>Fixed
    Tue Mar 21 13:45:34 2017jweStatusConfirmed=>Ready For Test
    Sat Mar 18 17:06:04 2017rik5CategoryNone=>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