Debian Codegraph @

pp_defc.pl

raw symbols SCIP
1 sub pp_defcscip-perl cpan PDL-LinearAlgebra 0.437 main/pp_defc(). {
2 my ($function, %hash) = @_scip-perl cpan PDL-LinearAlgebra 0.437 main/`@_`.;
3 $hash{GenericTypes} ||= [qw(F D)];
4 $hash{Doc} ||= "\n=for ref\n\nComplex version of L<PDL::LinearAlgebra::Real/$function>\n\n";
5 my $decl = deletescip-perl cpan PDL-LinearAlgebra 0.437 main/delete().($hash{_decl}) || '';
6 $decl =~ s/\$GENERIC\(\)\s*\*/void */g; # dodge float vs float complex ptr problem
7 $hash{Code} = "$decl\n$hash{Code}";
8 $hash{Pars} = joinscip-perl cpan PDL-LinearAlgebra 0.437 main/join(). ';', mapscip-perl cpan PDL-LinearAlgebra 0.437 main/map(). s/\(2(?:,|(?=\)))/(/ ? "complex $_" : $_scip-perl cpan PDL-LinearAlgebra 0.437 main/$_., splitscip-perl cpan PDL-LinearAlgebra 0.437 main/split(). /;/, $hash{Pars};
9 if ($hash{RedoDimsCode}) {
10 # decrement numbers being compared to, or dims offsets
11 $hash{RedoDimsCode} =~ s/(>\s*)(\d+)|(\[\s*)(\d+)(\s*\])/
12 $1
13 ? $1.($2 - 1)
14 : $3.($4 - 1).$5
15 /ge;
16 }
17 pp_defscip-perl cpan PDL-LinearAlgebra 0.437 main/pp_def().("c$function", %hash);
18 }