ComplexMatrix
Factories
filled(const List<integer> shape, complex value) -> ComplexMatrix
Creates a container with the specified shape and type, filled with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
filled(const List<integer> shape, real value) -> ComplexMatrix
Creates a container with the specified shape and type, filled with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
filled(const List<integer> shape, integer value) -> ComplexMatrix
Creates a container with the specified shape and type, filled with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
filled(const List<integer> shape, bool value) -> ComplexMatrix
Creates a container with the specified shape and type, filled with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
filled(const List<integer> shape, complex value, as_scalar type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, real value, as_scalar type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, real value, as_complex type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, real value, as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, integer value, as_scalar type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, real value, as_complex | as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, integer value, as_complex type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, integer value, as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, integer value, as_complex | as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, complex value, as_complex | as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, complex value, as_complex type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, complex value, as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, bool value, as_scalar type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, bool value, as_complex | as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, bool value, as_complex type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled(const List<integer> shape, bool value, as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with with the specified value.
Parameters
- shape: The shape of the container to create.
- value: The value with which to fill the container.
- type: The type of the container to create.
filled_like(const ComplexMatrix lhs, integer c) -> ComplexMatrix
Return a container with the same shape and type as a given container, filled with a prescribed value.
Parameters
- lhs: The input container.
- c: The constant value to fill with.
filled_like(const ComplexMatrix lhs, real c) -> ComplexMatrix
Return a container with the same shape and type as a given container, filled with a prescribed value.
Parameters
- lhs: The input container.
- c: The constant value to fill with.
filled_like(const ComplexMatrix lhs, complex c) -> ComplexMatrix
Return a container with the same shape and type as a given container, filled with a prescribed value.
Parameters
- lhs: The input container.
- c: The constant value to fill with.
filled_like(const ComplexMatrix lhs, bool c) -> ComplexMatrix
Return a container with the same shape and type as a given container, filled with a prescribed value.
Parameters
- lhs: The input container.
- c: The constant value to fill with.
identity(const List<integer> shape) -> ComplexMatrix
Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.
Parameters
- shape: The shape of the container to create.
identity(const List<integer> shape, as_matrix type) -> ComplexMatrix
Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
identity(const List<integer> shape, as_complex type) -> ComplexMatrix
Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
identity(const List<integer> shape, as_complex | as_matrix type) -> ComplexMatrix
Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
identity(const List<integer> shape, as_scalar type) -> ComplexMatrix
Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
identity_like(const ComplexMatrix lhs) -> ComplexMatrix
Return the identity with the same shape and type as a given container.
Parameters
- lhs: The input container.
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 Operator operator) -> ComplexMatrix
Converts the operator to its matrix representation.
Parameters
- operator: The operator to convert.
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 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 List list) -> ComplexMatrix
Converts a list or list of list to a container.
Parameters
- list: The list containing the values.
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 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 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 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 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.
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
- array: The input ComplexSparseMatrix.
- type: The type of the matrix to create.
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 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_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 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 Operator operator, as_complex | as_matrix type_tag) -> ComplexMatrix
Converts the operator to its matrix representation.
Parameters
- operator: The operator to convert.
- type_tag: A global constant tagging the object type.
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 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_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_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 Operator operator, as_complex type_tag) -> ComplexMatrix
Converts the operator to its matrix representation.
Parameters
- operator: The operator to convert.
- type_tag: A global constant tagging the object type.
matrix(const Operator operator, as_matrix type_tag) -> ComplexMatrix
Converts the operator to its matrix representation.
Parameters
- operator: The operator to convert.
- type_tag: A global constant tagging the object type.
matrix(const Operator operator, integer num_sites) -> ComplexMatrix
Converts the operator to its matrix representation.
Parameters
- operator: The operator to convert.
- num_sites: The number of sites.
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 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 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
- array: The input RealSparseMatrix.
- type: The type of the matrix to create.
matrix(const Operator operator, integer num_sites, as_complex type_tag) -> ComplexMatrix
Converts the operator to its matrix representation.
Parameters
- operator: The operator to convert.
- num_sites: The number of sites.
- type_tag: A global constant tagging the object type.
ones(const List<integer> shape) -> ComplexMatrix
Creates a container with the specified shape and type, filled with ones.
Parameters
- shape: The shape of the container to create.
ones(const List<integer> shape, as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with ones.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
ones(const List<integer> shape, as_scalar type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with ones.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
ones(const List<integer> shape, as_complex | as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with ones.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
ones(const List<integer> shape, as_complex type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with ones.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
ones_like(const ComplexMatrix lhs) -> ComplexMatrix
Return a container of ones with the same shape and type as a given container.
Parameters
- lhs: The input container.
random(const List<integer> shape) -> ComplexMatrix
Creates a container with the specified shape and type, filled with random values.
Parameters
- shape: The shape of the container to create.
random(const List<integer> shape, as_complex | as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with random values.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
random(const List<integer> shape, as_complex type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with random values.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
random(const List<integer> shape, as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with random values.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
random(const List<integer> shape, as_scalar type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with random values.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
uninitialized(const List<integer> shape) -> ComplexMatrix
Creates a container with the specified shape and type.
Parameters
- shape: The shape of the container to create.
uninitialized(const List<integer> shape, as_complex type) -> ComplexMatrix
Creates a container with the specified shape and type.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
uninitialized(const List<integer> shape, as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
uninitialized(const List<integer> shape, as_scalar type) -> ComplexMatrix
Creates a container with the specified shape and type.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
uninitialized(const List<integer> shape, as_complex | as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
uninitialized_like(const ComplexMatrix lhs) -> ComplexMatrix
Return a container of uninitialized values with the same shape and type as a given container.
Parameters
- lhs: The input container.
vector(const List list) -> ComplexMatrix
Converts a list to a column-vector.
Parameters
- list: The list containing the values.
vector(const List list, as_complex type) -> ComplexMatrix
Converts a list to a column-vector.
Parameters
- list: The list containing the values.
- type: The type of the vector to create.
vector(const List list, as_scalar type) -> ComplexMatrix
Converts a list to a column-vector.
Parameters
- list: The list containing the values.
- type: The type of the vector to create.
zeros(const List<integer> shape) -> ComplexMatrix
Creates a container with the specified shape and type, filled with zeros.
Parameters
- shape: The shape of the container to create.
zeros(const List<integer> shape, as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with zeros.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
zeros(const List<integer> shape, as_complex type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with zeros.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
zeros(const List<integer> shape, as_scalar type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with zeros.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
zeros(const List<integer> shape, as_complex | as_matrix type) -> ComplexMatrix
Creates a container with the specified shape and type, filled with zeros.
Parameters
- shape: The shape of the container to create.
- type: The type of the container to create.
zeros_like(const ComplexMatrix lhs) -> ComplexMatrix
Return a container of zeros with the same shape and type as a given container.
Parameters
- lhs: The input container.
Constructors
ComplexMatrix() -> ComplexMatrix
Creates an empty ComplexMatrix.
ComplexMatrix(const List list) -> ComplexMatrix
Creates an ComplexMatrix from a list of lists of elements.
Parameters
- list: A list of elements to populate the column array.
ComplexMatrix(integer m) -> ComplexMatrix
Creates an m x 1 ComplexMatrix. The array comes out uninitialized.
Parameters
- m: The number of rows.
ComplexMatrix(integer m, integer n) -> ComplexMatrix
Creates an m x n ComplexMatrix. The array comes out uninitialized.
Parameters
- m: The number of rows.
- n: The number of columns.
Symbols
| Name | Description |
|---|---|
* | Matrix-scalar multiplication operator. |
*= | Matrix-scalar multiplication-assignment compound operator. |
+ | Matrix addition operator. |
+= | Matrix addition-assignment compound operator. |
- | Matrix subtraction operator. |
-= | Matrix subtraction-assignment compound operator. |
/ | Matrix-scalar division operator. |
/= | Matrix-scalar division-assignment compound operator. |
= | Matrix assignment operator. |
[] | Gets or sets the element at index i of the ComplexMatrix. |
Members
| Name | Description |
|---|---|
| adjoint | Adjoints (conjugate-transpose) the ComplexMatrix in place. |
| adjointed | Returns the adjoint (conjugate-transpose) of the given matrix. |
| all | Returns true if all elements of the ComplexMatrix are finite. |
| all_finite | Returns true if all elements of the ComplexMatrix are finite. |
| any | Returns true if any element of the ComplexMatrix is finite. |
| as_diagonal | Turns a ComplexMatrix into a diagonal matrix. The input must be one-dimensional. |
| block | Get a block (sub-ComplexMatrix) of the ComplexMatrix. |
| bottom_left_corner | Get the bottom-left corner of the ComplexMatrix. |
| bottom_right_corner | Get the bottom-right corner of the ComplexMatrix. |
| bottom_rows | Get the bottom rows of the ComplexMatrix. |
| col | Get a column of the ComplexMatrix. |
| cols | Returns the number of columns of a ComplexMatrix. |
| cond | Returns the 2-norm condition number of the matrix, which is the ratio of the largest to the smallest singular value. |
| container_type | Returns the underlying container type of the ComplexMatrix. |
| cos | Computes the matrix cosine of the ComplexMatrix lhs. |
| cosh | Computes the matrix hyperbolic cosine of the ComplexMatrix lhs. |
| count | Counts the number of finite elements in the ComplexMatrix. |
| determinant | This function computes the determinant of the given matrix. |
| diagonal | Returns the diagonal elements of the ComplexMatrix as a column vector. |
| dot | This function computes the dot product between two matrices. The left-hand-side variable is complex conjugated. |
| exp | Computes the matrix exponential of the ComplexMatrix lhs. |
| fill | Sets all elements of the ComplexMatrix lhs to the constant c. |
| flatten | Flattens the ComplexMatrix in-place. |
| flattened | Returns a flattened copy of the ComplexMatrix. |
| flip | Flips the ComplexMatrix along the specified dimension. |
| flipped | Returns a ComplexMatrix flipped along the specified dimension. |
| has_nan | Returns true if the ComplexMatrix has any NaN (not-a-number) elements. |
| inverse | Computes the inverse of the given matrix in-place. |
| inversed | Computes the inverse of the given matrix. |
| is_approx | Returns true if the ComplexMatrix lhs is approximately equal to the ComplexMatrix rhs. |
| is_approx_to_constant | Returns true if all elements of the ComplexMatrix lhs are approximately equal to the constant val. |
| is_array | Whether the container is an array (which supports elementwise operations). |
| is_bool | Whether the underlying scalar type of the ComplexMatrix is bool. |
| is_column_vector | Returns true if the container is a column-vector. |
| is_complex | Whether the underlying scalar type of the ComplexMatrix is complex. |
| is_constant | Returns true if all elements of the ComplexMatrix lhs are the same. |
| is_dense | Whether the container is dense. |
| is_diagonal | Checks if a ComplexMatrix is approximately equal to a diagonal matrix. |
| is_hermitian | Checks if a ComplexMatrix is approximately equal to a Hermitian matrix. Uses the default tolerance eps = 2.220446049250313e-16. |
| is_identity | Checks if a ComplexMatrix is approximately equal to the identity matrix. |
| is_integer | Whether the underlying scalar type of the ComplexMatrix is integer. |
| is_lower_triangular | Checks if a ComplexMatrix is approximately equal to a lower triangular matrix. |
| is_matrix | Whether the container is a matrix (which supports matrix algebra). |
| is_much_smaller_than | Returns true if the norm of the ComplexMatrix lhs is much smaller than the specified constant val, within the specified tolerance. |
| is_ones | Returns true if all elements of the ComplexMatrix lhs are approximately 1, within the specified tolerance. |
| is_orthogonal | Returns true if the ComplexMatrix lhs is orthogonal to the ComplexMatrix rhs. This function is only supported by one-dimensional matrices (i.e. vectors) |
| is_real | Whether the underlying scalar type of the ComplexMatrix is real. |
| is_row_vector | Returns true if the container is a row-vector. |
| is_scalar | Returns true if the container is a scalar (or a container containing a single element). |
| is_sparse | Whether the container is sparse. |
| is_symmetric | Checks if a ComplexMatrix is approximately equal to a symmetric matrix. |
| is_unitary | Checks if a ComplexMatrix is approximately equal to a unitary matrix. |
| is_upper_triangular | Checks if a ComplexMatrix is approximately equal to an upper triangular matrix. |
| is_vector | Returns true if the container is a vector. |
| is_zero | Returns true if all elements of the ComplexMatrix lhs are 0. |
| left_cols | Get the left columns of the ComplexMatrix. |
| linspace | Sets all elements of the ComplexMatrix lhs to linearly spaced values. This function is only supported by one-dimensional matrices (i.e. vectors) |
| linspaced | Sets all elements of the ComplexMatrix lhs to linearly spaced values. This function is only supported by one-dimensional matrices (i.e. vectors) |
| list | Converts the ComplexMatrix arr to a list with the same elements. |
| log | Computes the matrix logarithm of the ComplexMatrix lhs. |
| lower_triangular | Returns the lower triangular part of the ComplexMatrix lhs. |
| lrflip | Flips the ComplexMatrix left-right (i.e. flips each row). |
| lrflipped | Returns a ComplexMatrix flipped left-right (rows; along the 1-st dimension). |
| middle_cols | Get the middle columns of the ComplexMatrix. |
| middle_rows | Get the middle rows of the ComplexMatrix. |
| norm | Returns the Frobenius norm of the ComplexMatrix lhs. |
| normalize | This function normalizes the vector in place. |
| normalized | This function returns the normalized version of this vector. |
| operator_norm | Computes the L2 operator norm of the ComplexMatrix lhs. |
| pow | Computes the matrix power of the ComplexMatrix lhs. |
| random_like | Return a ComplexMatrix of random numbers with the same shape and type as a given ComplexMatrix. |
| rank | Returns the rank of the ComplexMatrix leveraging the SVD decomposition. |
| rcond | Returns the reciprocal condition number of the matrix, which is the ratio of the smallest to the largest singular value. |
| real | Returns the real component of a ComplexMatrix. |
| replicate | Replicates the elements of the ComplexMatrix lhs in-place by the specified factors. |
| replicated | Replicates the elements of the ComplexMatrix lhs by the specified factors. |
| reshape | Reshapes the ComplexMatrix in-place to the given dimensions. |
| reshaped | Reshapes the ComplexMatrix to the given dimensions. |
| resize | Resizes the ComplexMatrix lhs to the given dimensions. |
| reverse | Reverses the ComplexMatrix in place. |
| reversed | Returns a reversed copy of the ComplexMatrix. |
| right_cols | Get the right columns of the ComplexMatrix. |
| rotate | Returns a (counter-clockwise) rotated copy of the ComplexMatrix. |
| rotated | Returns a (counter-clockwise) rotated copy of the ComplexMatrix. |
| row | Get a row of the ComplexMatrix. |
| rows | Returns the number of rows of a ComplexMatrix. |
| scalar_type | Returns the underlying scalar type of the ComplexMatrix. |
| select | Gets or sets the elements of the ComplexMatrix using slices. |
| set_block | Sets a block of the ComplexMatrix lhs to the values in the ComplexMatrix rhs. |
| set_bottom_left_corner | Get the bottom-left corner of the ComplexMatrix. |
| set_bottom_right_corner | Get the bottom-right corner of the ComplexMatrix. |
| set_bottom_rows | Get the bottom rows of the ComplexMatrix. |
| set_col | Get a column of the ComplexMatrix. |
| set_constant | Sets all elements of the ComplexMatrix lhs to the constant c. |
| set_identity | Sets the ComplexMatrix lhs to the identity matrix. |
| set_left_cols | Get the left columns of the ComplexMatrix. |
| set_middle_cols | Get the middle columns of the ComplexMatrix. |
| set_middle_rows | Get the middle rows of the ComplexMatrix. |
| set_ones | Sets all elements of the ComplexMatrix lhs to 1. |
| set_random | Sets all elements of the ComplexMatrix lhs to random values on the interval [0, 1]. |
| set_right_cols | Get the right columns of the ComplexMatrix. |
| set_row | Get a row of the ComplexMatrix. |
| set_select | Assign the values of rhs to a selection of the ComplexMatrix lhs. |
| set_top_left_corner | Get the top-left corner of the ComplexMatrix. |
| set_top_right_corner | Get the top-right corner of the ComplexMatrix. |
| set_top_rows | Get the top rows of the ComplexMatrix. |
| set_unit | Sets the ComplexMatrix lhs to the unit vector with the specified dimension. |
| set_zero | Sets all elements of the ComplexMatrix lhs to 0. |
| shape | Returns the shape of a ComplexMatrix. |
| shift | Returns a (periodically) shifted copy of the ComplexMatrix. |
| shifted | Returns a (periodically) shifted copy of the ComplexMatrix. |
| sin | Computes the matrix sine of the ComplexMatrix lhs. |
| sinh | Computes the matrix hyperbolic sine of the ComplexMatrix lhs. |
| size | Returns the number of elements of a ComplexMatrix. |
| sqrt | Computes the matrix square root of the ComplexMatrix lhs. |
| squared_norm | Returns the squared Frobenius norm of the ComplexMatrix lhs. |
| stable_normalize | This function normalizes the vector in place using a stable algorithm. |
| stable_normalized | This function returns the normalized version of this vector using a stable algorithm. |
| swap | Swaps the contents of the ComplexMatrix lhs and rhs. |
| top_left_corner | Get the top-left corner of the ComplexMatrix. |
| top_right_corner | Get the top-right corner of the ComplexMatrix. |
| top_rows | Get the top rows of the ComplexMatrix. |
| trace | Returns the trace of the ComplexMatrix lhs. |
| transpose | Transposes the ComplexMatrix in place. |
| transposed | Returns the transpose of the given matrix. |
| udflip | Flips the ComplexMatrix up-down (i.e. flips each column). |
| udflipped | Returns a ComplexMatrix flipped up-down (columns; along the 0-th dimension). |
| upper_triangular | Returns the upper triangular part of the ComplexMatrix lhs. |
| value | Returns the unique coefficient of a 1x1 ComplexMatrix. |