parameters: (shape: Tuple[int, ...], spacing, streak, num_blocks, offset)
return_statement: return sp.csc_matrix((val_arr, (row_arr, col_arr)), shape)
docstring: Returns a sparse matrix that spaces out an expression.
  
          Parameters
          ----------
          shape : tuple
              (rows in matrix, columns in matrix)
          spacing : int
              The number of rows between the start of each non-zero block.
          streak: int
              The number of elements in each block.
          num_blocks : int
              The number of non-zero blocks.
          offset : int
              The number of zero rows at the beginning of the matrix.
  
          Returns
          -------
          SciPy CSC matrix
              A sparse matrix
docstring_summary: Returns a sparse matrix that spaces out an expression.
docstring_tokens: Returns a sparse matrix that spaces out an expression .
function: def get_spacing_matrix(shape: Tuple[int, ...], spacing, streak, num_blocks, offset):
          """Returns a sparse matrix that spaces out an expression.
  
          Parameters
          ----------
          shape : tuple
              (rows in matrix, columns in matrix)
          spacing : int
              The number of rows between the start of each non-zero block.
          streak: int
              The number of elements in each block.
          num_blocks : int
              The number of non-zero blocks.
          offset : int
              The number of zero rows at the beginning of the matrix.
  
          Returns
          -------
          SciPy CSC matrix
              A sparse matrix
          """
          num_values = num_blocks * streak
          val_arr = np.ones(num_values, dtype=np.float64)
          streak_plus_spacing = streak + spacing
          row_arr = np.arange(0, num_blocks * streak_plus_spacing).reshape(
              num_blocks, streak_plus_spacing)[:, :streak].flatten() + offset
          col_arr = np.arange(num_values)
          return sp.csc_matrix((val_arr, (row_arr, col_arr)), shape)
function_tokens: def get_spacing_matrix ( shape : Tuple [ int , ... ] , spacing , streak , num_blocks , offset ) : num_values = num_blocks * streak val_arr = np . ones ( num_values , dtype = np . float64 ) streak_plus_spacing = streak + spacing row_arr = np . arange ( 0 , num_blocks * streak_plus_spacing ) . reshape ( num_blocks , streak_plus_spacing ) [ : , : streak ] . flatten ( ) + offset col_arr = np . arange ( num_values ) return sp . csc_matrix ( ( val_arr , ( row_arr , col_arr ) ) , shape )