{"id":2170,"date":"2020-04-25T13:26:38","date_gmt":"2020-04-25T04:26:38","guid":{"rendered":"https:\/\/www.ktech.biz\/jp\/?p=2170"},"modified":"2022-07-25T23:41:41","modified_gmt":"2022-07-25T14:41:41","slug":"xlpack-api","status":"publish","type":"post","link":"https:\/\/www.ktech.biz\/jp\/manual\/xlpack-api\/","title":{"rendered":"XLPack 5.4 API \u306e\u4f7f\u7528\u6cd5 (\u65e7\u7248)"},"content":{"rendered":"<h3>XLPack API\u3068\u306f<\/h3>\n<p>XLPack API (C\/C++\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9) \u306fXLPack\u306e\u6570\u5024\u8a08\u7b97\u30e2\u30b8\u30e5\u30fc\u30eb\u3092Excel\u4ee5\u5916\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u3059. \u3053\u308c\u3092\u4f7f\u3046\u3068\u4ee5\u4e0b\u306e\u3053\u3068\u304c\u3067\u304d\u307e\u3059.<\/p>\n<ul>\n<li>XLPack(\u3042\u308b\u3044\u306f XLPack Lite)\u304c\u4f7f\u7528\u3057\u3066\u3044\u308b\u6570\u5024\u8a08\u7b97\u30e2\u30b8\u30e5\u30fc\u30eb\u3092C\/C++\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/li>\n<li>C\/C++\u3068\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u304d\u308b\u306a\u3089\u3070\u305d\u306e\u4ed6\u306e\u8a00\u8a9e\u304b\u3089\u3082\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059. Python, Julia, C#, F#, VB.Net, Pascal (Delphi, Free Pascal)\u306b\u3064\u3044\u3066\u306fXLPack Lite\u7528\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3059<\/li>\n<li>XLPack API\u3092\u4f7f\u7528\u3057\u3066\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306fXLPack(\u3042\u308b\u3044\u306f XLPack Lite)\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30bd\u30b3\u30f3\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/li>\n<\/ul>\n<h3>\u3054\u6ce8\u610f<\/h3>\n<p>XLPack API\u306fXLPack\u306e\u5185\u90e8\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u3042\u308a\u306e\u307e\u307e\u516c\u958b\u3059\u308b\u3082\u306e\u3067, \u3059\u3079\u3066\u306e\u6761\u4ef6\u4e0b\u3067\u30c6\u30b9\u30c8\u3055\u308c\u305f\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093. \u5f93\u3063\u3066, \u3053\u308c\u3089\u306e\u6a5f\u80fd, \u52d5\u4f5c, \u4fe1\u983c\u6027\u7b49\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093. \u307e\u305f, \u4e88\u544a\u306a\u304f\u4ed5\u69d8\u5909\u66f4\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059.<\/p>\n<h3>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n<p>XLPack SDK \u304c <a href=\"https:\/\/www.ktech.biz\/jp\/support\/downloads\/sdk-download\/\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a> \u3088\u308a\u5165\u624b\u3067\u304d\u307e\u3059.<\/p>\n<p>SDK\u306b\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e C\/C++, Python, Julia, .Net\u8a00\u8a9e (C#, F#, VB.Net), Pascal \u3092\u5bfe\u8c61\u3068\u3057\u3066API\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u304c\u5165\u3063\u3066\u3044\u307e\u3059. SDK\u306b\u542b\u307e\u308c\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u3063\u3066C\/C++\u304b\u3089XLPack\/XLPack Lite, \u305d\u306e\u4ed6\u306e\u8a00\u8a9e\u304b\u3089XLPack Lite\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059. XLPack Lite\u306e\u5168\u95a2\u6570\u306e\u4f7f\u7528\u4f8b\u304c\u6dfb\u4ed8\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067, \u305d\u308c\u3092\u53c2\u8003\u306b\u3059\u308c\u3070\u5bb9\u6613\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059.<\/p>\n<h3><strong>\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb<\/strong><\/h3>\n<p>C\/C++, Python, Julia\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u3088\u308a\u30aa\u30f3\u30e9\u30a4\u30f3\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u53c2\u7167\u3067\u304d\u307e\u3059.<\/p>\n<h4>C\/C++\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/h4>\n<p><a href=\"\/doc\/5.4\/ja\/c\/files.html\" target=\"_blank\" rel=\"noopener noreferrer\">C\/C++\u6570\u5024\u8a08\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb<\/a> (\u5225\u30bf\u30d6\u3067\u958b\u304d\u307e\u3059)<br \/>\n<a href=\"\/doc\/5.4\/ja\/clite\/files.html\" target=\"_blank\" rel=\"noopener noreferrer\">C\/C++\u6570\u5024\u8a08\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb (XLPack Lite\u7528)<\/a> (\u5225\u30bf\u30d6\u3067\u958b\u304d\u307e\u3059)<\/p>\n<h4>Python \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/h4>\n<p><a href=\"\/doc\/5.4\/ja\/pythonlite\/files.html\" target=\"_blank\" rel=\"noopener noreferrer\">Python\u6570\u5024\u8a08\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb (XLPack Lite\u7528)<\/a> (\u5225\u30bf\u30d6\u3067\u958b\u304d\u307e\u3059)<\/p>\n<h4>Julia \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/h4>\n<p><a href=\"\/doc\/5.4\/ja\/julialite\/files.html\" target=\"_blank\" rel=\"noopener noreferrer\">Julia\u6570\u5024\u8a08\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb (XLPack Lite\u7528)<\/a> (\u5225\u30bf\u30d6\u3067\u958b\u304d\u307e\u3059)<\/p>\n<h3><strong>API \u306e\u4f7f\u7528\u6cd5<\/strong><\/h3>\n<p>API\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30ea\u30f3\u30af\u3059\u308b\u65b9\u6cd5\u3068DLL\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u306e2\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059.<\/p>\n<h4>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30ea\u30f3\u30af\u3059\u308b\u65b9\u6cd5<\/h4>\n<p>C\/C++\u304b\u3089\u306fSDK\u306b\u542b\u307e\u308c\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30ea\u30f3\u30af\u3059\u308b\u3060\u3051\u3067\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059.<\/p>\n<p>Windows\u306e\u5834\u5408\u306b\u306f XLPack.lib (64\u30d3\u30c3\u30c8) \u307e\u305f\u306f XLPack_32.lib (32\u30d3\u30c3\u30c8)\u3092\u30ea\u30f3\u30af\u3057\u307e\u3059. Lite\u7248\u306e\u5834\u5408\u306f XLPackLite.lib (64\u30d3\u30c3\u30c8) \u307e\u305f\u306f XLPackLite_32.lib (32\u30d3\u30c3\u30c8)\u3068\u306a\u308a\u307e\u3059.<\/p>\n<p>macOS\u306e\u5834\u5408\u306b\u306f XLPack.dylib \u3068 libXLPack.a \u306e\u4e21\u65b9\u3092\u30ea\u30f3\u30af\u3057\u307e\u3059. Lite\u7248\u306e\u5834\u5408\u306f XLPackLite.dylib \u3068 libXLPackLite.a \u3068\u306a\u308a\u307e\u3059.<\/p>\n<p>\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u306f cnumlib.h \u307e\u305f\u306f cnumlib (C++\u7528) \u3092\u4f7f\u7528\u3057\u307e\u3059. Lite\u7248\u306e\u5834\u5408\u306f cnumlib_lite.h \u307e\u305f\u306f cnumlib_lite (C++\u7528) \u3068\u306a\u308a\u307e\u3059.<\/p>\n<p>\u6ce8 &#8211; 5.3\u7248\u3088\u308a\u7279\u6b8a\u95a2\u6570\u306e\u591a\u304f\u3068BLAS 2, 3 \u95a2\u6570\u3067\u306f\u30a8\u30e9\u30fc\u6642\u306berrno\u3092\u8a2d\u5b9a\u3059\u308b\u3088\u3046\u306b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u307e\u3059.<\/p>\n<p>Python\u306b\u3064\u3044\u3066\u306fXLPack Lite\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u304cSDK\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059.<\/p>\n<p>Windows\u7528\u306f XLPackLite.pyd (64\u30d3\u30c3\u30c8\u7248) \u307e\u305f\u306f XLPackLite_32.pyd (32\u30d3\u30c3\u30c8\u7248), macOS\u7528\u306f XLPackLite.so \u3068\u306a\u308a\u307e\u3059. \u3053\u308c\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f, \u547c\u3073\u51fa\u3059\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u307e\u305f\u306f\u74b0\u5883\u5909\u6570PYTHONPATH\u3067\u6307\u5b9a\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059. \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306a\u3069\u306b\u3088\u3063\u3066\u306f\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059. \u305d\u306e\u5834\u5408\u306b\u306fXLPackLite.py(\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u540c\u7b49\u306e\u52d5\u4f5c\u3092\u3059\u308bctypes\u7248)\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044.<\/p>\n<p>Python\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u306f\u884c\u5217\u3092\u8868\u3059\u306e\u306bNumpy\u306endarray\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059. \u3042\u3089\u304b\u3058\u3081Numpy\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059.<\/p>\n<h4>DLL\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3059\u65b9\u6cd5<\/h4>\n<p>\u305d\u306e\u4ed6\u306e\u8a00\u8a9e\u3067\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30ea\u30f3\u30af\u305b\u305aDLL\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3057\u307e\u3059. \u305d\u306e\u5834\u5408\u3067\u3082\u547c\u3073\u51fa\u3057\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30ea\u30f3\u30af\u3059\u308b\u5834\u5408(\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb)\u3068\u4e0b\u8a18\u306e\u5834\u5408\u3092\u9664\u3044\u3066\u540c\u3058\u3067\u3059. SDK\u306b\u306f\u5404\u8a00\u8a9e\u7528\u306eDLL\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067, DLL\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u8a73\u7d30\u3092\u610f\u8b58\u3059\u308b\u3053\u3068\u306a\u304f\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059.<\/p>\n<p>DLL\u76f4\u63a5\u547c\u51fa\u3057\u306e\u5834\u5408, \u7279\u6b8a\u95a2\u6570\u3068BLAS2, 3 \u95a2\u6570\u306e\u3088\u3046\u306b errno\u3092\u30bb\u30c3\u30c8\u3059\u308b\u95a2\u6570\u306f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb\u3068\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u7570\u306a\u308a\u307e\u3059. \u95a2\u6570\u540d\u306e\u5148\u982d\u306b\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc(_)\u3092\u4ed8\u3051, \u5f15\u6570\u306e\u6700\u5f8c\u306berrno\u3092\u4ed8\u3051\u52a0\u3048\u305f\u3082\u306e\u306b\u306a\u308a\u307e\u3059. \u4f8b\u3048\u3070,<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-c\" data-lang=\"C\"><code>func(double a1, double a2)<\/code><\/pre>\n<\/div>\n<p>\u306e\u5834\u5408, \u6b21\u306e\u3088\u3046\u306b\u5909\u66f4\u306b\u306a\u308a\u307e\u3059.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-c\" data-lang=\"C\"><code>_func(double a1, double a2, errno_t *xerrno)<\/code><\/pre>\n<\/div>\n<p>xerrno\u306f\u6b63\u5e38\u7d42\u4e86\u6642\u306b\u306f0\u3092\u8fd4\u3057\u307e\u3059\u304c, \u30a8\u30e9\u30fc\u304c\u3042\u308c\u3070EDOM\u307e\u305f\u306fERANGE(C\u8a00\u8a9e\u306eerrno.h\u306e\u5024)\u3092\u8fd4\u3057\u307e\u3059.<br \/>\nBLAS 2, 3 \u95a2\u6570\u306b\u3064\u3044\u3066\u306f\u4e00\u822c\u7684\u306a\u5b9f\u88c5\u3067\u306ferrno\u3092\u8a2d\u5b9a\u3057\u307e\u305b\u3093\u304c, \u62e1\u5f35\u6a5f\u80fd\u3068\u3057\u3066\u5f15\u6570\u306b\u30a8\u30e9\u30fc\u304c\u3042\u3063\u305f\u5834\u5408\u306bEDOM\u3092\u8a2d\u5b9a\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059.<br \/>\n\u5bfe\u8c61\u306b\u306a\u308b\u95a2\u6570\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059.<\/p>\n<div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>errno\u3092\u8a2d\u5b9a\u3059\u308b\u95a2\u6570\u306e\u4e00\u89a7<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<h4>\u7279\u6b8a\u95a2\u6570<\/h4>\n<p>factorial<br \/>\nccbrt ccbrt_sub<br \/>\nlaguerre alaguerre legendre legendred alegendre sharmonic sharmonic_sub<br \/>\nsharmonicr sharmonici hermite chebt chebtd chebu chebs<br \/>\nsqrt1pm1 powm1 sin_pi cos_pi cexpm1 cexpm1_sub clog1p clog1p_sub ccot ccot_sub<br \/>\nli ei e1 en spence<br \/>\nci si chi shi<br \/>\ntgamma1pm1 lgammas rgamma tgammaratio tgammadratio cgamma cgamma_sub clgamma<br \/>\nclgamma_sub crgamma crgamma_sub poch poch1<br \/>\nbeta lbeta cbeta cbeta_sub clbeta clbeta_sub<br \/>\ndigamma trigamma polygamma cdigamma cdigamma_sub<br \/>\ngammai gammaic gammait gammap gammaq gammapi gammaqi gammapia gammaqia gammapd<br \/>\nbetax betaxc ibeta ibetac ibetai ibetaci ibetaia ibetacia ibetaib ibetacib ibetad<br \/>\nzeta<br \/>\nerfi erfci dawson<br \/>\nbesj0 besj1 besjn besy0 besy1 besyn besjnu besynu besjnd besjnud besynd besynud<br \/>\nsbesjn sbesyn sbesjnu sbesynu<br \/>\nbesi0 besi0e besi1 besi1e besin besk0 besk0e besk1 besk1e beskn besinu besknu<br \/>\nbesind besknd besinud besknud sbesin sbeskn sbesinu sbesknu<br \/>\nairyai airybi airyaid airybid<br \/>\nchu hyp1f1 lhyp1f1 hyp1f1r hyp2f1 hyp0f1 hyp1f0 hyp2f0<br \/>\njelli jsn jcn jdn jns jnc jnd jsc jsd jdc jds jcs jcd<br \/>\ncelli1 celli2 celli3 elli1 elli2 elli3 rc rd rg rf rj jzeta<\/p>\n<h4>BLAS 2<\/h4>\n<p>dgemv dgbmv dsymv dsbmv dspmv dtrmv dtbmv dtpmv dtrsv dtbsv dtpsv dger dsyr dspr<br \/>\ndsyr2 dspr2<br \/>\nzgemv zgbmv zhemv zhbmv zhpmv zsymv zsbmv zspmv ztrmv ztbmv ztpmv ztrsv ztbsv<br \/>\nztpsv zgeru zgerc zher zhpr zsyr zspr zher2 zhpr2 zsyr2 zspr2<\/p>\n<h4>BLAS 3<\/h4>\n<p>dgemm dsymm dtrmm dtrsm dsyrk dsyr2k<br \/>\nzgemm zsymm zhemm ztrmm ztrsm zsyrk zherk zsyr2k zher2k<br \/>\n<\/div><\/div>\n<h3>LAPACKE\/CBLAS\u306e\u4f7f\u7528\u6cd5<\/h3>\n<p>C\/C++\u306b\u3064\u3044\u3066\u306fXLPack API\u7528\u306eLAPACKE\/CBLAS\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u6dfb\u4ed8\u3055\u308c\u3066\u3044\u307e\u3059. Windows\u306e\u5834\u5408\u306b\u306f Lapacke.lib (64\u30d3\u30c3\u30c8) \u307e\u305f\u306f Lapacke_32.lib (32\u30d3\u30c3\u30c8)\u3092\u30ea\u30f3\u30af\u3057\u307e\u3059. Lite\u7248\u306e\u5834\u5408\u306f Lapacke_Lite.lib (64\u30d3\u30c3\u30c8) \u307e\u305f\u306f Lapacke_Lite_32.lib (32\u30d3\u30c3\u30c8)\u3068\u306a\u308a\u307e\u3059. macOS\u306e\u5834\u5408\u306b\u306f libLapack.a \u307e\u305f\u306f libLapacke_Lite.a (Lite\u7248) \u3068\u306a\u308a\u307e\u3059.<\/p>\n<p>\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u306f lapacke.h \u304a\u3088\u3073 cblas.h \u3092\u4f7f\u7528\u3057\u307e\u3059. Lite\u7248\u306e\u5834\u5408\u306f lapacke_lite.h \u3068\u306a\u308a\u307e\u3059.<\/p>\n<p>\u3053\u308c\u3089\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308aLAPACKE\/CBLAS\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9(LAPACK\/BLAS\u306b\u542b\u307e\u308c\u308b\u6a19\u6e96C\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9)\u3067LAPACK\/BLAS\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059. \u5404\u95a2\u6570\u306e\u4f7f\u7528\u6cd5\u306b\u3064\u3044\u3066\u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u30b5\u30a4\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044.<br \/>\n<a href=\"https:\/\/www.netlib.org\/lapack\/lapacke.html\">LAPACKE\u306e\u8aac\u660e<\/a><br \/>\n<a href=\"https:\/\/www.netlib.org\/lapack\/explore-html\/\">LAPACK\u30de\u30cb\u30e5\u30a2\u30eb (LAPACKE\u304a\u3088\u3073CBLAS\u3092\u542b\u3080)<\/a><\/p>\n<p>XLPack\u306b\u542b\u307e\u308c\u3066\u3044\u308bLapack\/BLAS\u306e\u95a2\u6570\u306b\u5bfe\u5fdc\u3059\u308b\u4ee5\u4e0b\u306eLAPACKE\u304a\u3088\u3073CBLAS\u95a2\u6570\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059.<br \/>\n<div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>LAPACKE\/CBLAS\u95a2\u6570\u4e00\u89a7<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n(*)\u306fXLPack Lite\u3067\u4f7f\u7528\u3067\u304d\u308b\u3082\u306e\u3092\u793a\u3057\u307e\u3059.<\/p>\n<p>cblas_drotg cblas_drotmg cblas_drot cblas_drotm cblas_dswap cblas_dscal<br \/>\ncblas_dcopy cblas_daxpy cblas_ddot cblas_dsdot cblas_dnrm2 cblas_dasum<br \/>\ncblas_idamax<br \/>\ncblas_dgemv cblas_dgbmv cblas_dger cblas_dsbmv cblas_dspmv cblas_dspr<br \/>\ncblas_dspr2 cblas_dsymv cblas_dsyr cblas_dsyr2 cblas_dtbmv cblas_dtbsv<br \/>\ncblas_dtpmv cblas_dtpsv cblas_dtrmv cblas_dtrsv<br \/>\ncblas_dgemm cblas_dsymm cblas_dsyrk cblas_dsyr2k cblas_dtrmm cblas_dtrsm<\/p>\n<p>cblas_zswap cblas_zscal cblas_zdscal cblas_zcopy cblas_zaxpy cblas_zdotu_sub<br \/>\ncblas_zdotc_sub cblas_dznrm2 cblas_dzasum cblas_izamax<br \/>\ncblas_zgemv cblas_zgbmv cblas_zhemv cblas_zhbmv cblas_zhpmv cblas_ztrmv<br \/>\ncblas_ztbmv cblas_ztpmv cblas_ztrsv cblas_ztbsv cblas_ztpsv cblas_zgeru<br \/>\ncblas_zgerc cblas_zher cblas_zher2 cblas_zhpr cblas_zhpr2<br \/>\ncblas_zgemm cblas_zsymm cblas_zhemm cblas_zherk cblas_zher2k cblas_ztrmm<br \/>\ncblas_ztrsm cblas_zsyrk cblas_zsyr2k<\/p>\n<p>LAPACKE_ddisna LAPACKE_dgbcon LAPACKE_dgbsv LAPACKE_dgbsvx LAPACKE_dgbtrf<br \/>\nLAPACKE_dgbtrs LAPACKE_dgecon(*) LAPACKE_dgees LAPACKE_dgeesx LAPACKE_dgeev<br \/>\nLAPACKE_dgeevx LAPACKE_dgejsv LAPACKE_dgelqf LAPACKE_dgels(*) LAPACKE_dgelss<br \/>\nLAPACKE_dgelsy LAPACKE_dgeqp3 LAPACKE_dgeqrf LAPACKE_dgesv(*) LAPACKE_dgesvd<br \/>\nLAPACKE_dgesvdx LAPACKE_dgesvj LAPACKE_dgesvx LAPACKE_dgetrf LAPACKE_dgetri<br \/>\nLAPACKE_dgetrs LAPACKE_dgges LAPACKE_dggesx LAPACKE_dggev LAPACKE_dggevx<br \/>\nLAPACKE_dggglm LAPACKE_dgglse LAPACKE_dggsvd3 LAPACKE_dgtcon LAPACKE_dgtsv<br \/>\nLAPACKE_dgtsvx LAPACKE_dgttrf LAPACKE_dgttrs LAPACKE_dlamch(*) LAPACKE_dlange(*)<br \/>\nLAPACKE_dlansy(*) LAPACKE_dlantr LAPACKE_dorglq LAPACKE_dorgqr LAPACKE_dormlq<br \/>\nLAPACKE_dormqr LAPACKE_dpbcon LAPACKE_dpbsv LAPACKE_dpbsvx LAPACKE_dpbtrf<br \/>\nLAPACKE_dpbtrs LAPACKE_dpocon(*) LAPACKE_dposv(*) LAPACKE_dposvx LAPACKE_dpotrf<br \/>\nLAPACKE_dpotri LAPACKE_dpotrs LAPACKE_dppcon LAPACKE_dppsv LAPACKE_dppsvx<br \/>\nLAPACKE_dpptrf LAPACKE_dpptri LAPACKE_dpptrs LAPACKE_dptcon LAPACKE_dptsv<br \/>\nLAPACKE_dptsvx LAPACKE_dpttrf LAPACKE_dpttrs LAPACKE_dsbev LAPACKE_dsbevx<br \/>\nLAPACKE_dsbgv LAPACKE_dsbgvx LAPACKE_dsgesv LAPACKE_dspcon LAPACKE_dspev<br \/>\nLAPACKE_dspevx LAPACKE_dspgv LAPACKE_dspgvx LAPACKE_dsposv LAPACKE_dspsv<br \/>\nLAPACKE_dspsvx LAPACKE_dsptrf LAPACKE_dsptri LAPACKE_dsptrs LAPACKE_dstev<br \/>\nLAPACKE_dstevx LAPACKE_dsycon LAPACKE_dsyev(*) LAPACKE_dsyevx LAPACKE_dsygv<br \/>\nLAPACKE_dsygvx LAPACKE_dsysv LAPACKE_dsysvx LAPACKE_dsytrf LAPACKE_dsytri<br \/>\nLAPACKE_dsytrs LAPACKE_dtbcon LAPACKE_dtbtrs LAPACKE_dtpcon LAPACKE_dtptri<br \/>\nLAPACKE_dtptrs LAPACKE_dtrcon LAPACKE_dtrtri LAPACKE_dtrtrs LAPACKE_dtrttf<br \/>\nLAPACKE_dlatms<\/p>\n<p>LAPACKE_slamch<\/p>\n<p>LAPACKE_zcgesv LAPACKE_zcposv LAPACKE_zgbcon LAPACKE_zgbsv LAPACKE_zgbsvx<br \/>\nLAPACKE_zgbtrf LAPACKE_zgbtrs LAPACKE_zgecon LAPACKE_zgees LAPACKE_zgeesx<br \/>\nLAPACKE_zgeev LAPACKE_zgeevx LAPACKE_zgejsv LAPACKE_zgelqf LAPACKE_zgels<br \/>\nLAPACKE_zgelss LAPACKE_zgelsy LAPACKE_zgeqp3 LAPACKE_zgeqrf LAPACKE_zgesv<br \/>\nLAPACKE_zgesvd LAPACKE_zgesvdx LAPACKE_zgesvj LAPACKE_zgesvx LAPACKE_zgetrf<br \/>\nLAPACKE_zgetri LAPACKE_zgetrs LAPACKE_zgges LAPACKE_zggesx LAPACKE_zggev<br \/>\nLAPACKE_zggevx LAPACKE_zggglm LAPACKE_zgglse LAPACKE_zggsvd3 LAPACKE_zgtcon<br \/>\nLAPACKE_zgtsv LAPACKE_zgtsvx LAPACKE_zgttrf LAPACKE_zgttrs LAPACKE_zhbev<br \/>\nLAPACKE_zhbevx LAPACKE_zhbgv LAPACKE_zhbgvx LAPACKE_zhecon LAPACKE_zheev<br \/>\nLAPACKE_zheevx LAPACKE_zhegv LAPACKE_zhegvx LAPACKE_zhesv LAPACKE_zhesvx<br \/>\nLAPACKE_zhetrf LAPACKE_zhetri LAPACKE_zhetrs LAPACKE_zhpcon LAPACKE_zhpev<br \/>\nLAPACKE_zhpevx LAPACKE_zhpgv LAPACKE_zhpgvx LAPACKE_zhpsv LAPACKE_zhpsvx<br \/>\nLAPACKE_zhptrf LAPACKE_zhptri LAPACKE_zhptrs LAPACKE_zlange LAPACKE_zlanhe<br \/>\nLAPACKE_zlansy LAPACKE_zlantr LAPACKE_zpbcon LAPACKE_zpbsv LAPACKE_zpbsvx<br \/>\nLAPACKE_zpbtrf LAPACKE_zpbtrs LAPACKE_zpocon LAPACKE_zposv LAPACKE_zposvx<br \/>\nLAPACKE_zpotrf LAPACKE_zpotri LAPACKE_zpotrs LAPACKE_zppcon LAPACKE_zppsv<br \/>\nLAPACKE_zppsvx LAPACKE_zpptrf LAPACKE_zpptri LAPACKE_zpptrs LAPACKE_zptcon<br \/>\nLAPACKE_zptsv LAPACKE_zptsvx LAPACKE_zpttrf LAPACKE_zpttrs LAPACKE_zspcon<br \/>\nLAPACKE_zspsv LAPACKE_zspsvx LAPACKE_zsptrf LAPACKE_zsptri LAPACKE_zsptrs<br \/>\nLAPACKE_zsycon LAPACKE_zsyr LAPACKE_zsysv LAPACKE_zsysvx LAPACKE_zsytrf<br \/>\nLAPACKE_zsytri LAPACKE_zsytrs LAPACKE_ztbcon LAPACKE_ztbtrs LAPACKE_ztpcon<br \/>\nLAPACKE_ztptri LAPACKE_ztptrs LAPACKE_ztpttf LAPACKE_ztrcon LAPACKE_ztrtri<br \/>\nLAPACKE_ztrtrs LAPACKE_ztrttf LAPACKE_zunglq LAPACKE_zungqr LAPACKE_zunmlq<br \/>\nLAPACKE_zunmqr LAPACKE_zlatms<br \/>\n<\/div><\/div>\n\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u51fa\u529b\u306b\u95a2\u3057\u3066\u30aa\u30ea\u30b8\u30ca\u30eb\u3068\u7570\u306a\u308a\u4e00\u90e8\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066Lapacke\/CBLAS\u3067\u306f\u306a\u304f\u5143\u306eLapack\/BLAS\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u3055\u308c\u307e\u3059. \u305d\u306e\u5834\u5408, \u5f15\u6570\u306e\u756a\u53f7\u304cLapacke\/CBLAS\u3068\u306f\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044.<\/p>\n<p>\u30aa\u30ea\u30b8\u30ca\u30eb\u306eLAPACKE\u306b\u306f\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u4ee5\u4e0b\u306e\u95a2\u6570\u3092\u62e1\u5f35\u6a5f\u80fd\u3068\u3057\u3066\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059.<br \/>\n<div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>LAPACKE\u8ffd\u52a0\u95a2\u6570\u4e00\u89a7<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\ndouble LAPACKE_dlangb(int matrix_layout, char norm, lapack_int n, lapack_int kl, lapack_int ku, const double *ab, lapack_int ldab)<br \/>\ndouble LAPACKE_dlangt(char norm, lapack_int n, const double *dl, const double *d, const double *du)<br \/>\ndouble LAPACKE_dlansb(int matrix_layout, char norm, char uplo, lapack_int n, lapack_int k, const double *ab, lapack_int ldab)<br \/>\ndouble LAPACKE_dlansp(int matrix_layout, char norm, char uplo, lapack_int n, const double *ap)<br \/>\ndouble LAPACKE_dlanst(char norm, lapack_int n, const double *d, const double *e)<br \/>\ndouble LAPACKE_zlangb(int matrix_layout, char norm, lapack_int n, lapack_int kl, lapack_int ku, const lapack_complex_double *ab, lapack_int ldab)<br \/>\ndouble LAPACKE_zlangt(char norm, lapack_int n, const lapack_complex_double *dl, const lapack_complex_double *d, const lapack_complex_double *du)<br \/>\ndouble LAPACKE_zlanhb(int matrix_layout, char norm, char uplo, lapack_int n, lapack_int k, const lapack_complex_double *ab, lapack_int ldab)<br \/>\ndouble LAPACKE_zlanhp(int matrix_layout, char norm, char uplo, lapack_int n, const lapack_complex_double *ap)<br \/>\ndouble LAPACKE_zlanht(char norm, lapack_int n, const double *d, const lapack_complex_double *e)<br \/>\ndouble LAPACKE_zlansp(int matrix_layout, char norm, char uplo, lapack_int n, const lapack_complex_double *ap)<br \/>\n<\/div><\/div>\n<h3>API\u306e\u4f7f\u7528\u4f8b<\/h3>\n<p>\u4ee5\u4e0b, API\u306e\u4f7f\u7528\u4f8b\u3092\u793a\u3057\u307e\u3059.<br \/>\n\u3053\u3053\u3067\u306f\u6b21\u306e2\u3064\u306e\u4f8b\u984c\u3092\u4f7f\u7528\u3057\u3066dgesv\u3068qk15\u306e\u4f7f\u7528\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059. \u305d\u306e\u4ed6\u306e\u95a2\u6570\u306e\u4f7f\u7528\u4f8b\u306b\u3064\u3044\u3066\u306fSDK\u306b\u5165\u3063\u3066\u3044\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u53c2\u7167\u304f\u3060\u3055\u3044.<\/p>\n<h4>\u4f8b\u984c(1)<\/h4>\n<p>\u9023\u7acb\u4e00\u6b21\u65b9\u7a0b\u5f0f Ax = B \u3092\u89e3\u304f. \u305f\u3060\u3057, \u4fc2\u6570\u884c\u5217A, \u53f3\u8fba\u884c\u5217B \u304a\u3088\u3073 \u89e3x \u306f\u6b21\u306e\u3068\u304a\u308a.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\"><code>      (  0.2  -0.11 -0.93 )       ( -0.3727 )       ( 0.86 )\r\n  A = ( -0.32  0.81  0.37 ),  B = (  0.4319 ),  x = ( 0.64 )\r\n      ( -0.8  -0.92 -0.29 )       ( -1.4247 )       ( 0.51 )\r\n<\/code><\/pre>\n<\/div>\n<h4>\u4f8b\u984c(2)<\/h4>\n<p>\u6b21\u306e\u5b9a\u7a4d\u5206\u3092\u6c42\u3081\u308b. \u53b3\u5bc6\u89e3\u306f atan(4) = 1.32581766366803 \u3067\u3042\u308b.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\"><code>  \u222b 1\/(1 + x^2) dx [0, 4]\r\n<\/code><\/pre>\n<\/div>\n<ul>\n<li><a href=\"https:\/\/www.ktech.biz\/jp\/manual-api\/c\/\">C\/C++ \u4f7f\u7528\u4f8b<\/a><\/li>\n<li><a href=\"https:\/\/www.ktech.biz\/jp\/manual-api\/python\/\">Python \u4f7f\u7528\u4f8b<\/a><\/li>\n<li><a href=\"https:\/\/www.ktech.biz\/jp\/manual-api\/julia\/\">Julia \u4f7f\u7528\u4f8b<\/a><\/li>\n<li><a href=\"https:\/\/www.ktech.biz\/jp\/manual-api\/cs\/\">C# \u4f7f\u7528\u4f8b<\/a><\/li>\n<li><a href=\"https:\/\/www.ktech.biz\/jp\/manual-api\/fs\/\">F# \u4f7f\u7528\u4f8b<\/a><\/li>\n<li><a href=\"https:\/\/www.ktech.biz\/jp\/manual-api\/vb\/\">VB.Net \u4f7f\u7528\u4f8b<\/a><\/li>\n<li><a href=\"https:\/\/www.ktech.biz\/jp\/manual-api\/pascal\/\">Pascal \u4f7f\u7528\u4f8b<\/a><\/li>\n<\/ul>\n<hr>\n<h3><strong>\u5f15\u7528\u30e9\u30a4\u30d6\u30e9\u30ea<\/strong><\/h3>\n<p>LAPACK: http:\/\/www.netlib.org\/lapack\/<br \/>\nSLATEC: http:\/\/www.netlib.org\/slatec\/<br \/>\nMINPACK: http:\/\/www.netlib.org\/minpack\/<br \/>\n<em>Note &#8211; MINPACK software is included with some modifications under <a href=\"\/doc\/copyright\/minpack.txt\">the MINPACK Software License<\/a><br \/>\nAcknowledgment &#8211; This product includes software developed by the University of Chicago, as Operator of Argonne National Laboratory<\/em><br \/>\nCMLIB: Center for Computing and Applied Mathematics, NIST<br \/>\nFFTPACK5: http:\/\/www2.cisl.ucar.edu\/resources\/legacy\/fftpack5<br \/>\n<em>Note &#8211; FFTPACK5 software is included with some modifications under <a href=\"\/doc\/copyright\/fftpack5.txt\">the FFTPACK5 Software License<\/a><\/em><br \/>\nMersenne Twister: http:\/\/www.math.sci.hiroshima-u.ac.jp\/~m-mat\/MT\/mt.html<br \/>\nBoost: http:\/\/www.boost.org\/<br \/>\nCephes: http:\/\/www.netlib.org\/cephes\/<br \/>\nFn: http:\/\/www.netlib.org\/fn\/<\/p>\n<h3>\u53c2\u8003\u6587\u732e<\/h3>\n<p>D. Kahaner, C. Moler, S. Nash, &#8220;Numerical Methods and Software&#8221;, Prentice-Hall (1989)<br \/>\n\u68ee\u6b63\u6b66, \u300cFORTRAN77\u6570\u5024\u8a08\u7b97\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300d\u5ca9\u6ce2\u66f8\u5e97 (1987)<br \/>\nD. E. Knuth, \u201cThe Art of Computer Programming Third Edition, Vol. 2 \/ Seminumerical Algorithms\u201d, Addison Wesley Longman (1998)<br \/>\nE. Hairer, et al., \u201cSolving Ordinary Differential Equations I\u201d, Springer-Verlag (1993) (Note)<br \/>\nE. Hairer, et al., \u201cSolving Ordinary Differential Equations II\u201d, Springer-Verlag (1996) (Note)<br \/>\n<em>Note &#8211; E. Hairer&#8217;s software is included with some modifications under <a href=\"\/doc\/copyright\/hairer.txt\">Ernst Hairer&#8217;s License<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>XLPack API\u3068\u306f | \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 | \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb | API \u306e\u4f7f\u7528\u6cd5 | LAPACKE\/CBLAS\u306e\u4f7f\u7528\u6cd5 | API\u306e\u4f7f\u7528\u4f8b [&#8230;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-2170","post","type-post","status-publish","format-standard","hentry","category-manual"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/posts\/2170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/comments?post=2170"}],"version-history":[{"count":5,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/posts\/2170\/revisions"}],"predecessor-version":[{"id":3991,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/posts\/2170\/revisions\/3991"}],"wp:attachment":[{"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/media?parent=2170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/categories?post=2170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktech.biz\/jp\/wp-json\/wp\/v2\/tags?post=2170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}