QUIP/QUIPMethod.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
calculate_xQxT
2.0
calculate_hermitian
2.0
CRAP 2.0
1 package Evo::QUIP::QUIPMethod;
2  
3 use Evo::QUIP::MatrixNxN;
4  
5 sub new {
6 my ($class, $nrows, $ncols) = @_;
7  
8 my $self = { Q => Evo::QUIP::MatrixNxN->new($nrows, $ncols),
9 v => BinaryVectorN->new($nrows), };
10  
11 $class = ref($class) || $class;
12  
13 bless $self, $class;
14 }
15  
16 ### calculation of some sort of Nash equilibrium
17 sub calculate_xQxT {
18 my ($self) = @_;
19  
20 }
21  
22 ### calculation/setting Q itself
23 sub calculate_hermitian {
24 my ($self) = @_;
25  
26 }
27  
28 1;