Skip to main content

matrix

Overloads

NameDescription
matrix(const RealArray array) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const ComplexMatrix array) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const ComplexSparseMatrix array) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const RealSparseMatrix array) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const RealMatrix array) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const List list) -> ComplexMatrixConverts a list or list of list to a container.
matrix(const ComplexArray array) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const IntegerArray array, as_real type) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const IntegerArray array, as_real | as_sparsematrix type) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const RealSparseMatrix array, as_complex | as_sparsematrix type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const RealSparseMatrix array, as_real | as_sparsematrix type) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const RealSparseMatrix array, as_sparsematrix type) -> RealSparseMatrixConverts a container to a sparse matrix with the same elements.
matrix(const ComplexSparseMatrix array, as_complex type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const ComplexSparseMatrix array, as_complex | as_sparsematrix type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const ComplexSparseMatrix array, as_sparsematrix type) -> ComplexSparseMatrixConverts a container to a sparse matrix with the same elements.
matrix(const IntegerArray array, as_complex | as_sparsematrix type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const RealArray array, as_complex | as_sparsematrix type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const List list, as_real type) -> RealMatrixConverts a list or list of list to a sparse matrix.
matrix(const List list, as_matrix type) -> ComplexMatrixConverts a list or list of list to a sparse matrix.
matrix(const List list, as_scalar type) -> ComplexMatrixConverts a list or list of list to a sparse matrix.
matrix(const List list, as_complex | as_matrix type) -> ComplexMatrixConverts a list or list of list to a sparse matrix.
matrix(const List list, as_sparsematrix type) -> ComplexSparseMatrixConverts a list or list of list to a sparse matrix.
matrix(const List list, as_real | as_sparsematrix type) -> RealSparseMatrixConverts a list or list of list to a sparse matrix.
matrix(const List list, as_complex | as_sparsematrix type) -> ComplexSparseMatrixConverts a list or list of list to a sparse matrix.
matrix(const List list, as_complex type) -> ComplexMatrixConverts a list or list of list to a sparse matrix.
matrix(const List list, as_real | as_matrix type) -> RealMatrixConverts a list or list of list to a sparse matrix.
matrix(const BoolArray array, as_real | as_sparsematrix type) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const ComplexMatrix array, as_complex | as_sparsematrix type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const ComplexMatrix array, as_complex type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const RealMatrix array, as_sparsematrix type) -> RealSparseMatrixConverts a container to a sparse matrix with the same elements.
matrix(const RealMatrix array, as_real | as_sparsematrix type) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const RealMatrix array, as_complex | as_sparsematrix type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const RealMatrix array, as_real type) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const RealMatrix array, as_complex type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const IntegerArray array, as_complex type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const RealArray array, as_real type) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const BoolArray array, as_complex | as_sparsematrix type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const RealArray array, as_complex type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const ComplexArray array, as_complex type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const ComplexArray array, as_complex | as_sparsematrix type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const ComplexArray array, as_sparsematrix type) -> ComplexSparseMatrixConverts a container to a sparse matrix with the same elements.
matrix(const RealSparseMatrix array, as_complex type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const BoolArray array, as_complex type) -> ComplexMatrixConverts a container to a matrix with the same elements.
matrix(const RealArray array, as_sparsematrix type) -> RealSparseMatrixConverts a container to a sparse matrix with the same elements.
matrix(const RealSparseMatrix array, as_real type) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const RealArray array, as_real | as_sparsematrix type) -> RealMatrixConverts a container to a matrix with the same elements.
matrix(const ComplexMatrix array, as_sparsematrix type) -> ComplexSparseMatrixConverts a container to a sparse matrix with the same elements.
matrix(const BoolArray array, as_real type) -> RealMatrixConverts 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

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

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

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

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

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

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

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

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

matrix(const ComplexSparseMatrix 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

matrix(const ComplexSparseMatrix array, as_sparsematrix type) -> ComplexSparseMatrix

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 ComplexSparseMatrix.
  • type: The type of the container to create (here, a sparse matrix).

matrix(const IntegerArray 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 IntegerArray.
  • type: The type of the matrix to create.

matrix(const RealArray 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 RealArray.
  • type: The type of the matrix to create.

matrix(const List list, as_real type) -> RealMatrix

Converts a list or list of list to a sparse matrix.

Parameters

  • list: The list containing the values.
  • type: The type of the container to create.

matrix(const List list, as_matrix type) -> ComplexMatrix

Converts a list or list of list to a sparse matrix.

Parameters

  • list: The list containing the values.
  • type: The type of the container to create.

matrix(const List list, as_scalar type) -> ComplexMatrix

Converts a list or list of list to a sparse matrix.

Parameters

  • list: The list containing the values.
  • type: The type of the container to create.

matrix(const List list, as_complex | as_matrix type) -> ComplexMatrix

Converts a list or list of list to a sparse matrix.

Parameters

  • list: The list containing the values.
  • type: The type of the container to create.

matrix(const List list, as_sparsematrix type) -> ComplexSparseMatrix

Converts a list or list of list to a sparse matrix.

Parameters

  • list: The list containing the values.
  • type: The type of the container to create.

matrix(const List list, as_real | as_sparsematrix type) -> RealSparseMatrix

Converts a list or list of list to a sparse matrix.

Parameters

  • list: The list containing the values.
  • type: The type of the container to create.

matrix(const List list, as_complex | as_sparsematrix type) -> ComplexSparseMatrix

Converts a list or list of list to a sparse matrix.

Parameters

  • list: The list containing the values.
  • type: The type of the container to create.

matrix(const List list, as_complex type) -> ComplexMatrix

Converts a list or list of list to a sparse matrix.

Parameters

  • list: The list containing the values.
  • type: The type of the container to create.

matrix(const List list, as_real | as_matrix type) -> RealMatrix

Converts a list or list of list to a sparse matrix.

Parameters

  • list: The list containing the values.
  • type: The type of the container to create.

matrix(const BoolArray 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 BoolArray.
  • type: The type of the matrix to create.

matrix(const ComplexMatrix 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 ComplexMatrix.
  • type: The type of the matrix to create.

matrix(const ComplexMatrix 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 ComplexMatrix.
  • type: The type of the matrix to create.

matrix(const RealMatrix 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 RealMatrix.
  • type: The type of the container to create (here, a sparse matrix).

matrix(const RealMatrix 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 RealMatrix.
  • type: The type of the matrix to create.

matrix(const RealMatrix 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 RealMatrix.
  • type: The type of the matrix to create.

matrix(const RealMatrix 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 RealMatrix.
  • type: The type of the matrix to create.

matrix(const RealMatrix 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 RealMatrix.
  • type: The type of the matrix to create.

matrix(const IntegerArray 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 IntegerArray.
  • type: The type of the matrix to create.

matrix(const RealArray 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 RealArray.
  • type: The type of the matrix to create.

matrix(const BoolArray 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 BoolArray.
  • type: The type of the matrix to create.

matrix(const RealArray 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 RealArray.
  • type: The type of the matrix to create.

matrix(const ComplexArray 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 ComplexArray.
  • type: The type of the matrix to create.

matrix(const ComplexArray 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 ComplexArray.
  • type: The type of the matrix to create.

matrix(const ComplexArray array, as_sparsematrix type) -> ComplexSparseMatrix

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 ComplexArray.
  • type: The type of the container to create (here, a sparse matrix).

matrix(const RealSparseMatrix 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

matrix(const BoolArray 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 BoolArray.
  • type: The type of the matrix to create.

matrix(const RealArray 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 RealArray.
  • type: The type of the container to create (here, a sparse matrix).

matrix(const RealSparseMatrix 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

matrix(const RealArray 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 RealArray.
  • type: The type of the matrix to create.

matrix(const ComplexMatrix array, as_sparsematrix type) -> ComplexSparseMatrix

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 ComplexMatrix.
  • type: The type of the container to create (here, a sparse matrix).

matrix(const BoolArray 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 BoolArray.
  • type: The type of the matrix to create.