Skip to main content

ComplexMatrix

A 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

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

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 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

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

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 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

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

NameDescription
*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

NameDescription
adjointAdjoints (conjugate-transpose) the ComplexMatrix in place.
adjointedReturns the adjoint (conjugate-transpose) of the given matrix.
allReturns true if all elements of the ComplexMatrix are finite.
all_finiteReturns true if all elements of the ComplexMatrix are finite.
anyReturns true if any element of the ComplexMatrix is finite.
as_diagonalTurns a ComplexMatrix into a diagonal matrix. The input must be one-dimensional.
blockGet a block (sub-ComplexMatrix) of the ComplexMatrix.
bottom_left_cornerGet the bottom-left corner of the ComplexMatrix.
bottom_right_cornerGet the bottom-right corner of the ComplexMatrix.
bottom_rowsGet the bottom rows of the ComplexMatrix.
colGet a column of the ComplexMatrix.
colsReturns the number of columns of a ComplexMatrix.
condReturns the 2-norm condition number of the matrix, which is the ratio of the largest to the smallest singular value.
container_typeReturns the underlying container type of the ComplexMatrix.
cosComputes the matrix cosine of the ComplexMatrix lhs.
coshComputes the matrix hyperbolic cosine of the ComplexMatrix lhs.
countCounts the number of finite elements in the ComplexMatrix.
determinantThis function computes the determinant of the given matrix.
diagonalReturns the diagonal elements of the ComplexMatrix as a column vector.
dotThis function computes the dot product between two matrices. The left-hand-side variable is complex conjugated.
expComputes the matrix exponential of the ComplexMatrix lhs.
fillSets all elements of the ComplexMatrix lhs to the constant c.
flattenFlattens the ComplexMatrix in-place.
flattenedReturns a flattened copy of the ComplexMatrix.
flipFlips the ComplexMatrix along the specified dimension.
flippedReturns a ComplexMatrix flipped along the specified dimension.
has_nanReturns true if the ComplexMatrix has any NaN (not-a-number) elements.
inverseComputes the inverse of the given matrix in-place.
inversedComputes the inverse of the given matrix.
is_approxReturns true if the ComplexMatrix lhs is approximately equal to the ComplexMatrix rhs.
is_approx_to_constantReturns true if all elements of the ComplexMatrix lhs are approximately equal to the constant val.
is_arrayWhether the container is an array (which supports elementwise operations).
is_boolWhether the underlying scalar type of the ComplexMatrix is bool.
is_column_vectorReturns true if the container is a column-vector.
is_complexWhether the underlying scalar type of the ComplexMatrix is complex.
is_constantReturns true if all elements of the ComplexMatrix lhs are the same.
is_denseWhether the container is dense.
is_diagonalChecks if a ComplexMatrix is approximately equal to a diagonal matrix.
is_hermitianChecks if a ComplexMatrix is approximately equal to a Hermitian matrix. Uses the default tolerance eps = 2.220446049250313e-16.
is_identityChecks if a ComplexMatrix is approximately equal to the identity matrix.
is_integerWhether the underlying scalar type of the ComplexMatrix is integer.
is_lower_triangularChecks if a ComplexMatrix is approximately equal to a lower triangular matrix.
is_matrixWhether the container is a matrix (which supports matrix algebra).
is_much_smaller_thanReturns true if the norm of the ComplexMatrix lhs is much smaller than the specified constant val, within the specified tolerance.
is_onesReturns true if all elements of the ComplexMatrix lhs are approximately 1, within the specified tolerance.
is_orthogonalReturns true if the ComplexMatrix lhs is orthogonal to the ComplexMatrix rhs. This function is only supported by one-dimensional matrices (i.e. vectors)
is_realWhether the underlying scalar type of the ComplexMatrix is real.
is_row_vectorReturns true if the container is a row-vector.
is_scalarReturns true if the container is a scalar (or a container containing a single element).
is_sparseWhether the container is sparse.
is_symmetricChecks if a ComplexMatrix is approximately equal to a symmetric matrix.
is_unitaryChecks if a ComplexMatrix is approximately equal to a unitary matrix.
is_upper_triangularChecks if a ComplexMatrix is approximately equal to an upper triangular matrix.
is_vectorReturns true if the container is a vector.
is_zeroReturns true if all elements of the ComplexMatrix lhs are 0.
left_colsGet the left columns of the ComplexMatrix.
linspaceSets all elements of the ComplexMatrix lhs to linearly spaced values. This function is only supported by one-dimensional matrices (i.e. vectors)
linspacedSets all elements of the ComplexMatrix lhs to linearly spaced values. This function is only supported by one-dimensional matrices (i.e. vectors)
listConverts the ComplexMatrix arr to a list with the same elements.
logComputes the matrix logarithm of the ComplexMatrix lhs.
lower_triangularReturns the lower triangular part of the ComplexMatrix lhs.
lrflipFlips the ComplexMatrix left-right (i.e. flips each row).
lrflippedReturns a ComplexMatrix flipped left-right (rows; along the 1-st dimension).
middle_colsGet the middle columns of the ComplexMatrix.
middle_rowsGet the middle rows of the ComplexMatrix.
normReturns the Frobenius norm of the ComplexMatrix lhs.
normalizeThis function normalizes the vector in place.
normalizedThis function returns the normalized version of this vector.
operator_normComputes the L2 operator norm of the ComplexMatrix lhs.
powComputes the matrix power of the ComplexMatrix lhs.
random_likeReturn a ComplexMatrix of random numbers with the same shape and type as a given ComplexMatrix.
rankReturns the rank of the ComplexMatrix leveraging the SVD decomposition.
rcondReturns the reciprocal condition number of the matrix, which is the ratio of the smallest to the largest singular value.
realReturns the real component of a ComplexMatrix.
replicateReplicates the elements of the ComplexMatrix lhs in-place by the specified factors.
replicatedReplicates the elements of the ComplexMatrix lhs by the specified factors.
reshapeReshapes the ComplexMatrix in-place to the given dimensions.
reshapedReshapes the ComplexMatrix to the given dimensions.
resizeResizes the ComplexMatrix lhs to the given dimensions.
reverseReverses the ComplexMatrix in place.
reversedReturns a reversed copy of the ComplexMatrix.
right_colsGet the right columns of the ComplexMatrix.
rotateReturns a (counter-clockwise) rotated copy of the ComplexMatrix.
rotatedReturns a (counter-clockwise) rotated copy of the ComplexMatrix.
rowGet a row of the ComplexMatrix.
rowsReturns the number of rows of a ComplexMatrix.
scalar_typeReturns the underlying scalar type of the ComplexMatrix.
selectGets or sets the elements of the ComplexMatrix using slices.
set_blockSets a block of the ComplexMatrix lhs to the values in the ComplexMatrix rhs.
set_bottom_left_cornerGet the bottom-left corner of the ComplexMatrix.
set_bottom_right_cornerGet the bottom-right corner of the ComplexMatrix.
set_bottom_rowsGet the bottom rows of the ComplexMatrix.
set_colGet a column of the ComplexMatrix.
set_constantSets all elements of the ComplexMatrix lhs to the constant c.
set_identitySets the ComplexMatrix lhs to the identity matrix.
set_left_colsGet the left columns of the ComplexMatrix.
set_middle_colsGet the middle columns of the ComplexMatrix.
set_middle_rowsGet the middle rows of the ComplexMatrix.
set_onesSets all elements of the ComplexMatrix lhs to 1.
set_randomSets all elements of the ComplexMatrix lhs to random values on the interval [0, 1].
set_right_colsGet the right columns of the ComplexMatrix.
set_rowGet a row of the ComplexMatrix.
set_selectAssign the values of rhs to a selection of the ComplexMatrix lhs.
set_top_left_cornerGet the top-left corner of the ComplexMatrix.
set_top_right_cornerGet the top-right corner of the ComplexMatrix.
set_top_rowsGet the top rows of the ComplexMatrix.
set_unitSets the ComplexMatrix lhs to the unit vector with the specified dimension.
set_zeroSets all elements of the ComplexMatrix lhs to 0.
shapeReturns the shape of a ComplexMatrix.
shiftReturns a (periodically) shifted copy of the ComplexMatrix.
shiftedReturns a (periodically) shifted copy of the ComplexMatrix.
sinComputes the matrix sine of the ComplexMatrix lhs.
sinhComputes the matrix hyperbolic sine of the ComplexMatrix lhs.
sizeReturns the number of elements of a ComplexMatrix.
sqrtComputes the matrix square root of the ComplexMatrix lhs.
squared_normReturns the squared Frobenius norm of the ComplexMatrix lhs.
stable_normalizeThis function normalizes the vector in place using a stable algorithm.
stable_normalizedThis function returns the normalized version of this vector using a stable algorithm.
swapSwaps the contents of the ComplexMatrix lhs and rhs.
top_left_cornerGet the top-left corner of the ComplexMatrix.
top_right_cornerGet the top-right corner of the ComplexMatrix.
top_rowsGet the top rows of the ComplexMatrix.
traceReturns the trace of the ComplexMatrix lhs.
transposeTransposes the ComplexMatrix in place.
transposedReturns the transpose of the given matrix.
udflipFlips the ComplexMatrix up-down (i.e. flips each column).
udflippedReturns a ComplexMatrix flipped up-down (columns; along the 0-th dimension).
upper_triangularReturns the upper triangular part of the ComplexMatrix lhs.
valueReturns the unique coefficient of a 1x1 ComplexMatrix.