original_docstring: 
      Bnm = ReflectSH(Bnm, xFlag, yFlag, zFlag)   
      
      Reflect an Spherical Harmonic representation of a sound-field in 1 to 3 cartesian axes.
      	
      Argumments:
      Bnm       Vector of Spherical Harmonic weights. Must have (Order+1)^2 entries, where Order is an integer.
      xFlag		Boolean indicating whether to flip in the x-direction
      yFlag		Boolean indicating whether to flip in the y-direction
      zFlag		Boolean indicating whether to flip in the z-direction
      
docstring: Bnm = ReflectSH(Bnm, xFlag, yFlag, zFlag)
  Reflect an Spherical Harmonic representation of a sound-field in 1 to 3 cartesian axes.
  
  Bnm       Vector of Spherical Harmonic weights. Must have (Order+1)^2 entries, where Order is an integer.
  xFlag               Boolean indicating whether to flip in the x-direction
  yFlag               Boolean indicating whether to flip in the y-direction
  zFlag               Boolean indicating whether to flip in the z-direction
docstring_tokens: Bnm = ReflectSH ( Bnm xFlag yFlag zFlag ) Reflect an Spherical Harmonic representation of a sound - field in 1 to 3 cartesian axes . Bnm Vector of Spherical Harmonic weights . Must have ( Order + 1 ) ^2 entries where Order is an integer . xFlag Boolean indicating whether to flip in the x - direction yFlag Boolean indicating whether to flip in the y - direction zFlag Boolean indicating whether to flip in the z - direction
code: def reflect_sh(Bnm, xFlag, yFlag, zFlag):
      """
      Bnm = ReflectSH(Bnm, xFlag, yFlag, zFlag)   
      
      Reflect an Spherical Harmonic representation of a sound-field in 1 to 3 cartesian axes.
      	
      Argumments:
      Bnm       Vector of Spherical Harmonic weights. Must have (Order+1)^2 entries, where Order is an integer.
      xFlag		Boolean indicating whether to flip in the x-direction
      yFlag		Boolean indicating whether to flip in the y-direction
      zFlag		Boolean indicating whether to flip in the z-direction
      """
  
  	# Get lists of n and m values:
      (m, n) = ind2subSH(np.arange(Bnm.size))
  
  	# Reflecting in Z:
      if zFlag:
          Bnm = Bnm * ((-1)**(n+m)).reshape((np.size(m),1))
  
  	# Reflecting in X:
      if xFlag:
          Bnm = Bnm * ((-1)**m).reshape((np.size(m),1))
  
  	# Reflecting in X or Y:
      if xFlag**yFlag: # XOR
          #for n in range(int(np.ceil(np.sqrt(Bnm.size)))-1):
          for n in np.arange(max(n)+1):
              i = sub2indSH(np.arange(-n,n+1),n).astype(int)
              Bnm[i,0] = np.flip(Bnm[i,0])
  	
      return Bnm
code_tokens: def reflect_sh ( Bnm , xFlag , yFlag , zFlag ) : ( m , n ) = ind2subSH ( np . arange ( Bnm . size ) ) if zFlag : Bnm = Bnm * ( ( - 1 ) ** ( n + m ) ) . reshape ( ( np . size ( m ) , 1 ) ) if xFlag : Bnm = Bnm * ( ( - 1 ) ** m ) . reshape ( ( np . size ( m ) , 1 ) ) if xFlag ** yFlag : for n in np . arange ( max ( n ) + 1 ) : i = sub2indSH ( np . arange ( - n , n + 1 ) , n ) . astype ( int ) Bnm [ i , 0 ] = np . flip ( Bnm [ i , 0 ] ) return Bnm
short_docstring: Bnm = ReflectSH(Bnm, xFlag, yFlag, zFlag)
  Reflect an Spherical Harmonic representation of a sound-field in 1 to 3 cartesian axes.
short_docstring_tokens: Bnm = ReflectSH ( Bnm xFlag yFlag zFlag ) Reflect an Spherical Harmonic representation of a sound - field in 1 to 3 cartesian axes .
comment: """
      Bnm = ReflectSH(Bnm, xFlag, yFlag, zFlag)   
      
      Reflect an Spherical Harmonic representation of a sound-field in 1 to 3 cartesian axes.
      	
      Argumments:
      Bnm       Vector of Spherical Harmonic weights. Must have (Order+1)^2 entries, where Order is an integer.
      xFlag		Boolean indicating whether to flip in the x-direction
      yFlag		Boolean indicating whether to flip in the y-direction
      zFlag		Boolean indicating whether to flip in the z-direction
      """$SEP$# Get lists of n and m values:$SEP$# Reflecting in Z:$SEP$# Reflecting in X:$SEP$# Reflecting in X or Y:$SEP$# XOR$SEP$#for n in range(int(np.ceil(np.sqrt(Bnm.size)))-1):