Mercurial > octave
diff libinterp/corefcn/__eigs__.cc @ 30155:14b098a6ba46
maint: Use public: qualifier in structs that are really classes.
* __eigs__.cc, graphics.in.h, load-path.h, ls-hdf5.h, ov-base-int.cc,
bp-table.h, profiler.h, token.h, Array-util.cc, MArray.cc,
Sparse-diag-op-defs.h, lo-ieee.h, oct-sort.cc, oct-sort.h:
Use public: qualifier in structs that are really classes.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 10 Sep 2021 07:02:04 -0700 |
parents | 1f34286a2637 |
children | a61e1a0f6024 |
line wrap: on
line diff
--- a/libinterp/corefcn/__eigs__.cc Thu Sep 09 21:08:44 2021 -0700 +++ b/libinterp/corefcn/__eigs__.cc Fri Sep 10 07:02:04 2021 -0700 @@ -49,18 +49,23 @@ #if defined (HAVE_ARPACK) -struct eigs_callback { - // Pointer for user defined function. - octave_value m_eigs_fcn; - - // Have we warned about imaginary values returned from user function? - bool m_warned_imaginary = false; +struct eigs_callback +{ +public: ColumnVector eigs_func (const ColumnVector& x, int& eigs_error); ComplexColumnVector eigs_complex_func (const ComplexColumnVector& x, int& eigs_error); + + //-------- + + // Pointer for user defined function. + octave_value m_eigs_fcn; + + // Have we warned about imaginary values returned from user function? + bool m_warned_imaginary = false; }; // Is this a recursive call?