@ohos-ports/stdlib-complex 0.0.0-stage → 0.4.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (603) hide show
  1. package/LICENSE +177 -0
  2. package/NOTICE +1 -0
  3. package/README.md +222 -2
  4. package/SECURITY.md +5 -0
  5. package/base/README.md +114 -0
  6. package/base/assert/README.md +108 -0
  7. package/base/assert/docs/types/index.d.ts +94 -0
  8. package/base/assert/docs/types/test.ts +29 -0
  9. package/base/assert/is-almost-equal/README.md +159 -0
  10. package/base/assert/is-almost-equal/docs/repl.txt +45 -0
  11. package/base/assert/is-almost-equal/docs/types/index.d.ts +56 -0
  12. package/base/assert/is-almost-equal/docs/types/test.ts +83 -0
  13. package/base/assert/is-almost-equal/lib/index.js +48 -0
  14. package/base/assert/is-almost-equal/lib/main.js +89 -0
  15. package/base/assert/is-almost-equal/package.json +73 -0
  16. package/base/assert/is-almost-same-value/README.md +159 -0
  17. package/base/assert/is-almost-same-value/docs/repl.txt +41 -0
  18. package/base/assert/is-almost-same-value/docs/types/index.d.ts +55 -0
  19. package/base/assert/is-almost-same-value/docs/types/test.ts +83 -0
  20. package/base/assert/is-almost-same-value/lib/index.js +48 -0
  21. package/base/assert/is-almost-same-value/lib/main.js +91 -0
  22. package/base/assert/is-almost-same-value/package.json +73 -0
  23. package/base/assert/lib/index.js +60 -0
  24. package/base/assert/package.json +62 -0
  25. package/base/cast-return/README.md +128 -0
  26. package/base/cast-return/docs/repl.txt +41 -0
  27. package/base/cast-return/docs/types/index.d.ts +378 -0
  28. package/base/cast-return/docs/types/test.ts +192 -0
  29. package/base/cast-return/lib/index.js +46 -0
  30. package/base/cast-return/lib/main.js +204 -0
  31. package/base/cast-return/package.json +65 -0
  32. package/base/docs/types/index.d.ts +130 -0
  33. package/base/docs/types/test.ts +29 -0
  34. package/base/lib/index.js +78 -0
  35. package/base/package.json +61 -0
  36. package/base/parse/README.md +137 -0
  37. package/base/parse/docs/repl.txt +21 -0
  38. package/base/parse/docs/types/index.d.ts +42 -0
  39. package/base/parse/docs/types/test.ts +34 -0
  40. package/base/parse/lib/index.js +42 -0
  41. package/base/parse/lib/main.js +124 -0
  42. package/base/parse/package.json +71 -0
  43. package/base/wrap-function/README.md +128 -0
  44. package/base/wrap-function/docs/repl.txt +43 -0
  45. package/base/wrap-function/docs/types/index.d.ts +417 -0
  46. package/base/wrap-function/docs/types/test.ts +629 -0
  47. package/base/wrap-function/lib/index.js +46 -0
  48. package/base/wrap-function/lib/main.js +225 -0
  49. package/base/wrap-function/package.json +63 -0
  50. package/cmplx/README.md +137 -0
  51. package/cmplx/docs/repl.txt +35 -0
  52. package/cmplx/docs/types/index.d.ts +44 -0
  53. package/cmplx/docs/types/test.ts +66 -0
  54. package/cmplx/lib/index.js +40 -0
  55. package/cmplx/lib/main.js +66 -0
  56. package/cmplx/package.json +63 -0
  57. package/ctors/README.md +136 -0
  58. package/ctors/docs/repl.txt +29 -0
  59. package/ctors/docs/types/index.d.ts +67 -0
  60. package/ctors/docs/types/test.ts +35 -0
  61. package/ctors/lib/ctors.js +38 -0
  62. package/ctors/lib/index.js +43 -0
  63. package/ctors/lib/main.js +49 -0
  64. package/ctors/package.json +72 -0
  65. package/docs/types/index.d.ts +151 -0
  66. package/dtype/README.md +142 -0
  67. package/dtype/docs/repl.txt +28 -0
  68. package/dtype/docs/types/index.d.ts +82 -0
  69. package/dtype/docs/types/test.ts +36 -0
  70. package/dtype/lib/ctor2dtype.js +32 -0
  71. package/dtype/lib/ctors.js +38 -0
  72. package/dtype/lib/dtypes.js +33 -0
  73. package/dtype/lib/index.js +49 -0
  74. package/dtype/lib/main.js +65 -0
  75. package/dtype/package.json +67 -0
  76. package/dtypes/README.md +142 -0
  77. package/dtypes/docs/repl.txt +22 -0
  78. package/dtypes/docs/types/index.d.ts +39 -0
  79. package/dtypes/docs/types/test.ts +33 -0
  80. package/dtypes/lib/dtypes.json +4 -0
  81. package/dtypes/lib/index.js +40 -0
  82. package/dtypes/lib/main.js +44 -0
  83. package/dtypes/package.json +68 -0
  84. package/float32/README.md +137 -0
  85. package/float32/base/README.md +140 -0
  86. package/float32/base/add/README.md +279 -0
  87. package/float32/base/add/docs/repl.txt +118 -0
  88. package/float32/base/add/docs/types/index.d.ts +136 -0
  89. package/float32/base/add/docs/types/test.ts +356 -0
  90. package/float32/base/add/include/stdlib/complex/float32/base/add.h +40 -0
  91. package/float32/base/add/lib/assign.js +55 -0
  92. package/float32/base/add/lib/index.js +54 -0
  93. package/float32/base/add/lib/main.js +55 -0
  94. package/float32/base/add/lib/native.js +53 -0
  95. package/float32/base/add/lib/strided.js +60 -0
  96. package/float32/base/add/manifest.json +75 -0
  97. package/float32/base/add/package.json +69 -0
  98. package/float32/base/add/src/addon.c +22 -0
  99. package/float32/base/add/src/main.c +60 -0
  100. package/float32/base/add3/README.md +275 -0
  101. package/float32/base/add3/docs/repl.txt +133 -0
  102. package/float32/base/add3/docs/types/index.d.ts +145 -0
  103. package/float32/base/add3/docs/types/test.ts +465 -0
  104. package/float32/base/add3/include/stdlib/complex/float32/base/add3.h +40 -0
  105. package/float32/base/add3/lib/assign.js +57 -0
  106. package/float32/base/add3/lib/index.js +54 -0
  107. package/float32/base/add3/lib/main.js +56 -0
  108. package/float32/base/add3/lib/native.js +54 -0
  109. package/float32/base/add3/lib/strided.js +64 -0
  110. package/float32/base/add3/manifest.json +75 -0
  111. package/float32/base/add3/package.json +69 -0
  112. package/float32/base/add3/src/addon.c +22 -0
  113. package/float32/base/add3/src/main.c +64 -0
  114. package/float32/base/assert/README.md +120 -0
  115. package/float32/base/assert/docs/types/index.d.ts +181 -0
  116. package/float32/base/assert/docs/types/test.ts +29 -0
  117. package/float32/base/assert/is-almost-equal/README.md +158 -0
  118. package/float32/base/assert/is-almost-equal/docs/repl.txt +45 -0
  119. package/float32/base/assert/is-almost-equal/docs/types/index.d.ts +56 -0
  120. package/float32/base/assert/is-almost-equal/docs/types/test.ts +83 -0
  121. package/float32/base/assert/is-almost-equal/lib/index.js +48 -0
  122. package/float32/base/assert/is-almost-equal/lib/main.js +67 -0
  123. package/float32/base/assert/is-almost-equal/package.json +73 -0
  124. package/float32/base/assert/is-almost-same-value/README.md +158 -0
  125. package/float32/base/assert/is-almost-same-value/docs/repl.txt +43 -0
  126. package/float32/base/assert/is-almost-same-value/docs/types/index.d.ts +55 -0
  127. package/float32/base/assert/is-almost-same-value/docs/types/test.ts +83 -0
  128. package/float32/base/assert/is-almost-same-value/lib/index.js +48 -0
  129. package/float32/base/assert/is-almost-same-value/lib/main.js +69 -0
  130. package/float32/base/assert/is-almost-same-value/package.json +74 -0
  131. package/float32/base/assert/is-equal/README.md +221 -0
  132. package/float32/base/assert/is-equal/docs/repl.txt +27 -0
  133. package/float32/base/assert/is-equal/docs/types/index.d.ts +46 -0
  134. package/float32/base/assert/is-equal/docs/types/test.ts +67 -0
  135. package/float32/base/assert/is-equal/include/stdlib/complex/float32/base/assert/is_equal.h +41 -0
  136. package/float32/base/assert/is-equal/lib/index.js +44 -0
  137. package/float32/base/assert/is-equal/lib/main.js +56 -0
  138. package/float32/base/assert/is-equal/manifest.json +59 -0
  139. package/float32/base/assert/is-equal/package.json +71 -0
  140. package/float32/base/assert/is-equal/src/main.c +48 -0
  141. package/float32/base/assert/is-not-equal/README.md +221 -0
  142. package/float32/base/assert/is-not-equal/docs/repl.txt +28 -0
  143. package/float32/base/assert/is-not-equal/docs/types/index.d.ts +46 -0
  144. package/float32/base/assert/is-not-equal/docs/types/test.ts +67 -0
  145. package/float32/base/assert/is-not-equal/include/stdlib/complex/float32/base/assert/is_not_equal.h +41 -0
  146. package/float32/base/assert/is-not-equal/lib/index.js +44 -0
  147. package/float32/base/assert/is-not-equal/lib/main.js +56 -0
  148. package/float32/base/assert/is-not-equal/manifest.json +59 -0
  149. package/float32/base/assert/is-not-equal/package.json +72 -0
  150. package/float32/base/assert/is-not-equal/src/main.c +48 -0
  151. package/float32/base/assert/is-same-value/README.md +245 -0
  152. package/float32/base/assert/is-same-value/docs/repl.txt +31 -0
  153. package/float32/base/assert/is-same-value/docs/types/index.d.ts +53 -0
  154. package/float32/base/assert/is-same-value/docs/types/test.ts +67 -0
  155. package/float32/base/assert/is-same-value/include/stdlib/complex/float32/base/assert/is_same_value.h +41 -0
  156. package/float32/base/assert/is-same-value/lib/index.js +44 -0
  157. package/float32/base/assert/is-same-value/lib/main.js +64 -0
  158. package/float32/base/assert/is-same-value/manifest.json +61 -0
  159. package/float32/base/assert/is-same-value/package.json +74 -0
  160. package/float32/base/assert/is-same-value/src/main.c +52 -0
  161. package/float32/base/assert/is-same-value-zero/README.md +247 -0
  162. package/float32/base/assert/is-same-value-zero/docs/repl.txt +31 -0
  163. package/float32/base/assert/is-same-value-zero/docs/types/index.d.ts +50 -0
  164. package/float32/base/assert/is-same-value-zero/docs/types/test.ts +67 -0
  165. package/float32/base/assert/is-same-value-zero/include/stdlib/complex/float32/base/assert/is_same_value_zero.h +41 -0
  166. package/float32/base/assert/is-same-value-zero/lib/index.js +44 -0
  167. package/float32/base/assert/is-same-value-zero/lib/main.js +62 -0
  168. package/float32/base/assert/is-same-value-zero/manifest.json +61 -0
  169. package/float32/base/assert/is-same-value-zero/package.json +74 -0
  170. package/float32/base/assert/is-same-value-zero/src/main.c +52 -0
  171. package/float32/base/assert/lib/index.js +96 -0
  172. package/float32/base/assert/package.json +63 -0
  173. package/float32/base/docs/types/index.d.ts +297 -0
  174. package/float32/base/docs/types/test.ts +29 -0
  175. package/float32/base/identity/README.md +233 -0
  176. package/float32/base/identity/docs/img/equation_identity_function.svg +18 -0
  177. package/float32/base/identity/docs/repl.txt +27 -0
  178. package/float32/base/identity/docs/types/index.d.ts +42 -0
  179. package/float32/base/identity/docs/types/test.ts +45 -0
  180. package/float32/base/identity/include/stdlib/complex/float32/base/identity.h +40 -0
  181. package/float32/base/identity/lib/index.js +41 -0
  182. package/float32/base/identity/lib/main.js +42 -0
  183. package/float32/base/identity/lib/native.js +50 -0
  184. package/float32/base/identity/manifest.json +75 -0
  185. package/float32/base/identity/package.json +68 -0
  186. package/float32/base/identity/src/addon.c +22 -0
  187. package/float32/base/identity/src/main.c +44 -0
  188. package/float32/base/lib/index.js +123 -0
  189. package/float32/base/mul/README.md +281 -0
  190. package/float32/base/mul/docs/repl.txt +120 -0
  191. package/float32/base/mul/docs/types/index.d.ts +138 -0
  192. package/float32/base/mul/docs/types/test.ts +356 -0
  193. package/float32/base/mul/include/stdlib/complex/float32/base/mul.h +40 -0
  194. package/float32/base/mul/lib/assign.js +55 -0
  195. package/float32/base/mul/lib/index.js +55 -0
  196. package/float32/base/mul/lib/main.js +60 -0
  197. package/float32/base/mul/lib/native.js +54 -0
  198. package/float32/base/mul/lib/strided.js +64 -0
  199. package/float32/base/mul/manifest.json +95 -0
  200. package/float32/base/mul/package.json +69 -0
  201. package/float32/base/mul/src/addon.c +22 -0
  202. package/float32/base/mul/src/main.c +61 -0
  203. package/float32/base/mul-add/README.md +286 -0
  204. package/float32/base/mul-add/docs/repl.txt +141 -0
  205. package/float32/base/mul-add/docs/types/index.d.ts +151 -0
  206. package/float32/base/mul-add/docs/types/test.ts +465 -0
  207. package/float32/base/mul-add/include/stdlib/complex/float32/base/mul_add.h +40 -0
  208. package/float32/base/mul-add/lib/assign.js +57 -0
  209. package/float32/base/mul-add/lib/index.js +56 -0
  210. package/float32/base/mul-add/lib/main.js +64 -0
  211. package/float32/base/mul-add/lib/native.js +56 -0
  212. package/float32/base/mul-add/lib/strided.js +70 -0
  213. package/float32/base/mul-add/manifest.json +75 -0
  214. package/float32/base/mul-add/package.json +70 -0
  215. package/float32/base/mul-add/src/addon.c +22 -0
  216. package/float32/base/mul-add/src/main.c +66 -0
  217. package/float32/base/neg/README.md +259 -0
  218. package/float32/base/neg/docs/repl.txt +28 -0
  219. package/float32/base/neg/docs/types/index.d.ts +60 -0
  220. package/float32/base/neg/docs/types/test.ts +51 -0
  221. package/float32/base/neg/include/stdlib/complex/float32/base/neg.h +40 -0
  222. package/float32/base/neg/lib/index.js +61 -0
  223. package/float32/base/neg/lib/main.js +67 -0
  224. package/float32/base/neg/lib/native.js +68 -0
  225. package/float32/base/neg/manifest.json +75 -0
  226. package/float32/base/neg/package.json +67 -0
  227. package/float32/base/neg/src/addon.c +22 -0
  228. package/float32/base/neg/src/main.c +50 -0
  229. package/float32/base/package.json +67 -0
  230. package/float32/base/scale/README.md +263 -0
  231. package/float32/base/scale/docs/repl.txt +110 -0
  232. package/float32/base/scale/docs/types/index.d.ts +131 -0
  233. package/float32/base/scale/docs/types/test.ts +296 -0
  234. package/float32/base/scale/include/stdlib/complex/float32/base/scale.h +40 -0
  235. package/float32/base/scale/lib/assign.js +54 -0
  236. package/float32/base/scale/lib/index.js +54 -0
  237. package/float32/base/scale/lib/main.js +53 -0
  238. package/float32/base/scale/lib/native.js +53 -0
  239. package/float32/base/scale/lib/strided.js +57 -0
  240. package/float32/base/scale/manifest.json +75 -0
  241. package/float32/base/scale/package.json +69 -0
  242. package/float32/base/scale/src/addon.c +22 -0
  243. package/float32/base/scale/src/main.c +51 -0
  244. package/float32/base/sub/README.md +225 -0
  245. package/float32/base/sub/docs/repl.txt +33 -0
  246. package/float32/base/sub/docs/types/index.d.ts +46 -0
  247. package/float32/base/sub/docs/types/test.ts +67 -0
  248. package/float32/base/sub/include/stdlib/complex/float32/base/sub.h +40 -0
  249. package/float32/base/sub/lib/index.js +44 -0
  250. package/float32/base/sub/lib/main.js +56 -0
  251. package/float32/base/sub/lib/native.js +54 -0
  252. package/float32/base/sub/manifest.json +75 -0
  253. package/float32/base/sub/package.json +72 -0
  254. package/float32/base/sub/src/addon.c +22 -0
  255. package/float32/base/sub/src/main.c +62 -0
  256. package/float32/conj/README.md +258 -0
  257. package/float32/conj/docs/repl.txt +27 -0
  258. package/float32/conj/docs/types/index.d.ts +42 -0
  259. package/float32/conj/docs/types/test.ts +45 -0
  260. package/float32/conj/include/stdlib/complex/float32/conj.h +40 -0
  261. package/float32/conj/lib/index.js +43 -0
  262. package/float32/conj/lib/main.js +42 -0
  263. package/float32/conj/manifest.json +75 -0
  264. package/float32/conj/package.json +64 -0
  265. package/float32/conj/src/main.c +49 -0
  266. package/float32/ctor/README.md +547 -0
  267. package/float32/ctor/docs/repl.txt +93 -0
  268. package/float32/ctor/docs/types/index.d.ts +120 -0
  269. package/float32/ctor/docs/types/test.ts +59 -0
  270. package/float32/ctor/include/stdlib/complex/float32/ctor.h +148 -0
  271. package/float32/ctor/lib/index.js +40 -0
  272. package/float32/ctor/lib/main.js +164 -0
  273. package/float32/ctor/lib/tojson.js +39 -0
  274. package/float32/ctor/lib/tostring.js +42 -0
  275. package/float32/ctor/manifest.json +38 -0
  276. package/float32/ctor/package.json +70 -0
  277. package/float32/ctor/src/main.c +151 -0
  278. package/float32/docs/types/index.d.ts +151 -0
  279. package/float32/docs/types/test.ts +29 -0
  280. package/float32/imag/README.md +239 -0
  281. package/float32/imag/docs/repl.txt +24 -0
  282. package/float32/imag/docs/types/index.d.ts +44 -0
  283. package/float32/imag/docs/types/test.ts +45 -0
  284. package/float32/imag/include/stdlib/complex/float32/imag.h +40 -0
  285. package/float32/imag/lib/index.js +43 -0
  286. package/float32/imag/lib/main.js +42 -0
  287. package/float32/imag/manifest.json +40 -0
  288. package/float32/imag/package.json +67 -0
  289. package/float32/imag/src/main.c +42 -0
  290. package/float32/lib/index.js +114 -0
  291. package/float32/package.json +61 -0
  292. package/float32/parse/README.md +133 -0
  293. package/float32/parse/docs/repl.txt +22 -0
  294. package/float32/parse/docs/types/index.d.ts +46 -0
  295. package/float32/parse/docs/types/test.ts +44 -0
  296. package/float32/parse/lib/index.js +42 -0
  297. package/float32/parse/lib/main.js +90 -0
  298. package/float32/parse/package.json +67 -0
  299. package/float32/real/README.md +239 -0
  300. package/float32/real/docs/repl.txt +24 -0
  301. package/float32/real/docs/types/index.d.ts +44 -0
  302. package/float32/real/docs/types/test.ts +45 -0
  303. package/float32/real/include/stdlib/complex/float32/real.h +40 -0
  304. package/float32/real/lib/index.js +43 -0
  305. package/float32/real/lib/main.js +42 -0
  306. package/float32/real/manifest.json +40 -0
  307. package/float32/real/package.json +67 -0
  308. package/float32/real/src/main.c +42 -0
  309. package/float32/reim/README.md +248 -0
  310. package/float32/reim/docs/repl.txt +24 -0
  311. package/float32/reim/docs/types/index.d.ts +44 -0
  312. package/float32/reim/docs/types/test.ts +45 -0
  313. package/float32/reim/include/stdlib/complex/float32/reim.h +40 -0
  314. package/float32/reim/lib/index.js +43 -0
  315. package/float32/reim/lib/main.js +52 -0
  316. package/float32/reim/manifest.json +40 -0
  317. package/float32/reim/package.json +67 -0
  318. package/float32/reim/src/main.c +46 -0
  319. package/float32/reviver/README.md +145 -0
  320. package/float32/reviver/docs/repl.txt +26 -0
  321. package/float32/reviver/docs/types/index.d.ts +41 -0
  322. package/float32/reviver/docs/types/test.ts +50 -0
  323. package/float32/reviver/lib/index.js +43 -0
  324. package/float32/reviver/lib/main.js +60 -0
  325. package/float32/reviver/package.json +72 -0
  326. package/float64/README.md +137 -0
  327. package/float64/base/README.md +143 -0
  328. package/float64/base/add/README.md +279 -0
  329. package/float64/base/add/docs/repl.txt +118 -0
  330. package/float64/base/add/docs/types/index.d.ts +136 -0
  331. package/float64/base/add/docs/types/test.ts +357 -0
  332. package/float64/base/add/include/stdlib/complex/float64/base/add.h +40 -0
  333. package/float64/base/add/lib/assign.js +50 -0
  334. package/float64/base/add/lib/index.js +54 -0
  335. package/float64/base/add/lib/main.js +54 -0
  336. package/float64/base/add/lib/native.js +53 -0
  337. package/float64/base/add/lib/strided.js +55 -0
  338. package/float64/base/add/manifest.json +75 -0
  339. package/float64/base/add/package.json +68 -0
  340. package/float64/base/add/src/addon.c +22 -0
  341. package/float64/base/add/src/main.c +60 -0
  342. package/float64/base/add3/README.md +275 -0
  343. package/float64/base/add3/docs/repl.txt +133 -0
  344. package/float64/base/add3/docs/types/index.d.ts +145 -0
  345. package/float64/base/add3/docs/types/test.ts +467 -0
  346. package/float64/base/add3/include/stdlib/complex/float64/base/add3.h +40 -0
  347. package/float64/base/add3/lib/assign.js +52 -0
  348. package/float64/base/add3/lib/index.js +54 -0
  349. package/float64/base/add3/lib/main.js +55 -0
  350. package/float64/base/add3/lib/native.js +54 -0
  351. package/float64/base/add3/lib/strided.js +59 -0
  352. package/float64/base/add3/manifest.json +75 -0
  353. package/float64/base/add3/package.json +68 -0
  354. package/float64/base/add3/src/addon.c +22 -0
  355. package/float64/base/add3/src/main.c +64 -0
  356. package/float64/base/assert/README.md +120 -0
  357. package/float64/base/assert/docs/types/index.d.ts +181 -0
  358. package/float64/base/assert/docs/types/test.ts +29 -0
  359. package/float64/base/assert/is-almost-equal/README.md +158 -0
  360. package/float64/base/assert/is-almost-equal/docs/repl.txt +45 -0
  361. package/float64/base/assert/is-almost-equal/docs/types/index.d.ts +56 -0
  362. package/float64/base/assert/is-almost-equal/docs/types/test.ts +83 -0
  363. package/float64/base/assert/is-almost-equal/lib/index.js +48 -0
  364. package/float64/base/assert/is-almost-equal/lib/main.js +67 -0
  365. package/float64/base/assert/is-almost-equal/package.json +73 -0
  366. package/float64/base/assert/is-almost-same-value/README.md +158 -0
  367. package/float64/base/assert/is-almost-same-value/docs/repl.txt +43 -0
  368. package/float64/base/assert/is-almost-same-value/docs/types/index.d.ts +55 -0
  369. package/float64/base/assert/is-almost-same-value/docs/types/test.ts +83 -0
  370. package/float64/base/assert/is-almost-same-value/lib/index.js +48 -0
  371. package/float64/base/assert/is-almost-same-value/lib/main.js +69 -0
  372. package/float64/base/assert/is-almost-same-value/package.json +74 -0
  373. package/float64/base/assert/is-equal/README.md +221 -0
  374. package/float64/base/assert/is-equal/docs/repl.txt +27 -0
  375. package/float64/base/assert/is-equal/docs/types/index.d.ts +46 -0
  376. package/float64/base/assert/is-equal/docs/types/test.ts +67 -0
  377. package/float64/base/assert/is-equal/include/stdlib/complex/float64/base/assert/is_equal.h +41 -0
  378. package/float64/base/assert/is-equal/lib/index.js +44 -0
  379. package/float64/base/assert/is-equal/lib/main.js +56 -0
  380. package/float64/base/assert/is-equal/manifest.json +59 -0
  381. package/float64/base/assert/is-equal/package.json +71 -0
  382. package/float64/base/assert/is-equal/src/main.c +48 -0
  383. package/float64/base/assert/is-not-equal/README.md +221 -0
  384. package/float64/base/assert/is-not-equal/docs/repl.txt +28 -0
  385. package/float64/base/assert/is-not-equal/docs/types/index.d.ts +46 -0
  386. package/float64/base/assert/is-not-equal/docs/types/test.ts +67 -0
  387. package/float64/base/assert/is-not-equal/include/stdlib/complex/float64/base/assert/is_not_equal.h +41 -0
  388. package/float64/base/assert/is-not-equal/lib/index.js +44 -0
  389. package/float64/base/assert/is-not-equal/lib/main.js +56 -0
  390. package/float64/base/assert/is-not-equal/manifest.json +59 -0
  391. package/float64/base/assert/is-not-equal/package.json +72 -0
  392. package/float64/base/assert/is-not-equal/src/main.c +48 -0
  393. package/float64/base/assert/is-same-value/README.md +245 -0
  394. package/float64/base/assert/is-same-value/docs/repl.txt +31 -0
  395. package/float64/base/assert/is-same-value/docs/types/index.d.ts +53 -0
  396. package/float64/base/assert/is-same-value/docs/types/test.ts +67 -0
  397. package/float64/base/assert/is-same-value/include/stdlib/complex/float64/base/assert/is_same_value.h +41 -0
  398. package/float64/base/assert/is-same-value/lib/index.js +44 -0
  399. package/float64/base/assert/is-same-value/lib/main.js +64 -0
  400. package/float64/base/assert/is-same-value/manifest.json +61 -0
  401. package/float64/base/assert/is-same-value/package.json +74 -0
  402. package/float64/base/assert/is-same-value/src/main.c +52 -0
  403. package/float64/base/assert/is-same-value-zero/README.md +247 -0
  404. package/float64/base/assert/is-same-value-zero/docs/repl.txt +31 -0
  405. package/float64/base/assert/is-same-value-zero/docs/types/index.d.ts +50 -0
  406. package/float64/base/assert/is-same-value-zero/docs/types/test.ts +67 -0
  407. package/float64/base/assert/is-same-value-zero/include/stdlib/complex/float64/base/assert/is_same_value_zero.h +41 -0
  408. package/float64/base/assert/is-same-value-zero/lib/index.js +44 -0
  409. package/float64/base/assert/is-same-value-zero/lib/main.js +62 -0
  410. package/float64/base/assert/is-same-value-zero/manifest.json +61 -0
  411. package/float64/base/assert/is-same-value-zero/package.json +74 -0
  412. package/float64/base/assert/is-same-value-zero/src/main.c +52 -0
  413. package/float64/base/assert/lib/index.js +96 -0
  414. package/float64/base/assert/package.json +63 -0
  415. package/float64/base/div/README.md +304 -0
  416. package/float64/base/div/docs/repl.txt +119 -0
  417. package/float64/base/div/docs/types/index.d.ts +119 -0
  418. package/float64/base/div/docs/types/test.ts +357 -0
  419. package/float64/base/div/include/stdlib/complex/float64/base/div.h +40 -0
  420. package/float64/base/div/lib/assign.js +106 -0
  421. package/float64/base/div/lib/index.js +55 -0
  422. package/float64/base/div/lib/internal_compreal.js +56 -0
  423. package/float64/base/div/lib/main.js +76 -0
  424. package/float64/base/div/lib/native.js +54 -0
  425. package/float64/base/div/lib/robust_internal.js +61 -0
  426. package/float64/base/div/lib/strided.js +58 -0
  427. package/float64/base/div/manifest.json +87 -0
  428. package/float64/base/div/package.json +68 -0
  429. package/float64/base/div/src/addon.c +22 -0
  430. package/float64/base/div/src/main.c +173 -0
  431. package/float64/base/docs/types/index.d.ts +316 -0
  432. package/float64/base/docs/types/test.ts +29 -0
  433. package/float64/base/identity/README.md +235 -0
  434. package/float64/base/identity/docs/img/equation_identity_function.svg +18 -0
  435. package/float64/base/identity/docs/repl.txt +27 -0
  436. package/float64/base/identity/docs/types/index.d.ts +42 -0
  437. package/float64/base/identity/docs/types/test.ts +45 -0
  438. package/float64/base/identity/include/stdlib/complex/float64/base/identity.h +40 -0
  439. package/float64/base/identity/lib/index.js +41 -0
  440. package/float64/base/identity/lib/main.js +42 -0
  441. package/float64/base/identity/lib/native.js +50 -0
  442. package/float64/base/identity/manifest.json +75 -0
  443. package/float64/base/identity/package.json +68 -0
  444. package/float64/base/identity/src/addon.c +22 -0
  445. package/float64/base/identity/src/main.c +44 -0
  446. package/float64/base/lib/index.js +132 -0
  447. package/float64/base/mul/README.md +288 -0
  448. package/float64/base/mul/docs/repl.txt +120 -0
  449. package/float64/base/mul/docs/types/index.d.ts +138 -0
  450. package/float64/base/mul/docs/types/test.ts +358 -0
  451. package/float64/base/mul/include/stdlib/complex/float64/base/mul.h +40 -0
  452. package/float64/base/mul/lib/assign.js +50 -0
  453. package/float64/base/mul/lib/index.js +55 -0
  454. package/float64/base/mul/lib/main.js +59 -0
  455. package/float64/base/mul/lib/native.js +54 -0
  456. package/float64/base/mul/lib/strided.js +59 -0
  457. package/float64/base/mul/manifest.json +95 -0
  458. package/float64/base/mul/package.json +69 -0
  459. package/float64/base/mul/src/addon.c +22 -0
  460. package/float64/base/mul/src/main.c +61 -0
  461. package/float64/base/mul-add/README.md +286 -0
  462. package/float64/base/mul-add/docs/repl.txt +142 -0
  463. package/float64/base/mul-add/docs/types/index.d.ts +151 -0
  464. package/float64/base/mul-add/docs/types/test.ts +467 -0
  465. package/float64/base/mul-add/include/stdlib/complex/float64/base/mul_add.h +40 -0
  466. package/float64/base/mul-add/lib/assign.js +52 -0
  467. package/float64/base/mul-add/lib/index.js +56 -0
  468. package/float64/base/mul-add/lib/main.js +63 -0
  469. package/float64/base/mul-add/lib/native.js +56 -0
  470. package/float64/base/mul-add/lib/strided.js +65 -0
  471. package/float64/base/mul-add/manifest.json +75 -0
  472. package/float64/base/mul-add/package.json +70 -0
  473. package/float64/base/mul-add/src/addon.c +22 -0
  474. package/float64/base/mul-add/src/main.c +66 -0
  475. package/float64/base/neg/README.md +257 -0
  476. package/float64/base/neg/docs/repl.txt +28 -0
  477. package/float64/base/neg/docs/types/index.d.ts +60 -0
  478. package/float64/base/neg/docs/types/test.ts +51 -0
  479. package/float64/base/neg/include/stdlib/complex/float64/base/neg.h +40 -0
  480. package/float64/base/neg/lib/index.js +61 -0
  481. package/float64/base/neg/lib/main.js +67 -0
  482. package/float64/base/neg/lib/native.js +68 -0
  483. package/float64/base/neg/manifest.json +75 -0
  484. package/float64/base/neg/package.json +67 -0
  485. package/float64/base/neg/src/addon.c +22 -0
  486. package/float64/base/neg/src/main.c +49 -0
  487. package/float64/base/package.json +67 -0
  488. package/float64/base/scale/README.md +263 -0
  489. package/float64/base/scale/docs/repl.txt +106 -0
  490. package/float64/base/scale/docs/types/index.d.ts +131 -0
  491. package/float64/base/scale/docs/types/test.ts +297 -0
  492. package/float64/base/scale/include/stdlib/complex/float64/base/scale.h +40 -0
  493. package/float64/base/scale/lib/assign.js +49 -0
  494. package/float64/base/scale/lib/index.js +54 -0
  495. package/float64/base/scale/lib/main.js +52 -0
  496. package/float64/base/scale/lib/native.js +53 -0
  497. package/float64/base/scale/lib/strided.js +52 -0
  498. package/float64/base/scale/manifest.json +75 -0
  499. package/float64/base/scale/package.json +69 -0
  500. package/float64/base/scale/src/addon.c +22 -0
  501. package/float64/base/scale/src/main.c +51 -0
  502. package/float64/base/sub/README.md +226 -0
  503. package/float64/base/sub/docs/repl.txt +33 -0
  504. package/float64/base/sub/docs/types/index.d.ts +46 -0
  505. package/float64/base/sub/docs/types/test.ts +67 -0
  506. package/float64/base/sub/include/stdlib/complex/float64/base/sub.h +40 -0
  507. package/float64/base/sub/lib/index.js +44 -0
  508. package/float64/base/sub/lib/main.js +55 -0
  509. package/float64/base/sub/lib/native.js +54 -0
  510. package/float64/base/sub/manifest.json +75 -0
  511. package/float64/base/sub/package.json +71 -0
  512. package/float64/base/sub/src/addon.c +22 -0
  513. package/float64/base/sub/src/main.c +61 -0
  514. package/float64/conj/README.md +255 -0
  515. package/float64/conj/docs/repl.txt +27 -0
  516. package/float64/conj/docs/types/index.d.ts +42 -0
  517. package/float64/conj/docs/types/test.ts +45 -0
  518. package/float64/conj/include/stdlib/complex/float64/conj.h +40 -0
  519. package/float64/conj/lib/index.js +43 -0
  520. package/float64/conj/lib/main.js +48 -0
  521. package/float64/conj/lib/native.js +52 -0
  522. package/float64/conj/manifest.json +76 -0
  523. package/float64/conj/package.json +65 -0
  524. package/float64/conj/src/addon.c +22 -0
  525. package/float64/conj/src/main.c +49 -0
  526. package/float64/ctor/README.md +617 -0
  527. package/float64/ctor/docs/repl.txt +84 -0
  528. package/float64/ctor/docs/types/index.d.ts +120 -0
  529. package/float64/ctor/docs/types/test.ts +69 -0
  530. package/float64/ctor/include/stdlib/complex/float64/ctor.h +169 -0
  531. package/float64/ctor/lib/index.js +40 -0
  532. package/float64/ctor/lib/main.js +163 -0
  533. package/float64/ctor/lib/tojson.js +39 -0
  534. package/float64/ctor/lib/tostring.js +42 -0
  535. package/float64/ctor/manifest.json +40 -0
  536. package/float64/ctor/package.json +69 -0
  537. package/float64/ctor/src/main.c +224 -0
  538. package/float64/docs/types/index.d.ts +151 -0
  539. package/float64/docs/types/test.ts +29 -0
  540. package/float64/imag/README.md +236 -0
  541. package/float64/imag/docs/repl.txt +24 -0
  542. package/float64/imag/docs/types/index.d.ts +44 -0
  543. package/float64/imag/docs/types/test.ts +45 -0
  544. package/float64/imag/include/stdlib/complex/float64/imag.h +40 -0
  545. package/float64/imag/lib/index.js +43 -0
  546. package/float64/imag/lib/main.js +42 -0
  547. package/float64/imag/manifest.json +40 -0
  548. package/float64/imag/package.json +67 -0
  549. package/float64/imag/src/main.c +42 -0
  550. package/float64/lib/index.js +114 -0
  551. package/float64/package.json +61 -0
  552. package/float64/parse/README.md +132 -0
  553. package/float64/parse/docs/repl.txt +23 -0
  554. package/float64/parse/docs/types/index.d.ts +46 -0
  555. package/float64/parse/docs/types/test.ts +44 -0
  556. package/float64/parse/lib/index.js +42 -0
  557. package/float64/parse/lib/main.js +90 -0
  558. package/float64/parse/package.json +67 -0
  559. package/float64/real/README.md +236 -0
  560. package/float64/real/docs/repl.txt +24 -0
  561. package/float64/real/docs/types/index.d.ts +44 -0
  562. package/float64/real/docs/types/test.ts +45 -0
  563. package/float64/real/include/stdlib/complex/float64/real.h +40 -0
  564. package/float64/real/lib/index.js +43 -0
  565. package/float64/real/lib/main.js +42 -0
  566. package/float64/real/manifest.json +40 -0
  567. package/float64/real/package.json +67 -0
  568. package/float64/real/src/main.c +42 -0
  569. package/float64/reim/README.md +245 -0
  570. package/float64/reim/docs/repl.txt +24 -0
  571. package/float64/reim/docs/types/index.d.ts +44 -0
  572. package/float64/reim/docs/types/test.ts +45 -0
  573. package/float64/reim/include/stdlib/complex/float64/reim.h +40 -0
  574. package/float64/reim/lib/index.js +43 -0
  575. package/float64/reim/lib/main.js +52 -0
  576. package/float64/reim/manifest.json +40 -0
  577. package/float64/reim/package.json +67 -0
  578. package/float64/reim/src/main.c +46 -0
  579. package/float64/reviver/README.md +145 -0
  580. package/float64/reviver/docs/repl.txt +26 -0
  581. package/float64/reviver/docs/types/index.d.ts +41 -0
  582. package/float64/reviver/docs/types/test.ts +50 -0
  583. package/float64/reviver/lib/index.js +43 -0
  584. package/float64/reviver/lib/main.js +60 -0
  585. package/float64/reviver/package.json +72 -0
  586. package/lib/index.js +123 -0
  587. package/package.json +71 -4
  588. package/promotion-rules/README.md +164 -0
  589. package/promotion-rules/docs/repl.txt +33 -0
  590. package/promotion-rules/docs/types/index.d.ts +102 -0
  591. package/promotion-rules/docs/types/test.ts +66 -0
  592. package/promotion-rules/lib/index.js +46 -0
  593. package/promotion-rules/lib/main.js +102 -0
  594. package/promotion-rules/lib/promotion_rules.json +64 -0
  595. package/promotion-rules/package.json +69 -0
  596. package/reviver/README.md +148 -0
  597. package/reviver/docs/repl.txt +33 -0
  598. package/reviver/docs/types/index.d.ts +41 -0
  599. package/reviver/docs/types/test.ts +45 -0
  600. package/reviver/lib/ctors.js +37 -0
  601. package/reviver/lib/index.js +43 -0
  602. package/reviver/lib/main.js +63 -0
  603. package/reviver/package.json +73 -0
@@ -0,0 +1,138 @@
1
+ /*
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2019 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ // TypeScript Version: 4.1
20
+
21
+ /// <reference types="@stdlib/types"/>
22
+
23
+ import { Complex64 } from '@stdlib/types/complex';
24
+ import { Collection, NumericArray } from '@stdlib/types/array';
25
+
26
+ /**
27
+ * Interface for multiplying two single-precision complex floating-point numbers.
28
+ */
29
+ interface Mul {
30
+ /**
31
+ * Multiplies two single-precision complex floating-point numbers.
32
+ *
33
+ * @param z1 - complex number
34
+ * @param z2 - complex number
35
+ * @returns result
36
+ *
37
+ * @example
38
+ * var Complex64 = require( './../../../../../float32/ctor' );
39
+ *
40
+ * var z1 = new Complex64( 5.0, 3.0 );
41
+ * var z2 = new Complex64( -2.0, 1.0 );
42
+ *
43
+ * var out = mul( z1, z2 );
44
+ * // returns <Complex64>[ -13.0, -1.0 ]
45
+ */
46
+ ( z1: Complex64, z2: Complex64 ): Complex64;
47
+
48
+ /**
49
+ * Multiplies two single-precision complex floating-point numbers and assigns results to a provided output array.
50
+ *
51
+ * @param re1 - real component of the first complex number
52
+ * @param im1 - imaginary component of the first complex number
53
+ * @param re2 - real component of the second complex number
54
+ * @param im2 - imaginary component of the second complex number
55
+ * @param out - output array
56
+ * @param strideOut - stride length
57
+ * @param offsetOut - starting index
58
+ * @returns output array
59
+ *
60
+ * @example
61
+ * var Float32Array = require( '@stdlib/array/float32' );
62
+ *
63
+ * var out = new Float32Array( 2 );
64
+ * var v = mul.assign( 5.0, 3.0, -2.0, 1.0, out, 1, 0 );
65
+ * // returns <Float32Array>[ -13.0, -1.0 ]
66
+ *
67
+ * var bool = ( out === v );
68
+ * // returns true
69
+ */
70
+ assign<T extends NumericArray | Collection<number>>( re1: number, im1: number, re2: number, im2: number, out: T, strideOut: number, offsetOut: number ): T;
71
+
72
+ /**
73
+ * Multiplies two single-precision complex floating-point numbers stored in real-valued strided array views and assigns results to a provided strided output array.
74
+ *
75
+ * @param z1 - first complex number view
76
+ * @param strideZ1 - stride length for `z1`
77
+ * @param offsetZ1 - starting index for `z1`
78
+ * @param z2 - second complex number view
79
+ * @param strideZ2 - stride length for `z2`
80
+ * @param offsetZ2 - starting index for `z2`
81
+ * @param out - output array
82
+ * @param strideOut - stride length for `out`
83
+ * @param offsetOut - starting index for `out`
84
+ * @returns output array
85
+ *
86
+ * @example
87
+ * var Float32Array = require( '@stdlib/array/float32' );
88
+ *
89
+ * var z1 = new Float32Array( [ 5.0, 3.0 ] );
90
+ * var z2 = new Float32Array( [ -2.0, 1.0 ] );
91
+ *
92
+ * var out = mul.strided( z1, 1, 0, z2, 1, 0, new Float32Array( 2 ), 1, 0 );
93
+ * // returns <Float32Array>[ -13.0, -1.0 ]
94
+ */
95
+ strided<T extends NumericArray | Collection<number>, U extends NumericArray | Collection<number>, V extends NumericArray | Collection<number>>( z1: T, strideZ1: number, offsetZ1: number, z2: U, strideZ2: number, offsetZ2: number, out: V, strideOut: number, offsetOut: number ): V;
96
+ }
97
+
98
+ /**
99
+ * Multiplies two single-precision complex floating-point numbers.
100
+ *
101
+ * @param z1 - complex number
102
+ * @param z2 - complex number
103
+ * @returns result
104
+ *
105
+ * @example
106
+ * var Complex64 = require( '@stdlib/complex/float32/ctor' );
107
+ *
108
+ * var z1 = new Complex64( 5.0, 3.0 );
109
+ * var z2 = new Complex64( -2.0, 1.0 );
110
+ *
111
+ * var out = mul( z1, z2 );
112
+ * // returns <Complex64>[ -13.0, -1.0 ]
113
+ *
114
+ * @example
115
+ * var Float32Array = require( '@stdlib/array/float32' );
116
+ *
117
+ * var out = new Float32Array( 2 );
118
+ * var v = mul.assign( 5.0, 3.0, -2.0, 1.0, out, 1, 0 );
119
+ * // returns <Float32Array>[ -13.0, -1.0 ]
120
+ *
121
+ * var bool = ( out === v );
122
+ * // returns true
123
+ *
124
+ * @example
125
+ * var Float32Array = require( '@stdlib/array/float32' );
126
+ *
127
+ * var z1 = new Float32Array( [ 5.0, 3.0 ] );
128
+ * var z2 = new Float32Array( [ -2.0, 1.0 ] );
129
+ *
130
+ * var out = mul.strided( z1, 1, 0, z2, 1, 0, new Float32Array( 2 ), 1, 0 );
131
+ * // returns <Float32Array>[ -13.0, -1.0 ]
132
+ */
133
+ declare var mul: Mul;
134
+
135
+
136
+ // EXPORTS //
137
+
138
+ export = mul;
@@ -0,0 +1,356 @@
1
+
2
+ /*
3
+ * @license Apache-2.0
4
+ *
5
+ * Copyright (c) 2019 The Stdlib Authors.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+ import Complex64 = require( './../../../../../float32/ctor' );
21
+ import mul = require( './index' );
22
+
23
+
24
+ // TESTS //
25
+
26
+ // The function returns a complex number...
27
+ {
28
+ const z = new Complex64( 1.0, 1.0 );
29
+
30
+ mul( z, z ); // $ExpectType Complex64
31
+ }
32
+
33
+ // The compiler throws an error if the function is provided a first argument which is not a complex number...
34
+ {
35
+ const z = new Complex64( 1.0, 1.0 );
36
+
37
+ mul( true, z ); // $ExpectError
38
+ mul( false, z ); // $ExpectError
39
+ mul( null, z ); // $ExpectError
40
+ mul( undefined, z ); // $ExpectError
41
+ mul( '5', z ); // $ExpectError
42
+ mul( [], z ); // $ExpectError
43
+ mul( {}, z ); // $ExpectError
44
+ mul( ( x: number ): number => x, z ); // $ExpectError
45
+ }
46
+
47
+ // The compiler throws an error if the function is provided a second argument which is not a complex number...
48
+ {
49
+ const z = new Complex64( 1.0, 1.0 );
50
+
51
+ mul( z, true ); // $ExpectError
52
+ mul( z, false ); // $ExpectError
53
+ mul( z, null ); // $ExpectError
54
+ mul( z, undefined ); // $ExpectError
55
+ mul( z, '5' ); // $ExpectError
56
+ mul( z, [] ); // $ExpectError
57
+ mul( z, {} ); // $ExpectError
58
+ mul( z, ( x: number ): number => x ); // $ExpectError
59
+ }
60
+
61
+ // The compiler throws an error if the function is provided an unsupported number of arguments...
62
+ {
63
+ const z = new Complex64( 1.0, 1.0 );
64
+
65
+ mul(); // $ExpectError
66
+ mul( z ); // $ExpectError
67
+ mul( z, z, z ); // $ExpectError
68
+ }
69
+
70
+ // Attached to the main export is an `assign` method which returns a collection...
71
+ {
72
+ mul.assign( 1.0, 1.0, 1.0, 1.0, new Float32Array( 2 ), 1, 0 ); // $ExpectType Float32Array
73
+ mul.assign( 1.0, 1.0, 1.0, 1.0, [ 0.0, 0.0 ], 1, 0 ); // $ExpectType number[]
74
+ }
75
+
76
+ // The compiler throws an error if the `assign` method is provided a first argument which is not a number...
77
+ {
78
+ const out = new Float32Array( 2 );
79
+
80
+ mul.assign( true, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError
81
+ mul.assign( false, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError
82
+ mul.assign( null, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError
83
+ mul.assign( undefined, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError
84
+ mul.assign( '5', 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError
85
+ mul.assign( [], 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError
86
+ mul.assign( {}, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError
87
+ mul.assign( ( x: number ): number => x, 2.0, 3.0, 4.0, out, 1, 0 ); // $ExpectError
88
+ }
89
+
90
+ // The compiler throws an error if the `assign` method is provided a second argument which is not a number...
91
+ {
92
+ const out = new Float32Array( 2 );
93
+
94
+ mul.assign( 1.0, true, 3.0, 4.0, out, 1, 0 ); // $ExpectError
95
+ mul.assign( 1.0, false, 3.0, 4.0, out, 1, 0 ); // $ExpectError
96
+ mul.assign( 1.0, null, 3.0, 4.0, out, 1, 0 ); // $ExpectError
97
+ mul.assign( 1.0, undefined, 3.0, 4.0, out, 1, 0 ); // $ExpectError
98
+ mul.assign( 1.0, '5', 3.0, 4.0, out, 1, 0 ); // $ExpectError
99
+ mul.assign( 1.0, [], 3.0, 4.0, out, 1, 0 ); // $ExpectError
100
+ mul.assign( 1.0, {}, 3.0, 4.0, out, 1, 0 ); // $ExpectError
101
+ mul.assign( 1.0, ( x: number ): number => x, 3.0, 4.0, out, 1, 0 ); // $ExpectError
102
+ }
103
+
104
+ // The compiler throws an error if the `assign` method is provided a third argument which is not a number...
105
+ {
106
+ const out = new Float32Array( 2 );
107
+
108
+ mul.assign( 1.0, 2.0, true, 4.0, out, 1, 0 ); // $ExpectError
109
+ mul.assign( 1.0, 2.0, false, 4.0, out, 1, 0 ); // $ExpectError
110
+ mul.assign( 1.0, 2.0, null, 4.0, out, 1, 0 ); // $ExpectError
111
+ mul.assign( 1.0, 2.0, undefined, 4.0, out, 1, 0 ); // $ExpectError
112
+ mul.assign( 1.0, 2.0, '5', 4.0, out, 1, 0 ); // $ExpectError
113
+ mul.assign( 1.0, 2.0, [], 4.0, out, 1, 0 ); // $ExpectError
114
+ mul.assign( 1.0, 2.0, {}, 4.0, out, 1, 0 ); // $ExpectError
115
+ mul.assign( 1.0, 2.0, ( x: number ): number => x, 4.0, out, 1, 0 ); // $ExpectError
116
+ }
117
+
118
+ // The compiler throws an error if the `assign` method is provided a fourth argument which is not a number...
119
+ {
120
+ const out = new Float32Array( 2 );
121
+
122
+ mul.assign( 1.0, 2.0, 3.0, true, out, 1, 0 ); // $ExpectError
123
+ mul.assign( 1.0, 2.0, 3.0, false, out, 1, 0 ); // $ExpectError
124
+ mul.assign( 1.0, 2.0, 3.0, null, out, 1, 0 ); // $ExpectError
125
+ mul.assign( 1.0, 2.0, 3.0, undefined, out, 1, 0 ); // $ExpectError
126
+ mul.assign( 1.0, 2.0, 3.0, '5', out, 1, 0 ); // $ExpectError
127
+ mul.assign( 1.0, 2.0, 3.0, [], out, 1, 0 ); // $ExpectError
128
+ mul.assign( 1.0, 2.0, 3.0, {}, out, 1, 0 ); // $ExpectError
129
+ mul.assign( 1.0, 2.0, 3.0, ( x: number ): number => x, out, 1, 0 ); // $ExpectError
130
+ }
131
+
132
+ // The compiler throws an error if the `assign` method is provided a fifth argument which is not a collection...
133
+ {
134
+ mul.assign( 1.0, 2.0, 3.0, 4.0, 1, 1, 0 ); // $ExpectError
135
+ mul.assign( 1.0, 2.0, 3.0, 4.0, true, 1, 0 ); // $ExpectError
136
+ mul.assign( 1.0, 2.0, 3.0, 4.0, false, 1, 0 ); // $ExpectError
137
+ mul.assign( 1.0, 2.0, 3.0, 4.0, null, 1, 0 ); // $ExpectError
138
+ mul.assign( 1.0, 2.0, 3.0, 4.0, undefined, 1, 0 ); // $ExpectError
139
+ mul.assign( 1.0, 2.0, 3.0, 4.0, '5', 1, 0 ); // $ExpectError
140
+ mul.assign( 1.0, 2.0, 3.0, 4.0, [ '5' ], 1, 0 ); // $ExpectError
141
+ mul.assign( 1.0, 2.0, 3.0, 4.0, {}, 1, 0 ); // $ExpectError
142
+ mul.assign( 1.0, 2.0, 3.0, 4.0, ( x: number ): number => x, 1, 0 ); // $ExpectError
143
+ }
144
+
145
+ // The compiler throws an error if the `assign` method is provided a sixth argument which is not a number...
146
+ {
147
+ const out = new Float32Array( 2 );
148
+
149
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, true, 0 ); // $ExpectError
150
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, false, 0 ); // $ExpectError
151
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, null, 0 ); // $ExpectError
152
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, undefined, 0 ); // $ExpectError
153
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, '5', 0 ); // $ExpectError
154
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, [], 0 ); // $ExpectError
155
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, {}, 0 ); // $ExpectError
156
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, ( x: number ): number => x, 0 ); // $ExpectError
157
+ }
158
+
159
+ // The compiler throws an error if the `assign` method is provided a seventh argument which is not a number...
160
+ {
161
+ const out = new Float32Array( 2 );
162
+
163
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, 1, true ); // $ExpectError
164
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, 1, false ); // $ExpectError
165
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, 1, null ); // $ExpectError
166
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, 1, undefined ); // $ExpectError
167
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, 1, '5' ); // $ExpectError
168
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, 1, [] ); // $ExpectError
169
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, 1, {} ); // $ExpectError
170
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, 1, ( x: number ): number => x ); // $ExpectError
171
+ }
172
+
173
+ // The compiler throws an error if the `assign` method is provided an unsupported number of arguments...
174
+ {
175
+ const out = new Float32Array( 2 );
176
+
177
+ mul.assign(); // $ExpectError
178
+ mul.assign( 1.0 ); // $ExpectError
179
+ mul.assign( 1.0, 2.0 ); // $ExpectError
180
+ mul.assign( 1.0, 2.0, 3.0 ); // $ExpectError
181
+ mul.assign( 1.0, 2.0, 3.0, 4.0 ); // $ExpectError
182
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out ); // $ExpectError
183
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, 1 ); // $ExpectError
184
+ mul.assign( 1.0, 2.0, 3.0, 4.0, out, 1, 0, {} ); // $ExpectError
185
+ }
186
+
187
+ // Attached to the main export is a `strided` method which returns a collection...
188
+ {
189
+ const z1 = new Float32Array( 2 );
190
+ const z2 = new Float32Array( z1.length );
191
+
192
+ mul.strided( z1, 1, 0, z2, 1, 0, new Float32Array( 2 ), 1, 0 ); // $ExpectType Float32Array
193
+ mul.strided( z1, 1, 0, z2, 1, 0, [ 0.0, 0.0 ], 1, 0 ); // $ExpectType number[]
194
+ }
195
+
196
+ // The compiler throws an error if the `strided` method is provided a first argument which is not a collection...
197
+ {
198
+ const z1 = new Float32Array( 2 );
199
+ const z2 = new Float32Array( z1.length );
200
+ const out = new Float32Array( z2.length );
201
+
202
+ mul.strided( true, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
203
+ mul.strided( false, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
204
+ mul.strided( null, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
205
+ mul.strided( undefined, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
206
+ mul.strided( '5', 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
207
+ mul.strided( [ '5' ], 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
208
+ mul.strided( {}, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
209
+ mul.strided( ( x: number ): number => x, 1, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
210
+ }
211
+
212
+ // The compiler throws an error if the `strided` method is provided a second argument which is not a number...
213
+ {
214
+ const z1 = new Float32Array( 2 );
215
+ const z2 = new Float32Array( z1.length );
216
+ const out = new Float32Array( z2.length );
217
+
218
+ mul.strided( z1, true, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
219
+ mul.strided( z1, false, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
220
+ mul.strided( z1, null, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
221
+ mul.strided( z1, undefined, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
222
+ mul.strided( z1, '5', 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
223
+ mul.strided( z1, [], 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
224
+ mul.strided( z1, {}, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
225
+ mul.strided( z1, ( x: number ): number => x, 0, z2, 1, 0, out, 1, 0 ); // $ExpectError
226
+ }
227
+
228
+ // The compiler throws an error if the `strided` method is provided a third argument which is not a number...
229
+ {
230
+ const z1 = new Float32Array( 2 );
231
+ const z2 = new Float32Array( z1.length );
232
+ const out = new Float32Array( 2 );
233
+
234
+ mul.strided( z1, 1, true, z2, 1, 0, out, 1, 0 ); // $ExpectError
235
+ mul.strided( z1, 1, false, z2, 1, 0, out, 1, 0 ); // $ExpectError
236
+ mul.strided( z1, 1, null, z2, 1, 0, out, 1, 0 ); // $ExpectError
237
+ mul.strided( z1, 1, undefined, z2, 1, 0, out, 1, 0 ); // $ExpectError
238
+ mul.strided( z1, 1, '5', z2, 1, 0, out, 1, 0 ); // $ExpectError
239
+ mul.strided( z1, 1, [], z2, 1, 0, out, 1, 0 ); // $ExpectError
240
+ mul.strided( z1, 1, {}, z2, 1, 0, out, 1, 0 ); // $ExpectError
241
+ mul.strided( z1, 1, ( x: number ): number => x, z2, 1, 0, out, 1, 0 ); // $ExpectError
242
+ }
243
+
244
+ // The compiler throws an error if the `strided` method is provided a fourth argument which is not a collection...
245
+ {
246
+ const z1 = new Float32Array( 2 );
247
+ const z2 = new Float32Array( z1.length );
248
+ const out = new Float32Array( z2.length );
249
+
250
+ mul.strided( z1, 1, 0, true, 1, 0, out, 1, 0 ); // $ExpectError
251
+ mul.strided( z1, 1, 0, false, 1, 0, out, 1, 0 ); // $ExpectError
252
+ mul.strided( z1, 1, 0, null, 1, 0, out, 1, 0 ); // $ExpectError
253
+ mul.strided( z1, 1, 0, undefined, 1, 0, out, 1, 0 ); // $ExpectError
254
+ mul.strided( z1, 1, 0, '5', 1, 0, out, 1, 0 ); // $ExpectError
255
+ mul.strided( z1, 1, 0, [ '5' ], 1, 0, out, 1, 0 ); // $ExpectError
256
+ mul.strided( z1, 1, 0, {}, 1, 0, out, 1, 0 ); // $ExpectError
257
+ mul.strided( z1, 1, 0, ( x: number ): number => x, 1, 0, out, 1, 0 ); // $ExpectError
258
+ }
259
+
260
+ // The compiler throws an error if the `strided` method is provided a fifth argument which is not a number...
261
+ {
262
+ const z1 = new Float32Array( 2 );
263
+ const z2 = new Float32Array( z1.length );
264
+ const out = new Float32Array( z2.length );
265
+
266
+ mul.strided( z1, 1, 0, z2, true, 0, out, 1, 0 ); // $ExpectError
267
+ mul.strided( z1, 1, 0, z2, false, 0, out, 1, 0 ); // $ExpectError
268
+ mul.strided( z1, 1, 0, z2, null, 0, out, 1, 0 ); // $ExpectError
269
+ mul.strided( z1, 1, 0, z2, undefined, 0, out, 1, 0 ); // $ExpectError
270
+ mul.strided( z1, 1, 0, z2, '5', 0, out, 1, 0 ); // $ExpectError
271
+ mul.strided( z1, 1, 0, z2, [], 0, out, 1, 0 ); // $ExpectError
272
+ mul.strided( z1, 1, 0, z2, {}, 0, out, 1, 0 ); // $ExpectError
273
+ mul.strided( z1, 1, 0, z2, ( x: number ): number => x, 0, out, 1, 0 ); // $ExpectError
274
+ }
275
+
276
+ // The compiler throws an error if the `strided` method is provided a sixth argument which is not a number...
277
+ {
278
+ const z1 = new Float32Array( 2 );
279
+ const z2 = new Float32Array( z1.length );
280
+ const out = new Float32Array( z2.length );
281
+
282
+ mul.strided( z1, 1, 0, z2, 1, true, out, 1, 0 ); // $ExpectError
283
+ mul.strided( z1, 1, 0, z2, 1, false, out, 1, 0 ); // $ExpectError
284
+ mul.strided( z1, 1, 0, z2, 1, null, out, 1, 0 ); // $ExpectError
285
+ mul.strided( z1, 1, 0, z2, 1, undefined, out, 1, 0 ); // $ExpectError
286
+ mul.strided( z1, 1, 0, z2, 1, '5', out, 1, 0 ); // $ExpectError
287
+ mul.strided( z1, 1, 0, z2, 1, [], out, 1, 0 ); // $ExpectError
288
+ mul.strided( z1, 1, 0, z2, 1, {}, out, 1, 0 ); // $ExpectError
289
+ mul.strided( z1, 1, 0, z2, 1, ( x: number ): number => x, out, 1, 0 ); // $ExpectError
290
+ }
291
+
292
+ // The compiler throws an error if the `strided` method is provided a seventh argument which is not a collection...
293
+ {
294
+ const z1 = new Float32Array( 2 );
295
+ const z2 = new Float32Array( z1.length );
296
+
297
+ mul.strided( z1, 1, 0, z2, 1, 0, 1, 1, 0 ); // $ExpectError
298
+ mul.strided( z1, 1, 0, z2, 1, 0, true, 1, 0 ); // $ExpectError
299
+ mul.strided( z1, 1, 0, z2, 1, 0, false, 1, 0 ); // $ExpectError
300
+ mul.strided( z1, 1, 0, z2, 1, 0, null, 1, 0 ); // $ExpectError
301
+ mul.strided( z1, 1, 0, z2, 1, 0, undefined, 1, 0 ); // $ExpectError
302
+ mul.strided( z1, 1, 0, z2, 1, 0, '5', 1, 0 ); // $ExpectError
303
+ mul.strided( z1, 1, 0, z2, 1, 0, [ '5' ], 1, 0 ); // $ExpectError
304
+ mul.strided( z1, 1, 0, z2, 1, 0, {}, 1, 0 ); // $ExpectError
305
+ mul.strided( z1, 1, 0, z2, 1, 0, ( x: number ): number => x, 1, 0 ); // $ExpectError
306
+ }
307
+
308
+ // The compiler throws an error if the `strided` method is provided an eighth argument which is not a number...
309
+ {
310
+ const z1 = new Float32Array( 2 );
311
+ const z2 = new Float32Array( z1.length );
312
+ const out = new Float32Array( z2.length );
313
+
314
+ mul.strided( z1, 1, 0, z2, 1, 0, out, true, 0 ); // $ExpectError
315
+ mul.strided( z1, 1, 0, z2, 1, 0, out, false, 0 ); // $ExpectError
316
+ mul.strided( z1, 1, 0, z2, 1, 0, out, null, 0 ); // $ExpectError
317
+ mul.strided( z1, 1, 0, z2, 1, 0, out, undefined, 0 ); // $ExpectError
318
+ mul.strided( z1, 1, 0, z2, 1, 0, out, '5', 0 ); // $ExpectError
319
+ mul.strided( z1, 1, 0, z2, 1, 0, out, [], 0 ); // $ExpectError
320
+ mul.strided( z1, 1, 0, z2, 1, 0, out, {}, 0 ); // $ExpectError
321
+ mul.strided( z1, 1, 0, z2, 1, 0, out, ( x: number ): number => x, 0 ); // $ExpectError
322
+ }
323
+
324
+ // The compiler throws an error if the `strided` method is provided a ninth argument which is not a number...
325
+ {
326
+ const z1 = new Float32Array( 2 );
327
+ const z2 = new Float32Array( z1.length );
328
+ const out = new Float32Array( z2.length );
329
+
330
+ mul.strided( z1, 1, 0, z2, 1, 0, out, 1, true ); // $ExpectError
331
+ mul.strided( z1, 1, 0, z2, 1, 0, out, 1, false ); // $ExpectError
332
+ mul.strided( z1, 1, 0, z2, 1, 0, out, 1, null ); // $ExpectError
333
+ mul.strided( z1, 1, 0, z2, 1, 0, out, 1, undefined ); // $ExpectError
334
+ mul.strided( z1, 1, 0, z2, 1, 0, out, 1, '5' ); // $ExpectError
335
+ mul.strided( z1, 1, 0, z2, 1, 0, out, 1, [] ); // $ExpectError
336
+ mul.strided( z1, 1, 0, z2, 1, 0, out, 1, {} ); // $ExpectError
337
+ mul.strided( z1, 1, 0, z2, 1, 0, out, 1, ( x: number ): number => x ); // $ExpectError
338
+ }
339
+
340
+ // The compiler throws an error if the `strided` method is provided an unsupported number of arguments...
341
+ {
342
+ const z1 = new Float32Array( 2 );
343
+ const z2 = new Float32Array( z1.length );
344
+ const out = new Float32Array( z2.length );
345
+
346
+ mul.strided(); // $ExpectError
347
+ mul.strided( z1 ); // $ExpectError
348
+ mul.strided( z1, 1 ); // $ExpectError
349
+ mul.strided( z1, 1, 0 ); // $ExpectError
350
+ mul.strided( z1, 1, 0, z2 ); // $ExpectError
351
+ mul.strided( z1, 1, 0, z2, 1 ); // $ExpectError
352
+ mul.strided( z1, 1, 0, z2, 1, 0 ); // $ExpectError
353
+ mul.strided( z1, 1, 0, z2, 1, 0, out ); // $ExpectError
354
+ mul.strided( z1, 1, 0, z2, 1, 0, out, 1 ); // $ExpectError
355
+ mul.strided( z1, 1, 0, z2, 1, 0, out, 1, 0, {} ); // $ExpectError
356
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2021 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ #ifndef STDLIB_COMPLEX_FLOAT32_BASE_MUL_H
20
+ #define STDLIB_COMPLEX_FLOAT32_BASE_MUL_H
21
+
22
+ #include "stdlib/complex/float32/ctor.h"
23
+
24
+ /*
25
+ * If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
26
+ */
27
+ #ifdef __cplusplus
28
+ extern "C" {
29
+ #endif
30
+
31
+ /**
32
+ * Multiplies two single-precision complex floating-point numbers.
33
+ */
34
+ stdlib_complex64_t stdlib_base_complex64_mul( const stdlib_complex64_t z1, const stdlib_complex64_t z2 );
35
+
36
+ #ifdef __cplusplus
37
+ }
38
+ #endif
39
+
40
+ #endif // !STDLIB_COMPLEX_FLOAT32_BASE_MUL_H
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2025 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ // MODULES //
22
+
23
+ var f32 = require( '@ohos-ports/stdlib-number/float64/base/to-float32' );
24
+
25
+
26
+ // MAIN //
27
+
28
+ /**
29
+ * Multiplies two single-precision complex floating-point numbers and assigns results to a provided output array.
30
+ *
31
+ * @param {number} re1 - real component of the first complex number
32
+ * @param {number} im1 - imaginary component of the first complex number
33
+ * @param {number} re2 - real component of the second complex number
34
+ * @param {number} im2 - imaginary component of the second complex number
35
+ * @param {Collection} out - output array
36
+ * @param {integer} strideOut - stride length
37
+ * @param {NonNegativeInteger} offsetOut - starting index
38
+ * @returns {Collection} output array
39
+ *
40
+ * @example
41
+ * var Float32Array = require( '@ohos-ports/stdlib-array/float32' );
42
+ *
43
+ * var out = assign( 5.0, 3.0, -2.0, 1.0, new Float32Array( 2 ), 1, 0 );
44
+ * // returns <Float32Array>[ -13.0, -1.0 ]
45
+ */
46
+ function assign( re1, im1, re2, im2, out, strideOut, offsetOut ) {
47
+ out[ offsetOut ] = f32(re1*re2) - f32(im1*im2);
48
+ out[ offsetOut+strideOut ] = f32(re1*im2) + f32(im1*re2);
49
+ return out;
50
+ }
51
+
52
+
53
+ // EXPORTS //
54
+
55
+ module.exports = assign;
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2021 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ /**
22
+ * Multiply two single-precision complex floating-point numbers.
23
+ *
24
+ * @module @stdlib/complex/float32/base/mul
25
+ *
26
+ * @example
27
+ * var Complex64 = require( '@ohos-ports/stdlib-complex/float32/ctor' );
28
+ * var mul = require( '@ohos-ports/stdlib-complex/float32/base/mul' );
29
+ *
30
+ * var z1 = new Complex64( 5.0, 3.0 );
31
+ * var z2 = new Complex64( -2.0, 1.0 );
32
+ *
33
+ * var out = mul( z1, z2 );
34
+ * // returns <Complex64>[ -13.0, -1.0 ]
35
+ */
36
+
37
+ // MODULES //
38
+
39
+ var setReadOnly = require( '@ohos-ports/stdlib-utils/define-nonenumerable-read-only-property' );
40
+ var main = require( './main.js' );
41
+ var assign = require( './assign.js' );
42
+ var strided = require( './strided.js' );
43
+
44
+
45
+ // MAIN //
46
+
47
+ setReadOnly( main, 'assign', assign );
48
+ setReadOnly( main, 'strided', strided );
49
+
50
+
51
+ // EXPORTS //
52
+
53
+ module.exports = main;
54
+
55
+ // exports: { "assign": "main.assign", "strided": "main.strided" }