Skip to main content

ComplexArray

A ComplexArray.

Factories

array(const List list) -> ComplexArray

Converts a list or list of list to a array.

Parameters

  • list: The list containing the values.

array(const ComplexArray lhs) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.

array(const ComplexMatrix lhs) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.

array(const ComplexSparseMatrix lhs) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.

array(const RealArray lhs, as_complex type) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.
  • type: The type of the array to create.

array(const BoolArray lhs, as_complex type) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.
  • type: The type of the array to create.

array(const IntegerArray lhs, as_complex type) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.
  • type: The type of the array to create.

array(const ComplexMatrix lhs, as_complex type) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.
  • type: The type of the array to create.

array(const List list, as_complex type) -> ComplexArray

Converts a list or list of list to an array.

Parameters

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

array(const ComplexSparseMatrix lhs, as_complex type) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.
  • type: The type of the array to create.

array(const RealSparseMatrix lhs, as_complex type) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.
  • type: The type of the array to create.

array(const List list, as_scalar type) -> ComplexArray

Converts a list or list of list to an array.

Parameters

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

array(const ComplexArray lhs, as_complex type) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.
  • type: The type of the array to create.

array(const RealMatrix lhs, as_complex type) -> ComplexArray

Converts a container to an array.

Parameters

  • lhs: The container.
  • type: The type of the array to create.

filled(const List<integer> shape, real value, as_complex | as_array type) -> ComplexArray

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_array type) -> ComplexArray

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_array type) -> ComplexArray

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_array type) -> ComplexArray

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_array type) -> ComplexArray

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_array type) -> ComplexArray

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_array type) -> ComplexArray

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_array type) -> ComplexArray

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 ComplexArray lhs, bool c) -> ComplexArray

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 ComplexArray lhs, complex c) -> ComplexArray

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 ComplexArray lhs, real c) -> ComplexArray

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 ComplexArray lhs, integer c) -> ComplexArray

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, as_complex | as_array type) -> ComplexArray

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_array type) -> ComplexArray

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 ComplexArray lhs) -> ComplexArray

Return the identity with the same shape and type as a given container.

Parameters

  • lhs: The input container.

ones(const List<integer> shape, as_complex | as_array type) -> ComplexArray

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_array type) -> ComplexArray

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 ComplexArray lhs) -> ComplexArray

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, as_array type) -> ComplexArray

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 | as_array type) -> ComplexArray

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, as_array type) -> ComplexArray

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_array type) -> ComplexArray

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 ComplexArray lhs) -> ComplexArray

Return a container of uninitialized values with the same shape and type as a given container.

Parameters

  • lhs: The input container.

zeros(const List<integer> shape, as_complex | as_array type) -> ComplexArray

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_array type) -> ComplexArray

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 ComplexArray lhs) -> ComplexArray

Return a container of zeros with the same shape and type as a given container.

Parameters

  • lhs: The input container.

Constructors

ComplexArray() -> ComplexArray

Creates an empty ComplexArray.

ComplexArray(integer m) -> ComplexArray

Creates an m x 1 ComplexArray. The array comes out uninitialized.

Parameters

  • m: The number of rows.

ComplexArray(const List list) -> ComplexArray

Creates an ComplexArray from a list of lists of elements.

Parameters

  • list: A list of elements to populate the column array.

ComplexArray(integer m, integer n) -> ComplexArray

Creates an m x n ComplexArray. The array comes out uninitialized.

Parameters

  • m: The number of rows.
  • n: The number of columns.

Symbols

NameDescription
[]Gets or sets the element at index i of the ComplexArray.

Members

NameDescription
allReturns true if all elements of the ComplexArray are finite.
all_finiteReturns true if all elements of the ComplexArray are finite.
anyReturns true if any element of the ComplexArray is finite.
blockGet a block (sub-ComplexArray) of the ComplexArray.
bottom_left_cornerGet the bottom-left corner of the ComplexArray.
bottom_right_cornerGet the bottom-right corner of the ComplexArray.
bottom_rowsGet the bottom rows of the ComplexArray.
colGet a column of the ComplexArray.
colsReturns the number of columns of a ComplexArray.
container_typeReturns the underlying container type of the ComplexArray.
countCounts the number of finite elements in the ComplexArray.
fillSets all elements of the ComplexArray lhs to the constant c.
flattenFlattens the ComplexArray in-place.
flattenedReturns a flattened copy of the ComplexArray.
flipFlips the ComplexArray along the specified dimension.
flippedReturns a ComplexArray flipped along the specified dimension.
has_nanReturns true if the ComplexArray has any NaN (not-a-number) elements.
is_approxReturns true if the ComplexArray lhs is approximately equal to the ComplexArray rhs.
is_approx_to_constantReturns true if all elements of the ComplexArray 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 ComplexArray is bool.
is_column_vectorReturns true if the container is a column-vector.
is_complexWhether the underlying scalar type of the ComplexArray is complex.
is_constantReturns true if all elements of the ComplexArray lhs are approximately the same, within the specified tolerance.
is_denseWhether the container is dense.
is_integerWhether the underlying scalar type of the ComplexArray is integer.
is_matrixWhether the container is a matrix (which supports matrix algebra).
is_much_smaller_thanReturns true if the norm of the ComplexArray lhs is much smaller than the norm of the ComplexArray rhs, within the specified tolerance.
is_onesReturns true if all elements of the ComplexArray lhs are 1.
is_realWhether the underlying scalar type of the ComplexArray 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_vectorReturns true if the container is a vector.
is_zeroReturns true if all elements of the ComplexArray lhs are approximately 0, within the specified tolerance.
left_colsGet the left columns of the ComplexArray.
listConverts the ComplexArray arr to a list with the same elements.
lrflipFlips the ComplexArray left-right (i.e. flips each row).
lrflippedReturns a ComplexArray flipped left-right (rows; along the 1-st dimension).
middle_colsGet the middle columns of the ComplexArray.
middle_rowsGet the middle rows of the ComplexArray.
random_likeReturn a ComplexArray of random numbers with the same shape and type as a given ComplexArray.
realReturns the real component of a ComplexArray.
replicateReplicates the elements of the ComplexArray lhs in-place by the specified factors.
replicatedReplicates the elements of the ComplexArray lhs by the specified factors.
reshapeReshapes the ComplexArray in-place to the given dimensions.
reshapedReshapes the ComplexArray to the given dimensions.
resizeResizes the ComplexArray lhs to the given size.
reverseReverses the ComplexArray in place.
reversedReturns a reversed copy of the ComplexArray.
right_colsGet the right columns of the ComplexArray.
rotateReturns a (counter-clockwise) rotated copy of the ComplexArray.
rotatedReturns a (counter-clockwise) rotated copy of the ComplexArray.
rowGet a row of the ComplexArray.
rowsReturns the number of rows of a ComplexArray.
scalar_typeReturns the underlying scalar type of the ComplexArray.
selectGets or sets the elements of the ComplexArray using slices.
set_blockSets a block of the ComplexArray lhs to the values in the ComplexArray rhs.
set_bottom_left_cornerGet the bottom-left corner of the ComplexArray.
set_bottom_right_cornerGet the bottom-right corner of the ComplexArray.
set_bottom_rowsGet the bottom rows of the ComplexArray.
set_colGet a column of the ComplexArray.
set_constantSets all elements of the ComplexArray lhs to the constant c.
set_left_colsGet the left columns of the ComplexArray.
set_middle_colsGet the middle columns of the ComplexArray.
set_middle_rowsGet the middle rows of the ComplexArray.
set_onesSets all elements of the ComplexArray lhs to 1.
set_randomSets all elements of the ComplexArray lhs to random values on the interval [0, 1].
set_right_colsGet the right columns of the ComplexArray.
set_rowGet a row of the ComplexArray.
set_selectAssign the values of rhs to a selection of the ComplexArray lhs.
set_top_left_cornerGet the top-left corner of the ComplexArray.
set_top_right_cornerGet the top-right corner of the ComplexArray.
set_top_rowsGet the top rows of the ComplexArray.
set_zeroSets all elements of the ComplexArray lhs to 0.
shapeReturns the shape of a ComplexArray.
shiftReturns a (periodically) shifted copy of the ComplexArray.
shiftedReturns a (periodically) shifted copy of the ComplexArray.
sizeReturns the number of elements of a ComplexArray.
swapSwaps the contents of the ComplexArray lhs and rhs.
top_left_cornerGet the top-left corner of the ComplexArray.
top_right_cornerGet the top-right corner of the ComplexArray.
top_rowsGet the top rows of the ComplexArray.
transposeTransposes the ComplexArray in place.
udflipFlips the ComplexArray up-down (i.e. flips each column).
udflippedReturns a ComplexArray flipped up-down (columns; along the 0-th dimension).
valueReturns the unique coefficient of a 1x1 ComplexArray.