{"id":19543,"date":"2022-11-07T01:28:31","date_gmt":"2022-11-06T19:58:31","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/"},"modified":"2022-11-07T01:28:31","modified_gmt":"2022-11-06T19:58:31","slug":"solved-wrap-matrix-multiplication-with-operator-overload","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/","title":{"rendered":"[Solved] Wrap matrix multiplication with operator* overload"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-62672081\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"62672081\" data-parentid=\"62574096\" data-score=\"0\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>So, I was trying to wrap a <code>glm::mat4::operator*(...)<\/code> which didn&#8217;t exist. Here is the prototype:<\/p>\n<p><code>GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; operator*(mat&lt;4, 4, T, Q&gt; const&amp; m, T const&amp; s);<\/code> which takes two <code>mat4<\/code> arguments and returns a <code>mat4<\/code>.<\/p>\n<p>So the solution looked something like this:<\/p>\n<pre><code>struct custom_deleter {\n    glm::mat4 operator()(glm::mat4* m) {\n        return *m;\n    }\n};\n\nglm::mat4* mul_mat4(glm::mat4 const &amp;mat1, glm::mat4 const &amp;mat2) {\n    glm::mat4* tmp = new glm::mat4();\n    *tmp = glm::operator*(mat1, mat2);\n    \/\/ create unique_ptr to manage memory to ensure memory\n    \/\/ is properly cleaned up\n    std::unique_ptr&lt;glm::mat4, custom_deleter&gt; _m( tmp );\n    return _m.get();\n}\n<\/code><\/pre>\n<p>which could then be bound in <code>BOOST_PYTHON_MODULE()<\/code> with:<\/p>\n<pre><code>python::class_&lt;glm::mat4, boost::shared_ptr&lt;glm::mat4&gt;, boost::noncopyable&gt;(\"mat4\", python::no_init)\n.def(\"__init__\", python::make_constructor(&amp;make_mat4))\n.def(\"__mul__\", &amp;mul_mat4, python::return_value_policy&lt;python::manage_new_object&gt;())\n;\n<\/code><\/pre>\n<p>Here is a complete example:<\/p>\n<pre><code>#include &lt;boost\/python.hpp&gt;\n#include &lt;boost\/make_shared.hpp&gt;\n#define GLM_ENABLE_EXPERIMENTAL\n#include &lt;glm\/glm.hpp&gt;\n#include &lt;glm\/gtx\/string_cast.hpp&gt;\n\nstruct vec3Wrap : glm::vec3, boost::python::wrapper&lt;glm::vec3&gt;\n{\n    vec3Wrap(float x, float y, float z): glm::vec3(x, y, z) {}\n    vec3Wrap(float a): glm::vec3(a, a, a) {}\n    vec3Wrap(): glm::vec3(){}\n};\n\nstruct custom_deleter_vec {\n    glm::vec3 operator()(glm::vec3* f){\n        return *f;\n    }\n};\n\nglm::vec3* mul_vec3(glm::vec3 const &amp;v1, float const &amp;f) {\n    glm::vec3* tmp = new glm::vec3();\n    *tmp = glm::operator*(v1, f);\n    std::unique_ptr&lt;glm::vec3, custom_deleter_vec&gt; _v( tmp );\n    return _v.get();\n}\n\nglm::vec3* add_vec3(glm::vec3 const &amp;v1, glm::vec3 const &amp;v2) {\n    glm::vec3* tmp = new glm::vec3();\n    *tmp = glm::operator+(v1, v2);\n    std::unique_ptr&lt;glm::vec3, custom_deleter_vec&gt; _v( tmp );\n    return _v.get();\n}\n\nboost::shared_ptr&lt;glm::vec3&gt; make_vec3(float x, float y, float z)\n{\n    return boost::make_shared&lt;glm::vec3&gt;(x, y, z);\n}\n\nstruct custom_deleter {\n    glm::mat4 operator()(glm::mat4* m) {\n        return *m;\n    }\n};\n\nglm::mat4* mul_mat4(glm::mat4 const &amp;mat1, glm::mat4 const &amp;mat2) {\n    glm::mat4* tmp = new glm::mat4();\n    *tmp = glm::operator*(mat1, mat2);\n    std::unique_ptr&lt;glm::mat4, custom_deleter&gt; _m( tmp );\n    return _m.get();\n}\n\nstd::string print_mat4(glm::mat4 const &amp;m) {\n    return glm::to_string(m);\n}\n\nboost::shared_ptr&lt;glm::mat4&gt; make_mat4(float m)\n{\n    return boost::make_shared&lt;glm::mat4&gt;(m);\n}\n\nglm::mat4* _lookAt (glm::vec3 const &amp;eye, glm::vec3 const &amp;center, glm::vec3 const &amp;up)\n{\n    glm::mat4 *tmp = new glm::mat4();\n    *tmp = glm::lookAt(eye, center, up);\n    std::unique_ptr&lt;glm::mat4, custom_deleter&gt; m( tmp );\n    return m.get();\n}\n\nglm::mat4* _perspective(float const &amp;fovy, float const &amp;aspect, float const &amp;near, float const &amp;far)\n{\n    glm::mat4 *tmp = new glm::mat4();\n    *tmp = glm::perspective(fovy, aspect, near, far);\n    std::unique_ptr&lt;glm::mat4, custom_deleter&gt; m( tmp );\n    return m.get();\n}\n\nint main() {\n\n    return 0;\n}\n\nBOOST_PYTHON_MODULE(example)\n{\n    namespace python = boost::python;\n\n    python::class_&lt;glm::mat4, boost::shared_ptr&lt;glm::mat4&gt;, boost::noncopyable&gt;(\"mat4\", python::no_init)\n    .def(\"__init__\", python::make_constructor(&amp;make_mat4))\n    .def(\"__mul__\", &amp;mul_mat4, python::return_value_policy&lt;python::manage_new_object&gt;())\n    .def(\"__str__\", &amp;print_mat4);\n    python::def(\"perspective\", _perspective, python::return_value_policy&lt;python::manage_new_object&gt;());\n    python::def(\"lookAt\", _lookAt, python::return_value_policy&lt;python::manage_new_object&gt;());\n\n    python::class_&lt;glm::vec3, boost::shared_ptr&lt;glm::vec3&gt;, boost::noncopyable&gt;(\"vec3\", python::no_init)\n    .def(\"__init__\", python::make_constructor(&amp;make_vec3));\n    \/\/ .def(\"__mul__\", &amp;mul_vec3, python::return_value_policy&lt;python::manage_new_object&gt;())\n    \/\/ .def(\"__imul__\", &amp;mul_vec3, python::return_value_policy&lt;python::manage_new_object&gt;())\n    \/\/ .def(\"__add__\", &amp;add_vec3, python::return_value_policy&lt;python::manage_new_object&gt;())\n    \/\/ .def(\"__str__\", &amp;print_vec3)\n    \/\/ .def_readwrite(\"x\", &amp;vec3::x)\n    \/\/ .def_readwrite(\"y\", &amp;vec3::y)\n    \/\/ .def_readwrite(\"z\", &amp;vec3::z);\n}\n<\/code><\/pre>\n<p>Which can allow for some pretty neat stuff on the Python side:<\/p>\n<pre><code>from example import mat4, perspective, lookAt, vec3\nmodel = mat4(1.0)\nview = lookAt(vec3(0.0, 0.0, 0.0), vec3(0.0, 0.0, -5.0), vec3(0.0, 1.0, 0.0))\nprojection = perspective(view, 800, 600, 0.1, 1000.0)\nMVP = projection * view * model\n<\/code><\/pre>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\"><\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Wrap matrix multiplication with operator* overload <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] So, I was trying to wrap a glm::mat4::operator*(&#8230;) which didn&#8217;t exist. Here is the prototype: GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; operator*(mat&lt;4, 4, T, Q&gt; const&amp; m, T const&amp; s); which takes two mat4 arguments and returns a mat4. So the solution looked something like this: struct custom_deleter { glm::mat4 operator()(glm::mat4* m) { return *m; &#8230; <a title=\"[Solved] Wrap matrix multiplication with operator* overload\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/\" aria-label=\"More on [Solved] Wrap matrix multiplication with operator* overload\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[4639,324],"class_list":["post-19543","post","type-post","status-publish","format-standard","hentry","category-solved","tag-boost-python","tag-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] Wrap matrix multiplication with operator* overload - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Wrap matrix multiplication with operator* overload - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] So, I was trying to wrap a glm::mat4::operator*(...) which didn&#8217;t exist. Here is the prototype: GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; operator*(mat&lt;4, 4, T, Q&gt; const&amp; m, T const&amp; s); which takes two mat4 arguments and returns a mat4. So the solution looked something like this: struct custom_deleter { glm::mat4 operator()(glm::mat4* m) { return *m; ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-06T19:58:31+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-wrap-matrix-multiplication-with-operator-overload\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-wrap-matrix-multiplication-with-operator-overload\\\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Wrap matrix multiplication with operator* overload\",\"datePublished\":\"2022-11-06T19:58:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-wrap-matrix-multiplication-with-operator-overload\\\/\"},\"wordCount\":69,\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"keywords\":[\"boost-python\",\"c++\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-wrap-matrix-multiplication-with-operator-overload\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-wrap-matrix-multiplication-with-operator-overload\\\/\",\"name\":\"[Solved] Wrap matrix multiplication with operator* overload - JassWeb\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\"},\"datePublished\":\"2022-11-06T19:58:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-wrap-matrix-multiplication-with-operator-overload\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-wrap-matrix-multiplication-with-operator-overload\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-wrap-matrix-multiplication-with-operator-overload\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Wrap matrix multiplication with operator* overload\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\\\/\\\/jassweb.com\"],\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/author\\\/jaspritsinghghumangmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Wrap matrix multiplication with operator* overload - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Wrap matrix multiplication with operator* overload - JassWeb","og_description":"[ad_1] So, I was trying to wrap a glm::mat4::operator*(...) which didn&#8217;t exist. Here is the prototype: GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; operator*(mat&lt;4, 4, T, Q&gt; const&amp; m, T const&amp; s); which takes two mat4 arguments and returns a mat4. So the solution looked something like this: struct custom_deleter { glm::mat4 operator()(glm::mat4* m) { return *m; ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/","og_site_name":"JassWeb","article_published_time":"2022-11-06T19:58:31+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Wrap matrix multiplication with operator* overload","datePublished":"2022-11-06T19:58:31+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/"},"wordCount":69,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["boost-python","c++"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/","url":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/","name":"[Solved] Wrap matrix multiplication with operator* overload - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-11-06T19:58:31+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-wrap-matrix-multiplication-with-operator-overload\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Wrap matrix multiplication with operator* overload"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/19543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=19543"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/19543\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=19543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=19543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=19543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}