original_docstring: 
      Returns a matrix that expresses the non-zero entries of the blurred mapping matrix for an efficient construction of
      the curvature matrix `F` (see Warren & Dye 2003).
  
      This is used for models where the blurred mapping matrix does not change, but the noise-map of the values that
      are used to construct that blurred mapping matrix do change.
  
      Parameters
      -----------
      mapping_matrix
          The matrix representing the mappings (these could be blurred or transfomed) between sub-grid pixels and
          pixelization pixels.
      
docstring: Returns a matrix that expresses the non-zero entries of the blurred mapping matrix for an efficient construction of
  the curvature matrix `F` .
  
  This is used for models where the blurred mapping matrix does not change, but the noise-map of the values that
  are used to construct that blurred mapping matrix do change.
  
  Parameters
  
  mapping_matrix
  The matrix representing the mappings (these could be blurred or transfomed) between sub-grid pixels and
  pixelization pixels.
docstring_tokens: Returns a matrix that expresses the non - zero entries of the blurred mapping matrix for an efficient construction of the curvature matrix ` F ` . This is used for models where the blurred mapping matrix does not change but the noise - map of the values that are used to construct that blurred mapping matrix do change . Parameters mapping_matrix The matrix representing the mappings ( these could be blurred or transfomed ) between sub - grid pixels and pixelization pixels .
code: def curvature_matrix_preload_from(
      mapping_matrix: np.ndarray, mapping_matrix_threshold=1.0e-8
  ) -> np.ndarray:
      """
      Returns a matrix that expresses the non-zero entries of the blurred mapping matrix for an efficient construction of
      the curvature matrix `F` (see Warren & Dye 2003).
  
      This is used for models where the blurred mapping matrix does not change, but the noise-map of the values that
      are used to construct that blurred mapping matrix do change.
  
      Parameters
      -----------
      mapping_matrix
          The matrix representing the mappings (these could be blurred or transfomed) between sub-grid pixels and
          pixelization pixels.
      """
  
      curvature_matrix_counts = np.zeros(mapping_matrix.shape[0])
  
      for mask_1d_index in range(mapping_matrix.shape[0]):
          for pix_index in range(mapping_matrix.shape[1]):
              if mapping_matrix[mask_1d_index, pix_index] > mapping_matrix_threshold:
                  curvature_matrix_counts[mask_1d_index] += 1
  
      preload_max = np.max(curvature_matrix_counts)
  
      curvature_matrix_preload = np.zeros((mapping_matrix.shape[0], int(preload_max)))
  
      for mask_1d_index in range(mapping_matrix.shape[0]):
          index = 0
          for pix_index in range(mapping_matrix.shape[1]):
              if mapping_matrix[mask_1d_index, pix_index] > mapping_matrix_threshold:
                  curvature_matrix_preload[mask_1d_index, index] = pix_index
                  index += 1
  
      return curvature_matrix_preload, curvature_matrix_counts
code_tokens: def curvature_matrix_preload_from ( mapping_matrix : np . ndarray , mapping_matrix_threshold = 1.0e-8 ) -> np . ndarray : curvature_matrix_counts = np . zeros ( mapping_matrix . shape [ 0 ] ) for mask_1d_index in range ( mapping_matrix . shape [ 0 ] ) : for pix_index in range ( mapping_matrix . shape [ 1 ] ) : if mapping_matrix [ mask_1d_index , pix_index ] > mapping_matrix_threshold : curvature_matrix_counts [ mask_1d_index ] += 1 preload_max = np . max ( curvature_matrix_counts ) curvature_matrix_preload = np . zeros ( ( mapping_matrix . shape [ 0 ] , int ( preload_max ) ) ) for mask_1d_index in range ( mapping_matrix . shape [ 0 ] ) : index = 0 for pix_index in range ( mapping_matrix . shape [ 1 ] ) : if mapping_matrix [ mask_1d_index , pix_index ] > mapping_matrix_threshold : curvature_matrix_preload [ mask_1d_index , index ] = pix_index index += 1 return curvature_matrix_preload , curvature_matrix_counts
short_docstring: Returns a matrix that expresses the non-zero entries of the blurred mapping matrix for an efficient construction of
  the curvature matrix `F` (see Warren & Dye 2003).
short_docstring_tokens: Returns a matrix that expresses the non - zero entries of the blurred mapping matrix for an efficient construction of the curvature matrix ` F ` ( see Warren & Dye 2003 ) .
comment: """
      Returns a matrix that expresses the non-zero entries of the blurred mapping matrix for an efficient construction of
      the curvature matrix `F` (see Warren & Dye 2003).
  
      This is used for models where the blurred mapping matrix does not change, but the noise-map of the values that
      are used to construct that blurred mapping matrix do change.
  
      Parameters
      -----------
      mapping_matrix
          The matrix representing the mappings (these could be blurred or transfomed) between sub-grid pixels and
          pixelization pixels.
      """