def get_complex_n_step_backup_at_all_times(rewards, pcontinues, state_values,
                                           lambda_):
  """Evaluates complex n-step backups at all time-points.

  Args:
    rewards: a list containing rewards.
    pcontinues: a list containing discounts.
    state_values: a list containing bootstrapped state values.
    lambda_: mixing parameter lambda.

  Returns:
    A list containing complex backups at all times.
  """
  res = []
  length = len(rewards)
  for i in xrange(0, length):
    res.append(get_complex_n_step_backup(rewards, pcontinues, state_values, i,
                                         length - i, lambda_))
  return res
Evaluates complex n-step backups at all time-points.

  Args:
    rewards: a list containing rewards.
    pcontinues: a list containing discounts.
    state_values: a list containing bootstrapped state values.
    lambda_: mixing parameter lambda.

  Returns:
    A list containing complex backups at all times.
  
trfl/sequence_ops_test.py