Incomplete sheet
This sheet is incomplete and could use some attention. Please submit code snippet suggestions as an issue or PR here.
matrix¶
Create¶
| Action | Code | Details |
|---|---|---|
| From vector, as column vector |
|
|
| From vector, as column vector |
|
|
| Diagonal matrix from vector |
|
|
| Create vector or matrix, depending on the number of columns |
|
Test¶
| Action | Code | Details |
|---|---|---|
| Is matrix |
|
|
| Is vector (has singleton dimension) |
|
|
| Is square matrix |
|
|
| Each column contains at most 1 unique value (i.e. all equal) |
|
|
| Check if all rows are equal |
|
Get¶
| Action | Code | Details |
|---|---|---|
| Elements by (row,col) pairs |
|
Convert¶
| Action | Code | Details |
|---|---|---|
| To list of row vectors |
|
|
| To list of column vectors |
|
|
| To list of submatrices grouped by row |
|