public interface replace
   returns a new vector replacing elements in the input vector.
     
     
     
   Module Procedures
      
  
private function replace_i1(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | integer(kind=i1), | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | integer(kind=i1) | 
 | 
   |    | :: | 
  val1 |  | 
  | integer(kind=i1) | 
 | 
   |    | :: | 
  val2 |  | 
Return Value integer(kind=i1),dimension(:), allocatable
  
   
   
      
  
private function replace_i2(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | integer(kind=i2), | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | integer(kind=i2) | 
 | 
   |    | :: | 
  val1 |  | 
  | integer(kind=i2) | 
 | 
   |    | :: | 
  val2 |  | 
Return Value integer(kind=i2),dimension(:), allocatable
  
   
   
      
  
private function replace_i4(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | integer(kind=i4), | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | integer(kind=i4) | 
 | 
   |    | :: | 
  val1 |  | 
  | integer(kind=i4) | 
 | 
   |    | :: | 
  val2 |  | 
Return Value integer(kind=i4),dimension(:), allocatable
  
   
   
      
  
private function replace_i8(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | integer(kind=i8), | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | integer(kind=i8) | 
 | 
   |    | :: | 
  val1 |  | 
  | integer(kind=i8) | 
 | 
   |    | :: | 
  val2 |  | 
Return Value integer(kind=i8),dimension(:), allocatable
  
   
   
      
  
private function replace_r4(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | real(kind=r4), | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | real(kind=r4) | 
 | 
   |    | :: | 
  val1 |  | 
  | real(kind=r4) | 
 | 
   |    | :: | 
  val2 |  | 
Return Value real(kind=r4),dimension(:), allocatable
  
   
   
      
  
private function replace_r8(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | real(kind=r8), | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | real(kind=r8) | 
 | 
   |    | :: | 
  val1 |  | 
  | real(kind=r8) | 
 | 
   |    | :: | 
  val2 |  | 
Return Value real(kind=r8),dimension(:), allocatable
  
   
   
      
  
private function replace_r16(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | real(kind=r16), | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | real(kind=r16) | 
 | 
   |    | :: | 
  val1 |  | 
  | real(kind=r16) | 
 | 
   |    | :: | 
  val2 |  | 
Return Value real(kind=r16),dimension(:), allocatable
  
   
   
      
  
private function replace_c4(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | complex(kind=r4), | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | complex(kind=r4) | 
 | 
   |    | :: | 
  val1 |  | 
  | complex(kind=r4) | 
 | 
   |    | :: | 
  val2 |  | 
Return Value complex(kind=r4),dimension(:), allocatable
  
   
   
      
  
private function replace_c8(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | complex(kind=r8), | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | complex(kind=r8) | 
 | 
   |    | :: | 
  val1 |  | 
  | complex(kind=r8) | 
 | 
   |    | :: | 
  val2 |  | 
Return Value complex(kind=r8),dimension(:), allocatable
  
   
   
      
  
private function replace_c16(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | complex(kind=r16), | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | complex(kind=r16) | 
 | 
   |    | :: | 
  val1 |  | 
  | complex(kind=r16) | 
 | 
   |    | :: | 
  val2 |  | 
Return Value complex(kind=r16),dimension(:), allocatable
  
   
   
      
  
private function replace_str(vec, val1, val2) result(res)
  
           
Arguments
      
| Type | Intent | Optional | Attributes |  | Name |  | 
  | character, | 
intent(in), | 
   |   dimension(:), allocatable | :: | 
  vec |  | 
  | character | 
 | 
   |    | :: | 
  val1 |  | 
  | character | 
 | 
   |    | :: | 
  val2 |  | 
Return Value character,dimension(:), allocatable