Skip to content

Commit

Permalink
r2C and i2C now handle long double both real and complex - PDLPorters…
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 authored and wlmb committed Jan 16, 2025
1 parent 9e16f4d commit a60dfe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- PDL::IO::Storable now also supports Sereal, JSON::MaybeXS, CBOR::XS (#510,#520) - thanks @shawnlaffan
- add ParamDesc PP key
- fix IO::Pic problem with older IO::GD installed (#522) - thanks @shawnlaffan
- r2C and i2C now handle long double both real and complex (#524) - thanks @wlmb for report

2.098 2025-01-03
- fix Windows build problems
Expand Down
4 changes: 2 additions & 2 deletions lib/PDL/Ops.pd
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ EOF
);

pp_def('r2C',
GenericTypes=>[qw(G C F D)], # last one is default so here = D
GenericTypes=>$AF,
Pars => 'r(); complex [o]c()',
Doc => 'convert real to native complex, with an imaginary part of zero',
PMCode => << 'EOF',
Expand All @@ -500,7 +500,7 @@ EOF
);

pp_def('i2C',
GenericTypes=>[qw(G C F D)], # last one is default so here = D
GenericTypes=>$AF,
Pars => 'i(); complex [o]c()',
Doc => 'convert imaginary to native complex, with a real part of zero',
PMCode => << 'EOF',
Expand Down

0 comments on commit a60dfe4

Please sign in to comment.