ndarray-complex
Complex arithmetic operations for ndarrays.
Example
var ndarray = var cops = //Generate some arraysvar a_r = a_i = b_r = b_i = c_r = c_i = // ... do stuff ... //Multiply a and b, storing result in c:cops
Install
npm install ndarray-complex
API
The API follows the same conventions as ndarray-ops. The following methods are exposed:
- add[s,eq,seq] - Addition
- sub[s,eq,seq] - Subtraction
- neg[eq] - Negation
- mul[s,eq,seq] - Multiplication
- div[s,eq,seq] - Division
- recip[eq] - Reciprocal
- conj[eq] - Complex conjugate
- exp[eq] - Complex exponent
- mag - Complex magnitude (squared length)
- abs - Complex length
- arg - Complex argument
Credits
(c) 2013 Mikola Lysenko. MIT License