e-strauss commented on code in PR #2113: URL: https://github.com/apache/systemds/pull/2113#discussion_r1772867499
########## src/main/python/systemds/operator/nodes/matrix.py: ########## @@ -634,6 +634,14 @@ def to_string(self, **kwargs: Dict[str, VALID_INPUT_TYPES]) -> "Scalar": self.sds_context, "toString", [self], kwargs, output_type=OutputType.STRING ) + def to_scalar(self): + return Scalar(self.sds_context, "as.scalar", [self]) + + def to_frame(self): + from systemds.operator import Frame Review Comment: I see, currently the cyclic dependency error is avoided since the import happens inside the function, which won't be executed while importing afaik. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@systemds.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org