如何在Sage中撰写两个部分订单?

时间:2018-01-11 02:17:17

标签: sage poset

假设我有两个有限的posets(例如用class myLocation: CLLocationManagerDelegate { var locationManager:CLLocationManager? // Have also tried it as: let locationManager = CLLocationManager() func start() { if CLLocationManager.locationServicesEnabled() { self.locationManager = CLLocationManager() guard let manager = self.locationManager else { print("Error creating Location Manager") return } manager.delegate = self manager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters manager.requestWhenInUseAuthorization() } else { print("Location Services Disabled") } } //Delegate Methods func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) { switch status { case .authorizedAlways, .authorizedWhenInUse: manager.startUpdatingLocation() default: manager.requestWhenInUseAuthorization() } } ... } 构造)。

我想计算二元关系,即这些posets的顺序关系的composition

如何在Sage中执行此操作?

(我是Sage新手。)

1 个答案:

答案 0 :(得分:0)

显然还没有。请参阅Trac 24542以了解二元关系的一般未来实现(这是您可能需要的,因为这种组合的posets可能通常不会成为一个poset?)。