The complex ColumnMajorMatrix is a dense column-major matrix of double complex values.The elements are store contiguously in a single java array. The real components occupy the even indices and the imaginary components are located just after the real. This matrix is efficient for numerical computing, especially column-wise computations.
Here is an example of a dense complex matrix with two rows and two columns:
Col-0 | Col-1 | |
Row-0 | 1.5, 0.1 | 2.6, 0.2 |
Row-1 | 3.7, 0.3 | 4.8, 0.4 |
This is how the 2x2 matrix would be stored in a complex ColumnMajorMatrix
with a row capacity of three and a column capacity of three:
Index | 0-1 | 2-3 | 4-5 | 6-7 | 8-9 | 10-11 | 12-13 | 14-15 | 16-17 |
Value | 1.5, 0.1 | 3.7, 0.3 | . | 2.6, 0.2 | 4.8, 0.4 | . | . | . | . |