pub struct MatrixComplexF64 { /* private fields */ }

Implementations§

Creates a new MatrixF64 with all elements set to zero

Example with n1 = 2 and n2 = 3 :

XX XX XX

XX XX XX

This function returns the (i,j)-th element of the matrix. If y or x lie outside the allowed range of 0 to n1-1 and 0 to n2-1 then the error handler is invoked and 0 is returned.

This function sets the value of the (i,j)-th element of the matrix to value. If y or x lies outside the allowed range of 0 to n1-1 and 0 to n2-1 then the error handler is invoked.

This function sets all the elements of the matrix to the value x.

This function sets all the elements of the matrix to zero.

This function sets the elements of the matrix to the corresponding elements of the identity matrix, m(i,j) = \delta(i,j), i.e. a unit diagonal with all off-diagonal elements zero. This applies to both square and rectangular matrices.

This function copies the elements of the other matrix into the self matrix. The two matrices must have the same size.

This function copies the elements of the self matrix into the other matrix. The two matrices must have the same size.

This function exchanges the elements of the matrices self and other by copying. The two matrices must have the same size.

This function copies the elements of the y-th row of the matrix into the returned vector.

This function copies the elements of the x-th column of the matrix into the returned vector.

This function copies the elements of the vector v into the y-th row of the matrix. The length of the vector must be the same as the length of the row.

This function copies the elements of the vector v into the x-th column of the matrix. The length of the vector must be the same as the length of the column.

This function exchanges the y1-th and y2-th rows of the matrix in-place.

This function exchanges the x1-th and x2-th columns of the matrix in-place.

This function exchanges the i-th row and j-th column of the matrix in-place. The matrix must be square for this operation to be possible.

This function returns the transpose of the matrix by copying the elements into it. This function works for all matrices provided that the dimensions of the matrix dest match the transposed dimensions of the matrix.

This function replaces the matrix m by its transpose by copying the elements of the matrix in-place. The matrix must be square for this operation to be possible.

This function adds the elements of the other matrix to the elements of the self matrix. The result self(i,j) <- self(i,j) + other(i,j) is stored in self and other remains unchanged. The two matrices must have the same dimensions.

This function subtracts the elements of the other matrix from the elements of the self matrix. The result self(i,j) <- self(i,j) - other(i,j) is stored in self and other remains unchanged. The two matrices must have the same dimensions.

This function multiplies the elements of the self matrix by the elements of the other matrix. The result self(i,j) <- self(i,j) * other(i,j) is stored in self and other remains unchanged. The two matrices must have the same dimensions.

This function divides the elements of the self matrix by the elements of the other matrix. The result self(i,j) <- self(i,j) / other(i,j) is stored in self and other remains unchanged. The two matrices must have the same dimensions.

This function multiplies the elements of the self matrix by the constant factor x. The result self(i,j) <- x self(i,j) is stored in self.

This function adds the constant value x to the elements of the self matrix. The result self(i,j) <- self(i,j) + x is stored in self.

This function returns true if all the elements of the self matrix are stricly zero.

This function returns true if all the elements of the self matrix are stricly positive.

This function returns true if all the elements of the self matrix are stricly negative.

This function returns true if all the elements of the self matrix are stricly non-negative.

This function returns true if all elements of the two matrix are equal.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.