line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Math::Matrix::Banded; |
2
|
8
|
|
|
8
|
|
63719
|
use 5.014; |
|
8
|
|
|
|
|
29
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=pod |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
Math::Matrix::Banded - non-zero entries confined to a diagonal band |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Version 0.004 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our $VERSION = '0.004'; |
17
|
|
|
|
|
|
|
|
18
|
8
|
|
|
8
|
|
3645
|
use Math::Matrix::Banded::Square; |
|
8
|
|
|
|
|
31
|
|
|
8
|
|
|
|
|
281
|
|
19
|
8
|
|
|
8
|
|
4031
|
use Math::Matrix::Banded::Rectangular; |
|
8
|
|
|
|
|
20
|
|
|
8
|
|
|
|
|
806
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub new { |
23
|
30
|
|
|
30
|
1
|
32506
|
my ($class, %args) = @_; |
24
|
|
|
|
|
|
|
|
25
|
30
|
100
|
66
|
|
|
158
|
if (!exists($args{M}) and exists($args{N})) { |
26
|
14
|
|
|
|
|
265
|
return Math::Matrix::Banded::Square->new(%args); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
else { |
29
|
16
|
|
|
|
|
345
|
return Math::Matrix::Banded::Rectangular->new(%args); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |