{"id":198,"date":"2013-09-12T23:32:48","date_gmt":"2013-09-12T14:32:48","guid":{"rendered":"https:\/\/www.dogrow.net\/octave\/?p=198"},"modified":"2019-10-26T20:16:30","modified_gmt":"2019-10-26T11:16:30","slug":"blog22","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/octave\/blog22\/","title":{"rendered":"(22) parfor\u306f\u4f7f\u3048\u308b\u3051\u3069\u4f7f\u3048\u306a\u3044"},"content":{"rendered":"<p>MATLAB\u306e Parallel Computing Toolbox\u3067\u306f\u3001<span class=\"my_fs_big2 my_fw_bold\">for<\/span> \u30eb\u30fc\u30d7\u3092 <span class=\"my_fc_deeppinkBBig\">parfor<\/span> \u306b\u66f8\u304d\u63db\u3048\u308b\u3060\u3051\u3067\u30de\u30eb\u30c1\u30b3\u30a2\u4e26\u5217\u5316\u304c\u5b9f\u73fe\u3067\u304d\u308b\u3002<br \/>\n\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u305d\u306e\u307e\u307e Octave\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001<span class=\"my_fc_crimsonBBig\">\u30a8\u30e9\u30fc\u306f\u767a\u751f\u3057\u306a\u3044\u304c\u3001\u9ad8\u901f\u5316\u3082\u3057\u306a\u3044&#8230;<\/span><\/p>\n<p><a title=\"Octave\u516c\u5f0fWiki\" href=\"http:\/\/wiki.octave.org\/FAQ\" target=\"_blank\" rel=\"noopener noreferrer\">Octave\u516c\u5f0fWiki<\/a> \u306b\u306f\u3001\u300c3.6.N series\u3067 parfor\u3092\u8a8d\u8b58\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u300d\u3068\u3042\u308b\u3002<\/p>\n<pre>\r\nWhat's new in Octave\r\n[edit] What's new in version series 3.6.N and 3.7.N of Octave\r\nSeveral new features have been added to the 3.6.N series. The full details are in the NEWS file, but in brief 3.6.N series brings: \r\n Perl compatible regular expressions \r\n A profiler has been added. \r\n Broadcasting enabled for all built-in binary element-wise operators. \r\n The statistical distribution functions have been overhauled. \r\n The functions strread(), textscan(), and textread() have been rewritten. \r\n Performance of all m-file string functions has been improved. \r\n The qhull geometry functions have been revamped. \r\n Date\/time functions have been updated. \r\n Matlab compatible preference functions have been added. \r\n Various handle graphics functions have been introduced. \r\n The parfor keyword is now recognized. <span class=\"my_fc_crimsonBBig\">\u2190\u30b3\u30ec<\/span><\/pre>\n<p>\u3059\u306a\u308f\u3061\u3001\u30ad\u30fc\u30ef\u30fc\u30c9\u3068\u3057\u3066\u8a8d\u8b58\u3059\u308b(=\u30a8\u30e9\u30fc\u3068\u3057\u306a\u3044)\u3060\u3051\u3067\u3001\u5b9f\u969b\u306e\u52d5\u4f5c\u306f for\u3068\u540c\u3058\u304f1\u30d7\u30ed\u30bb\u30b9\u306e\u3088\u3046\u3060\u3002<\/p>\n<p>MATLAB\u3068Octave\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5171\u901a\u5316\u3067\u304d\u306a\u3044\u304c\u3001Octave\u3067 MATLAB\u306e parfor\u76f8\u5f53\u306e\u3053\u3068\u3092\u5b9f\u73fe\u3057\u305f\u3044\u5834\u5408\u3001<br \/>\n<span class=\"my_fc_deeppinkBBig\">pararrayfun<\/span><br \/>\n<span class=\"my_fc_deeppinkBBig\">parcellfun<\/span><br \/>\n\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u3053\u308c\u3092\u4f7f\u3046\u3068\u3001<\/p>\n<pre class=\"my_pre_octave\">\r\nfunction ret = calc( a, b )\r\n    ret = a + b;\r\nendfunction\r\n<\/pre>\n<p>\u306e\u3088\u3046\u306a\u95a2\u6570\u30924\u4e26\u5217\u51e6\u7406\u3057\u305f\u3044\u5834\u5408\u306b\u3001<\/p>\n<pre class=\"my_pre_octave\">\r\nret = <span class=\"my_fc_deeppinkB\">paraarrayfun<\/span>( 4, @calc, a, b )\r\n<\/pre>\n<p>\u3068\u66f8\u304f\u3068\u3001Octave\u30924\u30d7\u30ed\u30bb\u30b9\u8d77\u52d5\u3057\u3066\u4e26\u5217\u51e6\u7406\u3057\u3066\u304f\u308c\u308b\u3002<br \/>\n<span class=\"my_fc_crimsonBBig\">\u203b\u30b9\u30ec\u30c3\u30c9\u4e26\u5217\u3067\u306f\u306a\u304f Octave\u30d7\u30ed\u30bb\u30b9\u3092\u65b0\u305f\u306b\u8d77\u52d5\u3057\u3066\u3044\u308b\u3002<\/span><\/p>\n<p>parfor\u3067\u30eb\u30fc\u30d7\u30ab\u30a6\u30f3\u30bf\u3092\u30ad\u30fc\u306b\u4e26\u5217\u51e6\u7406\u3059\u308b\u306e\u3068\u3068\u540c\u3058\u304f\u3001<br \/>\n\u5404\u51e6\u7406\u3067\u914d\u5217 a, b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u30ad\u30fc\u306b\u4e26\u5217\u51e6\u7406\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>\u305f\u3060\u3057&#8230;<br \/>\n\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u304b\u306a\u308a\u5927\u304d\u3044\u306e\u3067\u9069\u7528\u7b87\u6240\u3092\u9593\u9055\u3048\u308b\u3068\u4f4e\u901f\u5316\u3059\u308b\u3002<\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>MATLAB\u306e Parallel Computing Toolbox\u3067\u306f\u3001for \u30eb\u30fc\u30d7\u3092 parfor \u306b\u66f8\u304d\u63db\u3048\u308b\u3060\u3051\u3067\u30de\u30eb\u30c1\u30b3\u30a2\u4e26\u5217\u5316\u304c\u5b9f\u73fe\u3067\u304d\u308b\u3002 \u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u305d\u306e\u307e\u307e Octave\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u306f\u767a\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/octave\/blog22\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-18"],"views":5800,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/octave\/wp-json\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/octave\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/octave\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/octave\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/octave\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":18,"href":"https:\/\/www.dogrow.net\/octave\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":994,"href":"https:\/\/www.dogrow.net\/octave\/wp-json\/wp\/v2\/posts\/198\/revisions\/994"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/octave\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/octave\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/octave\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}