Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void SparseToTriplets(DewArray<int> &dstRow, DewArray<int> &DstColumn, DewArray<double> &DstValues); | Convert sparse matrix to triplets. |
| 2 | void SparseToTriplets(DewArray<int> &dstRow, DewArray<int> &DstColumn, DewArray<float> &DstValues); | |
| 3 | void SparseToTriplets(DewArray<int> &dstRow, DewArray<int> &DstColumn, DewArray<TCplx> &DstCValues); | Convert sparse matrix to triplets (complex version). |
| 4 | void SparseToTriplets(DewArray<int> &dstRow, DewArray<int> &DstColumn, DewArray<TSCplx> &DstCValues); | |
| 5 | void SparseToTriplets(TMtx *DstTriplets, bool ImInRow = false); | Convert sparse matrix to triplets. |
Overload 1: void SparseToTriplets(DewArray<int> &dstRow, DewArray<int> &DstColumn, DewArray<double> &DstValues);
Convert sparse matrix to triplets.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | dstRow | DewArray<int> & | |
| 2 | DstColumn | DewArray<int> & | |
| 3 | DstValues | DewArray<double> & |
A sparse matrix can also be presented as pairs of the three elements called triplets. For each non zero value in the matrix we specify it's position: Row, Column, and it's Value. SparseToTriplets will convert the calling sparse matrix data to the triplets format. The data will be sorted first by columns and then by rows. Triplets can be represented by three arrays: Row, Column and Values or they can all be stored in one TMtx matrix.
Overload 2: void SparseToTriplets(DewArray<int> &dstRow, DewArray<int> &DstColumn, DewArray<float> &DstValues);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | dstRow | DewArray<int> & | |
| 2 | DstColumn | DewArray<int> & | |
| 3 | DstValues | DewArray<float> & |
Overload 3: void SparseToTriplets(DewArray<int> &dstRow, DewArray<int> &DstColumn, DewArray<TCplx> &DstCValues);
Convert sparse matrix to triplets (complex version).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | dstRow | DewArray<int> & | |
| 2 | DstColumn | DewArray<int> & | |
| 3 | DstCValues | DewArray<TCplx> & |
Overload 4: void SparseToTriplets(DewArray<int> &dstRow, DewArray<int> &DstColumn, DewArray<TSCplx> &DstCValues);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | dstRow | DewArray<int> & | |
| 2 | DstColumn | DewArray<int> & | |
| 3 | DstCValues | DewArray<TSCplx> & |
Overload 5: void SparseToTriplets(TMtx *DstTriplets, bool ImInRow = false);
Convert sparse matrix to triplets.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | DstTriplets | TMtx * | |
| 2 | ImInRow = false | bool |
Triplets are stored in the first three rows of the matrix. First row stores the row indices, the second stores the column indices and the third row stores the matrix values. In case of a complex matrix and if ImInRow is True, the imaginary part's of the complex numbers are stored in the fourth row.