matrix
Overloads
| Name | Description |
|---|---|
matrix(const RealArray array) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const ComplexMatrix array) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const ComplexSparseMatrix array) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealSparseMatrix array) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealMatrix array) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const List list) -> ComplexMatrix | Converts a list or list of list to a container. |
matrix(const ComplexArray array) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const IntegerArray array, as_real type) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const IntegerArray array, as_real | as_sparsematrix type) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealSparseMatrix array, as_complex | as_sparsematrix type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealSparseMatrix array, as_real | as_sparsematrix type) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealSparseMatrix array, as_sparsematrix type) -> RealSparseMatrix | Converts a container to a sparse matrix with the same elements. |
matrix(const ComplexSparseMatrix array, as_complex type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const ComplexSparseMatrix array, as_complex | as_sparsematrix type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const ComplexSparseMatrix array, as_sparsematrix type) -> ComplexSparseMatrix | Converts a container to a sparse matrix with the same elements. |
matrix(const IntegerArray array, as_complex | as_sparsematrix type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealArray array, as_complex | as_sparsematrix type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const List list, as_real type) -> RealMatrix | Converts a list or list of list to a sparse matrix. |
matrix(const List list, as_matrix type) -> ComplexMatrix | Converts a list or list of list to a sparse matrix. |
matrix(const List list, as_scalar type) -> ComplexMatrix | Converts a list or list of list to a sparse matrix. |
matrix(const List list, as_complex | as_matrix type) -> ComplexMatrix | Converts a list or list of list to a sparse matrix. |
matrix(const List list, as_sparsematrix type) -> ComplexSparseMatrix | Converts a list or list of list to a sparse matrix. |
matrix(const List list, as_real | as_sparsematrix type) -> RealSparseMatrix | Converts a list or list of list to a sparse matrix. |
matrix(const List list, as_complex | as_sparsematrix type) -> ComplexSparseMatrix | Converts a list or list of list to a sparse matrix. |
matrix(const List list, as_complex type) -> ComplexMatrix | Converts a list or list of list to a sparse matrix. |
matrix(const List list, as_real | as_matrix type) -> RealMatrix | Converts a list or list of list to a sparse matrix. |
matrix(const BoolArray array, as_real | as_sparsematrix type) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const ComplexMatrix array, as_complex | as_sparsematrix type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const ComplexMatrix array, as_complex type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealMatrix array, as_sparsematrix type) -> RealSparseMatrix | Converts a container to a sparse matrix with the same elements. |
matrix(const RealMatrix array, as_real | as_sparsematrix type) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealMatrix array, as_complex | as_sparsematrix type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealMatrix array, as_real type) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealMatrix array, as_complex type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const IntegerArray array, as_complex type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealArray array, as_real type) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const BoolArray array, as_complex | as_sparsematrix type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealArray array, as_complex type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const ComplexArray array, as_complex type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const ComplexArray array, as_complex | as_sparsematrix type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const ComplexArray array, as_sparsematrix type) -> ComplexSparseMatrix | Converts a container to a sparse matrix with the same elements. |
matrix(const RealSparseMatrix array, as_complex type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const BoolArray array, as_complex type) -> ComplexMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealArray array, as_sparsematrix type) -> RealSparseMatrix | Converts a container to a sparse matrix with the same elements. |
matrix(const RealSparseMatrix array, as_real type) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealArray array, as_real | as_sparsematrix type) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const ComplexMatrix array, as_sparsematrix type) -> ComplexSparseMatrix | Converts a container to a sparse matrix with the same elements. |
matrix(const BoolArray array, as_real type) -> RealMatrix | Converts a container to a matrix with the same elements. |
matrix(const RealArray array) -> RealMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input RealArray.
matrix(const ComplexMatrix array) -> ComplexMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input ComplexMatrix.
matrix(const ComplexSparseMatrix array) -> ComplexMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input ComplexSparseMatrix.
matrix(const RealSparseMatrix array) -> RealMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input RealSparseMatrix.
matrix(const RealMatrix array) -> RealMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input RealMatrix.
matrix(const List list) -> ComplexMatrix
Converts a list or list of list to a container.
Parameters
- list: The list containing the values.
matrix(const ComplexArray array) -> ComplexMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input ComplexArray.
matrix(const IntegerArray array, as_real type) -> RealMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input IntegerArray.
- type: The type of the matrix to create.
matrix(const IntegerArray array, as_real | as_sparsematrix type) -> RealMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input IntegerArray.
- type: The type of the matrix to create.
matrix(const RealSparseMatrix array, as_complex | as_sparsematrix type) -> ComplexMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input RealSparseMatrix.
- type: The type of the matrix to create.
matrix(const RealSparseMatrix array, as_real | as_sparsematrix type) -> RealMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input RealSparseMatrix.
- type: The type of the matrix to create.
matrix(const RealSparseMatrix array, as_sparsematrix type) -> RealSparseMatrix
Converts a container to a sparse matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input RealSparseMatrix.
- type: The type of the container to create (here, a sparse matrix).
matrix(const ComplexSparseMatrix array, as_complex type) -> ComplexMatrix
Converts a container to a matrix with the same elements.
Arrays support elementwise operations, matrices support matrix algebra (e.g., operator *).
Parameters
- array: The input ComplexSparseMatrix.
- type: The type of the matrix to create.