Struct rgsl::types::vector_complex::VectorComplexF64[][src]

pub struct VectorComplexF64 { /* fields omitted */ }

Implementations

Create a new VectorComplexF64with all elements set to zero

This function returns the i-th element of a vector v. If i lies outside the allowed range of 0 to n-1 then the error handler is invoked and 0 is returned.

This function sets the value of the i-th element of a vector v to x. If i lies outside the allowed range of 0 to n-1 then the error handler is invoked.

This function sets all the elements of the vector v to the value x.

This function sets all the elements of the vector v to zero.

This function makes a basis vector by setting all the elements of the vector v to zero except for the i-th element which is set to one.

This function copies the elements of the other vector into the self vector. The two vectors must have the same length.

This function copies the elements of the self vector into the other vector. The two vectors must have the same length.

This function exchanges the elements of the vectors by copying. The two vectors must have the same length.

This function exchanges the i-th and j-th elements of the vector v in-place.

This function reverses the order of the elements of the vector v.

This function adds the elements of the other vector to the elements of the self vector. The result a_i <- a_i + b_i is stored in self and other remains unchanged. The two vectors must have the same length.

This function subtracts the elements of the self vector from the elements of the other vector. The result a_i <- a_i - b_i is stored in self and other remains unchanged. The two vectors must have the same length.

This function multiplies the elements of the self vector a by the elements of the other vector. The result a_i <- a_i * b_i is stored in self and other remains unchanged. The two vectors must have the same length.

This function divides the elements of the self vector by the elements of the other vector. The result a_i <- a_i / b_i is stored in self and other remains unchanged. The two vectors must have the same length.

This function multiplies the elements of the self vector by the constant factor x. The result a_i <- a_i is stored in self.

This function adds the constant value x to the elements of the self vector. The result a_i <- a_i + x is stored in self.

This function returns true if all the elements of the self vector are equal to 0.

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

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

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

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

Performs the conversion.

Performs the conversion.

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.