parameters: (self, representation: 'SampledField', keep_extrapolation=False)
return_statement: return representation._op1(lambda old: extrap if isinstance(old, math.extrapolation.Extrapolation) else resampled)
docstring: Samples this field at the sample points of `representation`.
          The result will approximate the values of this field on the data structure of `representation`.
          
          Unlike `Field.sample()`, this method returns a `Field` object, not a `Tensor`.
  
          Operator alias:
              `self @ representation`.
  
          See Also:
              `sample()`, `reduce_sample()`, [Resampling overview](https://tum-pbs.github.io/PhiFlow/Fields.html#resampling-fields).
  
          Args:
              representation: Field object defining the sample points. The values of `representation` are ignored.
              keep_extrapolation: Only available if `self` is a `SampledField`.
                  If True, the resampled field will inherit the extrapolation from `self` instead of `representation`.
                  This can result in non-compatible value tensors for staggered grids where the tensor size depends on the extrapolation type.
  
          Returns:
              Field object of same type as `representation`
docstring_summary: Samples this field at the sample points of `representation`.
          The result will approximate the values of this field on the data structure of `representation`.
          
          Unlike `Field.sample()`, this method returns a `Field` object, not a `Tensor`.
docstring_tokens: Samples this field at the sample points of representation . The result will approximate the values of this field on the data structure of representation . Unlike Field . sample () this method returns a Field object not a Tensor .
function: def at(self, representation: 'SampledField', keep_extrapolation=False) -> 'SampledField':
          """
          Samples this field at the sample points of `representation`.
          The result will approximate the values of this field on the data structure of `representation`.
          
          Unlike `Field.sample()`, this method returns a `Field` object, not a `Tensor`.
  
          Operator alias:
              `self @ representation`.
  
          See Also:
              `sample()`, `reduce_sample()`, [Resampling overview](https://tum-pbs.github.io/PhiFlow/Fields.html#resampling-fields).
  
          Args:
              representation: Field object defining the sample points. The values of `representation` are ignored.
              keep_extrapolation: Only available if `self` is a `SampledField`.
                  If True, the resampled field will inherit the extrapolation from `self` instead of `representation`.
                  This can result in non-compatible value tensors for staggered grids where the tensor size depends on the extrapolation type.
  
          Returns:
              Field object of same type as `representation`
          """
          resampled = reduce_sample(self, representation.elements)
          extrap = self.extrapolation if isinstance(self, SampledField) and keep_extrapolation else representation.extrapolation
          return representation._op1(lambda old: extrap if isinstance(old, math.extrapolation.Extrapolation) else resampled)
function_tokens: def at ( self , representation : 'SampledField' , keep_extrapolation = False ) -> 'SampledField' : resampled = reduce_sample ( self , representation . elements ) extrap = self . extrapolation if isinstance ( self , SampledField ) and keep_extrapolation else representation . extrapolation return representation . _op1 ( lambda old : extrap if isinstance ( old , math . extrapolation . Extrapolation ) else resampled )