{"provider_url":"https://hatena.blog","published":"2020-04-25 08:48:56","height":"190","provider_name":"Hatena Blog","categories":[" python "],"title":" [ python ] \u81ea\u4f5c\u30af\u30e9\u30b9\u3092numpy ndarray\u306b\u4f7f\u7528\u3059\u308b","author_name":"inarizuuuushi","version":"1.0","type":"rich","blog_url":"https://inarizuuuushi.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finarizuuuushi.hatenablog.com%2Fentry%2F2020%2F04%2F25%2F084856\" title=\" [ python ] \u81ea\u4f5c\u30af\u30e9\u30b9\u3092numpy ndarray\u306b\u4f7f\u7528\u3059\u308b - Sabrou-mal \u30b5\u30d6\u30ed\u30a6\u4e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Sabrou-mal \u30b5\u30d6\u30ed\u30a6\u4e38","width":"100%","author_url":"https://blog.hatena.ne.jp/inarizuuuushi/","image_url":null,"description":"Subclassing ndarray \u2014 NumPy v1.18 Manual (\u516c\u5f0f)\u3092\u53c2\u8003\u306b\u3059\u308c\u3070\u826f\u3044\u3067\u3057\u3087\u3046. \u4ee5\u4e0b, \u7c21\u5358\u306a\u5b9f\u88c5\u4f8b. class Element: def __init__(self, r, c): self.r = r self.c = c def __repr__(self): return f'Element({self.r},{self.c})' \u4e0a\u306e\u81ea\u4f5c\u30af\u30e9\u30b9\u3092, 2\u6b21\u5143ndarray\u306e\u8981\u7d20\u3068\u3057\u3066, r\u884cc\u5217\u76ee\u306bElement(r, c)\u3092\u4f7f\u3044\u305f\u3044\u3068\u3057\u307e\u3059. MyNdarray\u30af\u30e9\u30b9\u3092np.ndarray\u3092\u7d99\u627f\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f5c\u308a\u307e\u3059. import num\u2026","url":"https://inarizuuuushi.hatenablog.com/entry/2020/04/25/084856"}