private Matrix calculateV ( IBasis basis ) { int size = basis . getSize ( ) ; Matrix V = new Matrix ( size , size ) ; int i , j ; for ( i = 0 ; i < size ; i ++ ) for ( j = 0 ; j < size ; j ++ ) V . matrix [ i ] [ j ] = basis . calcV ( i , j ) ; return V ; }
Calculates the matrix for the potential matrix