public interface corr
      Pearson correlation of array elements
(Specification)
        Functions
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              complex(kind=dp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              complex(kind=sp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=sp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int16),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int32),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int64),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int8),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              real(kind=dp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              real(kind=sp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=sp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              complex(kind=dp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    complex(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              complex(kind=sp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    complex(kind=sp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int16),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int32),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int64),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int8),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              real(kind=dp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              real(kind=sp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in), | 
              optional |             
              
             | 
            :: | 
            mask | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=sp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              complex(kind=dp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              complex(kind=sp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=sp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int16),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int32),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int64),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int8),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              real(kind=dp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              real(kind=sp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=sp)
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              complex(kind=dp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:,:) | 
            
                
             | 
        
    
  
    
    Return Value
    complex(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              complex(kind=sp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:,:) | 
            
                
             | 
        
    
  
    
    Return Value
    complex(kind=sp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int16),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:,:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int32),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:,:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int64),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:,:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              integer(kind=int8),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:,:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              real(kind=dp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:,:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=dp), (merge(size(x,1),size(x,2),mask=1
    
    
     
   
            
    
    
        
  Arguments
      
    
      
        | Type | 
Intent | Optional |         Attributes | 
         | 
        Name | 
         | 
    
    
        
            | 
              
              real(kind=sp),
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            x(:,:) | 
            
                
             | 
        
        
            | 
              
              integer,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            dim | 
            
                
             | 
        
        
            | 
              
              logical,
             | 
intent(in) | 
               |             
              
             | 
            :: | 
            mask(:,:) | 
            
                
             | 
        
    
  
    
    Return Value
    real(kind=sp), (merge(size(x,1),size(x,2),mask=1