Convergence

public enum Convergence<T> where T : Vector

Returned by a simulation function to indicate whether a simulation should converge (come to rest) for a given state.

  • The simulation should keep running.

    Declaration

    Swift

    case keepRunning
  • The simulation should converge (come to rest) with the given value.

    Declaration

    Swift

    case converge(atValue: T)