symengine / symengine
Showing 1 of 2 files from the diff.

@@ -428,12 +428,15 @@
Loading
428 428
    ar(num, den);
429 429
    return Complex::from_two_nums(*num, *den);
430 430
}
431 -
template <class Archive>
432 -
RCP<const Basic> load_basic(Archive &ar, RCP<const ComplexBase> &)
431 +
template <class Archive, class T>
432 +
RCP<const Basic>
433 +
load_basic(Archive &ar, RCP<const T> &,
434 +
           typename std::enable_if<std::is_base_of<ComplexBase, T>::value,
435 +
                                   int>::type * = nullptr)
433 436
{
434 437
    RCP<const Number> num, den;
435 438
    ar(num, den);
436 -
    return num->div(*den);
439 +
    return addnum(num, mulnum(I, den));
437 440
}
438 441
template <class Archive>
439 442
RCP<const Basic> load_basic(Archive &ar, RCP<const Interval> &)
@@ -644,6 +647,7 @@
Loading
644 647
RCP<const Basic> load_basic(
645 648
    Archive &ar, RCP<const T> &,
646 649
    typename std::enable_if<not(std::is_base_of<Relational, T>::value
650 +
                                or std::is_base_of<ComplexBase, T>::value
647 651
                                or std::is_base_of<OneArgFunction, T>::value
648 652
                                or std::is_base_of<MultiArgFunction, T>::value
649 653
                                or std::is_base_of<TwoArgFunction, T>::value),
Files Coverage
symengine 89.47%
Project Totals (129 files) 89.47%
1
coverage:
2
  ignore:
3
  - symengine/tests/.*
4
  - symengine/utilities/.*
5
  - benchmarks/.*
6

7
comment: off
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading