.pptest/sub/Tests.pm

filter: Statementstmt 100% 35 / 35 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.2% 40 / 42 CC 1 SCAR 0.0
CC
1
Cov
97%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« .pptest/sub/tests.pd ↑ Summary blib/lib/PDL/IO/Pnm.pm »
1 #
2 # GENERATED WITH PDL::PP from tests.pd! Don't modify!
3 #
4 package PDL::Tests;
5  
6 1 our @EXPORT_OK = qw(foop foop1 fsumover nsumover gelsd succ gl_arrows polyfill_pp rice_compress output_op output_op2 output_op3 incomp_dim typem incomp_in incomp_out index_prec diff_central testinc testinc2 or2 logadd ftr ftrPM );
7 1 our %EXPORT_TAGS = (Func=>\@EXPORT_OK);
8  
9 2 ▶use PDL::Core;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use PDL::Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use DynaLoader;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13  
14 1 our $VERSION = '0.01';
15 1 our @ISA = ( 'PDL::Exporter','DynaLoader' );
16 1 push @PDL::Core::PP, __PACKAGE__;
17 1 bootstrap PDL::Tests $VERSION;
18  
19  
20  
21  
22  
23  
24  
25 =head1 DEPRECATION NOTICE
26  
27 PDL::Tests is deprecated. Please use PDL::Test::Fancy instead.
28 A warning will be generated at runtime upon a C<use> of this module
29 This warning can be suppressed by setting the PDL_SUPPRESS_DEPRECATION_WARNING__PDL_TESTS
30 environment variable
31  
32 =cut
33  
34  
35  
36  
37 warn "PDL::Tests is deprecated. Please use PDL::Test::Fancy instead.
38 This module will be removed in the future; please update your code.
39 Set the environment variable PDL_SUPPRESS_DEPRECATION_WARNING__PDL_TESTS
40 to suppress this warning
41 1 ▶" unless $ENV{PDL_SUPPRESS_DEPRECATION_WARNING__PDL_TESTS};
Branch: 1 branch
BranchTrueFalseTotal
unless $ENV{"PDL_SUPPRESS_DEPRECATION_WARNING__PDL_TESTS"} 1 0 1
42  
43  
44  
45  
46  
47  
48 =head1 FUNCTIONS
49  
50 =cut
51  
52  
53  
54  
55  
56  
57 =head2 foop
58  
59 =for sig
60  
61 Signature: (byte [phys]a1(n); byte [o,phys]b(n))
62 Types: (byte)
63  
64 =for usage
65  
66 $b = foop($a1);
67 foop($a1, $b); # all arguments given
68 $b = $a1->foop; # method call
69 $a1->foop($b);
70  
71 =for ref
72  
73 Sample standard deviation.
74  
75 =cut
76
77  
78 =pod
79  
80 Broadcasts over its inputs.
81  
82 =for bad
83  
84 C<foop> does not process bad values.
85 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
86  
87 =cut
88  
89  
90  
91  
92 1 *foop = \&PDL::foop;
93  
94  
95  
96  
97  
98  
99 =head2 foop1
100  
101 =for sig
102  
103 Signature: (byte a1(z); byte [o,phys]b(n))
104 Types: (byte)
105  
106 =for usage
107  
108 $b = foop1($a1);
109 foop1($a1, $b); # all arguments given
110 $b = $a1->foop1; # method call
111 $a1->foop1($b);
112  
113 =for ref
114  
115 info not available
116  
117 =pod
118  
119 Broadcasts over its inputs.
120  
121 =for bad
122  
123 C<foop1> does not process bad values.
124 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
125  
126 =cut
127  
128  
129  
130  
131 1 *foop1 = \&PDL::foop1;
132  
133  
134  
135  
136  
137  
138 =head2 fsumover
139  
140 =for sig
141  
142 Signature: (a1(n); float [o]b())
143 Types: (double)
144  
145 =for usage
146  
147 $b = fsumover($a1);
148 fsumover($a1, $b); # all arguments given
149 $b = $a1->fsumover; # method call
150 $a1->fsumover($b);
151  
152 =for ref
153  
154 info not available
155  
156 =pod
157  
158 Broadcasts over its inputs.
159  
160 =for bad
161  
162 C<fsumover> does not process bad values.
163 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
164  
165 =cut
166  
167  
168  
169  
170 1 *fsumover = \&PDL::fsumover;
171  
172  
173  
174  
175  
176  
177 =head2 nsumover
178  
179 =for sig
180  
181 Signature: (a(n); int+ [o]b())
182 Types: (byte short ushort long float double)
183  
184 =for usage
185  
186 $b = nsumover($a);
187 nsumover($a, $b); # all arguments given
188 $b = $a->nsumover; # method call
189 $a->nsumover($b);
190  
191 =for ref
192  
193 info not available
194  
195 =pod
196  
197 Broadcasts over its inputs.
198  
199 =for bad
200  
201 C<nsumover> does not process bad values.
202 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
203  
204 =cut
205  
206  
207  
208  
209 1 *nsumover = \&PDL::nsumover;
210  
211  
212  
213  
214  
215  
216 =head2 gelsd
217  
218 =for sig
219  
220 Signature: ([io,phys]A(m,n); [io,phys]B(p,q); [phys]rcond(); [o,phys]s(r=CALC(PDLMIN($SIZE(m),$SIZE(n)))); int [o,phys]rank();int [o,phys]info())
221 Types: (float)
222  
223 =for usage
224  
225 ($s, $rank, $info) = gelsd($A, $B, $rcond);
226 gelsd($A, $B, $rcond, $s, $rank, $info); # all arguments given
227 ($s, $rank, $info) = $A->gelsd($B, $rcond); # method call
228 $A->gelsd($B, $rcond, $s, $rank, $info);
229  
230 =for ref
231  
232 info not available
233  
234 =pod
235  
236 Broadcasts over its inputs.
237  
238 =for bad
239  
240 C<gelsd> does not process bad values.
241 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
242  
243 =cut
244  
245  
246  
247  
248 1 *gelsd = \&PDL::gelsd;
249  
250  
251  
252  
253  
254  
255 =head2 succ
256  
257 =for sig
258  
259 Signature: (a(); [o] b())
260 Types: (float)
261  
262 =for usage
263  
264 $b = succ($a);
265 succ($a, $b); # all arguments given
266 $b = $a->succ; # method call
267 $a->succ($b);
268  
269 =for ref
270  
271 info not available
272  
273 =pod
274  
275 Broadcasts over its inputs.
276  
277 =for bad
278  
279 C<succ> does not process bad values.
280 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
281  
282 =cut
283  
284  
285  
286  
287 1 *succ = \&PDL::succ;
288  
289  
290  
291  
292  
293  
294 =head2 gl_arrows
295  
296 =for sig
297  
298 Signature: (coords(tri=3,n); int indsa(); int indsb(); float headlen; float width)
299 Types: (float)
300  
301 =for usage
302  
303 gl_arrows($coords, $indsa, $indsb, $headlen, $width); # all arguments given
304 $coords->gl_arrows($indsa, $indsb, $headlen, $width); # method call
305  
306 =for ref
307  
308 info not available
309  
310 =pod
311  
312 Broadcasts over its inputs.
313  
314 =for bad
315  
316 C<gl_arrows> does not process bad values.
317 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
318  
319 =cut
320  
321  
322  
323  
324 1 *gl_arrows = \&PDL::gl_arrows;
325  
326  
327  
328  
329  
330  
331 =head2 polyfill_pp
332  
333 =for sig
334  
335 Signature: (int [io] im(m,n); float ps(two=2,np); int col())
336 Types: (float)
337  
338 =for usage
339  
340 polyfill_pp($im, $ps, $col); # all arguments given
341 $im->polyfill_pp($ps, $col); # method call
342  
343 =for ref
344  
345 info not available
346  
347 =pod
348  
349 Broadcasts over its inputs.
350  
351 =for bad
352  
353 C<polyfill_pp> does not process bad values.
354 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
355  
356 =cut
357  
358  
359  
360  
361 1 *polyfill_pp = \&PDL::polyfill_pp;
362  
363  
364  
365  
366  
367  
368 =head2 rice_compress
369  
370 =for sig
371  
372 Signature: (in(n); [o]out(m); int[o]len(); lbuf(n))
373 Types: (byte short ushort long)
374  
375 =for usage
376  
377 ($out, $len) = rice_compress($in, $lbuf);
378 rice_compress($in, $out, $len, $lbuf); # all arguments given
379 ($out, $len) = $in->rice_compress($lbuf); # method call
380 $in->rice_compress($out, $len, $lbuf);
381  
382 =for ref
383  
384 info not available
385  
386 =pod
387  
388 Broadcasts over its inputs.
389  
390 =for bad
391  
392 C<rice_compress> does not process bad values.
393 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
394  
395 =cut
396  
397  
398  
399  
400 1 *rice_compress = \&PDL::rice_compress;
401  
402  
403  
404  
405  
406  
407 =head2 output_op
408  
409 =for sig
410  
411 Signature: (in(n=2); [o] PDL_Anyval v0; [o] PDL_Anyval v1)
412 Types: (float)
413  
414 =for usage
415  
416 ($v0, $v1) = output_op($in);
417 output_op($in, $v0, $v1); # all arguments given
418 ($v0, $v1) = $in->output_op; # method call
419 $in->output_op($v0, $v1);
420  
421 =for ref
422  
423 info not available
424  
425 =pod
426  
427 Broadcasts over its inputs.
428  
429 =for bad
430  
431 C<output_op> does not process bad values.
432 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
433  
434 =cut
435  
436  
437  
438  
439 1 *output_op = \&PDL::output_op;
440  
441  
442  
443  
444  
445  
446 =head2 output_op2
447  
448 =for sig
449  
450 Signature: (in(n=2); [o] out(); [o] PDL_Anyval v0; [o] PDL_Anyval v1)
451 Types: (float)
452  
453 =for usage
454  
455 ($out, $v0, $v1) = output_op2($in);
456 output_op2($in, $out, $v0, $v1); # all arguments given
457 ($out, $v0, $v1) = $in->output_op2; # method call
458 $in->output_op2($out, $v0, $v1);
459  
460 =for ref
461  
462 info not available
463  
464 =pod
465  
466 Broadcasts over its inputs.
467  
468 =for bad
469  
470 C<output_op2> does not process bad values.
471 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
472  
473 =cut
474  
475  
476  
477  
478 1 *output_op2 = \&PDL::output_op2;
479  
480  
481  
482  
483  
484  
485 =head2 output_op3
486  
487 =for sig
488  
489 Signature: (in(n=2); [o] out(); [o] PDL_Anyval v0; [o] PDL_Anyval v1)
490 Types: (float)
491  
492 =for usage
493  
494 ($out, $v0, $v1) = output_op3($in);
495 output_op3($in, $out, $v0, $v1); # all arguments given
496 ($out, $v0, $v1) = $in->output_op3; # method call
497 $in->output_op3($out, $v0, $v1);
498  
499 =for ref
500  
501 info not available
502  
503 =pod
504  
505 Broadcasts over its inputs.
506  
507 =for bad
508  
509 C<output_op3> does not process bad values.
510 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
511  
512 =cut
513  
514  
515  
516  
517 1 ▶sub PDL::output_op3 { goto &PDL::_output_op3_int }
Subroutine output_op3: called CC=1 SCAR=0.0
Pod undocumented
518  
519  
520 1 *output_op3 = \&PDL::output_op3;
521  
522  
523  
524  
525  
526  
527 =head2 incomp_dim
528  
529 =for sig
530  
531 Signature: ([o] a(); PDL_Indx d[])
532 Types: (float)
533  
534 =for usage
535  
536 $a = incomp_dim($d);
537 incomp_dim($a, $d); # all arguments given
538  
539 =for ref
540  
541 info not available
542  
543 =pod
544  
545 Broadcasts over its inputs.
546  
547 =for bad
548  
549 C<incomp_dim> does not process bad values.
550 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
551  
552 =cut
553  
554  
555  
556  
557 1 *incomp_dim = \&PDL::incomp_dim;
558  
559  
560  
561  
562  
563  
564 =head2 typem
565  
566 =for sig
567  
568 Signature: (int [o] out(); [io] NV_ADD1 v1; NV_HR v2; thing *ptr)
569 Types: (float)
570  
571 =for usage
572  
573 $out = typem($v1, $v2, $ptr);
574 typem($out, $v1, $v2, $ptr); # all arguments given
575  
576 =for ref
577  
578 info not available
579  
580 =pod
581  
582 Broadcasts over its inputs.
583  
584 =for bad
585  
586 C<typem> does not process bad values.
587 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
588  
589 =cut
590  
591  
592  
593  
594 1 *typem = \&PDL::typem;
595  
596  
597  
598  
599  
600  
601 =head2 incomp_in
602  
603 =for sig
604  
605 Signature: ([o] out(); pdl *ins[])
606 Types: (float)
607  
608 =for usage
609  
610 $out = incomp_in($ins);
611 incomp_in($out, $ins); # all arguments given
612  
613 =for ref
614  
615 info not available
616  
617 =pod
618  
619 Broadcasts over its inputs.
620  
621 =for bad
622  
623 C<incomp_in> does not process bad values.
624 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
625  
626 =cut
627  
628  
629  
630  
631 1 *incomp_in = \&PDL::incomp_in;
632  
633  
634  
635  
636  
637  
638 =head2 incomp_out
639  
640 =for sig
641  
642 Signature: (in(n); PDL_Indx howmany; [o] pdl *outs[])
643 Types: (sbyte byte short ushort long ulong indx ulonglong longlong
644 float double ldouble cfloat cdouble cldouble)
645  
646 =for usage
647  
648 $outs = incomp_out($in, $howmany);
649 incomp_out($in, $howmany, $outs); # all arguments given
650 $outs = $in->incomp_out($howmany); # method call
651 $in->incomp_out($howmany, $outs);
652  
653 =for ref
654  
655 info not available
656  
657 =pod
658  
659 Broadcasts over its inputs.
660  
661 =for bad
662  
663 C<incomp_out> processes bad values.
664 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
665  
666 =cut
667  
668  
669  
670  
671 1 *incomp_out = \&PDL::incomp_out;
672  
673  
674  
675  
676  
677  
678 =head2 index_prec
679  
680 =for sig
681  
682 Signature: (in(n); [o]out())
683 Types: (float)
684  
685 =for usage
686  
687 $out = index_prec($in);
688 index_prec($in, $out); # all arguments given
689 $out = $in->index_prec; # method call
690 $in->index_prec($out);
691  
692 =for ref
693  
694 info not available
695  
696 =pod
697  
698 Broadcasts over its inputs.
699  
700 =for bad
701  
702 C<index_prec> does not process bad values.
703 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
704  
705 =cut
706  
707  
708  
709  
710 1 *index_prec = \&PDL::index_prec;
711  
712  
713  
714  
715  
716  
717 =head2 diff_central
718  
719 =for sig
720  
721 Signature: (double x(); double [o] res(); SV* function)
722 Types: (float)
723  
724 =for usage
725  
726 $res = diff_central($x, $function);
727 diff_central($x, $res, $function); # all arguments given
728 $res = $x->diff_central($function); # method call
729 $x->diff_central($res, $function);
730  
731 =for ref
732  
733 info not available
734  
735 =pod
736  
737 Broadcasts over its inputs.
738  
739 =for bad
740  
741 C<diff_central> does not process bad values.
742 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
743  
744 =cut
745  
746  
747  
748  
749 1 *diff_central = \&PDL::diff_central;
750  
751  
752  
753  
754  
755 #line 258 "tests.pd"
756  
757 #line 258 "tests.pd"
758 sub myfunc { }
759 #line 760 "Tests.pm"
760  
761  
762 =head2 testinc
763  
764 =for sig
765  
766 Signature: (a(); [o] b())
767 Types: (float)
768  
769 =for usage
770  
771 $b = testinc($a);
772 testinc($a, $b); # all arguments given
773 $b = $a->testinc; # method call
774 $a->testinc($b);
775  
776 =for ref
777  
778 info not available
779  
780 =pod
781  
782 Broadcasts over its inputs.
783  
784 =for bad
785  
786 C<testinc> does not process bad values.
787 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
788  
789 =cut
790  
791  
792  
793  
794 *testinc = \&PDL::testinc;
795  
796  
797  
798  
799  
800  
801 =head2 testinc2
802  
803 =for sig
804  
805 Signature: (a(); [o] b())
806 Types: (float)
807  
808 =for usage
809  
810 $b = testinc2($a);
811 testinc2($a, $b); # all arguments given
812 $b = $a->testinc2; # method call
813 $a->testinc2($b);
814  
815 =for ref
816  
817 info not available
818  
819 =pod
820  
821 Broadcasts over its inputs.
822  
823 =for bad
824  
825 C<testinc2> does not process bad values.
826 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
827  
828 =cut
829  
830  
831  
832  
833 *testinc2 = \&PDL::testinc2;
834  
835  
836  
837  
838  
839  
840 =head2 or2
841  
842 =for sig
843  
844 Signature: (a(); b(); [o]c(); int swap; char *ign; int ign2)
845 Types: (sbyte byte short ushort long ulong indx ulonglong longlong)
846  
847 =for usage
848  
849 $c = or2($a, $b); # using defaults of swap=0, ign="", ign2=0
850 $c = or2($a, $b, $swap);
851 $c = or2($a, $b, $swap, $ign);
852 $c = or2($a, $b, $swap, $ign, $ign2);
853 or2($a, $b, $swap, $ign, $ign2, $c); # all arguments given
854 $c = $a->or2($b); # method call
855 $c = $a->or2($b, $swap);
856 $c = $a->or2($b, $swap, $ign);
857 $c = $a->or2($b, $swap, $ign, $ign2);
858 $a->or2($b, $swap, $ign, $ign2, $c);
859  
860 =for ref
861  
862 info not available
863  
864 =pod
865  
866 Broadcasts over its inputs.
867  
868 =for bad
869  
870 C<or2> does not process bad values.
871 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
872  
873 =cut
874  
875  
876  
877  
878 *or2 = \&PDL::or2;
879  
880  
881  
882  
883  
884  
885 =head2 logadd
886  
887 =for sig
888  
889 Signature: (a(); b(); [o]c())
890 Types: (float double ldouble)
891  
892 =for usage
893  
894 $c = logadd($a, $b);
895 logadd($a, $b, $c); # all arguments given
896 $c = $a->logadd($b); # method call
897 $a->logadd($b, $c);
898 $a->inplace->logadd($b); # can be used inplace
899 logadd($a->inplace, $b);
900  
901 =for ref
902  
903 info not available
904  
905 =pod
906  
907 Can operate inplace with C<a> as output C<c>.
908 Broadcasts over its inputs.
909  
910 =for bad
911  
912 C<logadd> does not process bad values.
913 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
914  
915 =cut
916  
917  
918  
919  
920 *logadd = \&PDL::logadd;
921  
922  
923  
924  
925  
926  
927 =head2 ftr
928  
929 =for sig
930  
931 Signature: (a(); char* filename; int Loops; int Delay)
932 Types: (float)
933  
934 =for usage
935  
936 ftr($a, $filename, $Loops, $Delay); # all arguments given
937 $a->ftr($filename, $Loops, $Delay); # method call
938  
939 =for ref
940  
941 info not available
942  
943 =pod
944  
945 Broadcasts over its inputs.
946  
947 =for bad
948  
949 C<ftr> does not process bad values.
950 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
951  
952 =cut
953  
954  
955  
956  
957 *ftr = \&PDL::ftr;
958  
959  
960  
961  
962  
963  
964 =head2 ftrPM
965  
966 =for sig
967  
968 Signature: (a(); [o]b())
969 Types: (float)
970  
971 =for usage
972  
973 $b = ftrPM($a);
974 ftrPM($a, $b); # all arguments given
975 $b = $a->ftrPM; # method call
976 $a->ftrPM($b);
977  
978 =for ref
979  
980 info not available
981  
982 =pod
983  
984 Broadcasts over its inputs.
985  
986 =for bad
987  
988 C<ftrPM> does not process bad values.
989 It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.
990  
991 =cut
992  
993  
994  
995  
996 sub PDL::ftrPM {
997 my ($a, $b) = @_;
998 $b //= PDL->null;
999 PDL::_ftrPM_int($a, $b);
1000 $b;
1001 }
1002  
1003  
1004  
1005 *ftrPM = \&PDL::ftrPM;
1006  
1007  
1008  
1009  
1010  
1011  
1012  
1013 # Exit with OK status
1014  
1015 1;
« .pptest/sub/tests.pd ↑ Summary blib/lib/PDL/IO/Pnm.pm »