Sha256: 0b85f79f2c07e49c2c4b86ac294a2ef62c9af2aac69c1687b9d2167c5dd59a5c
Contents?: true
Size: 692 Bytes
Versions: 2
Compression:
Stored size: 692 Bytes
Contents
from xnd import xnd from ndtypes import ndt import gumath.examples as ex # ============================================================================== # Experimental syntax sugar # ============================================================================== class Graph(xnd): def __new__(cls, *args, **kwargs): return super().__new__(cls, *args, typedef="graph") def shortest_paths(self, start): return ex.single_source_shortest_paths(self, start) class bfloat16(xnd): def __new__(cls, *args, **kwargs): return super().__new__(cls, *args, dtypedef="bfloat16") def __repr__(self): return "bfloat16(%s)" % str(self)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gumath-0.2.0dev8 | ext/ruby_gumath/gumath/python/extending.py |
gumath-0.2.0dev5 | ext/ruby_gumath/gumath/python/extending.py |