uncomplicate.neanderthal.aux

Contains type-agnostic auxiliary functions roughly corresponding to the functionality usually defined in auxiliary LAPACK (sorting etc.), or useful functions that may not commonly be implemented by BLAS engines, but are helpful vectorized ruoutines. This namespace works similarly to the uncomplicate.neanderthal.core namespace; see there for more details about the intended use.

Cheat Sheet

permute-cols

(permute-cols a jpiv forward)(permute-cols a jpiv)

Rearranges columnss of a given matrix as specified by a permutation vector jpiv forward or backward.

permute-cols!

(permute-cols! a jpiv forward)(permute-cols! a jpiv)

Destructively rearranges columns of a given matrix as specified by a permutation vector jpiv forward or backward.

permute-rows

(permute-rows a ipiv forward)(permute-rows a ipiv)

Rearranges rows of a given matrix as specified by a permutation vector ipiv forward or backward.

permute-rows!

(permute-rows! a ipiv forward)(permute-rows! a ipiv)

Destructively rearranges rows of a given matrix as specified by a permutation vector ipiv forward or backward.

sort!

(sort! x increasing)

Sorts input vector or all matrix slices (columns or rows, according to layout).

If x is a vector with stride different than 1, throws ExceptionInfo.

sort+!

(sort+! x)

Sorts input vector or all matrix slices (columns or rows, according to layout) in ascending order.

If x is a vector with stride different than 1, throws ExceptionInfo.

sort-!

(sort-! x)

Sorts input vector or all matrix slices (columns or rows, according to layout) in descending order.

If x is a vector with stride different than 1, throws ExceptionInfo.

swap-cols

(swap-cols a ipiv k1 k2)(swap-cols a ipiv)

Performs a series of column interchanges on a general rectangular matrix.

If (dim x) is smaller than k2 - k1, throws ExceptionInfo.

swap-cols!

(swap-cols! a jpiv k1 k2)(swap-cols! a jpiv)

Performs a series of destructive column interchanges on a general rectangular matrix.

If (dim x) is smaller than k2 - k1, throws ExceptionInfo.

swap-rows

(swap-rows a ipiv k1 k2)(swap-rows a ipiv)

Performs a series of destructive row interchanges on a general rectangular matrix.

If (dim x) is smaller than k2 - k1, throws ExceptionInfo.

swap-rows!

(swap-rows! a ipiv k1 k2)(swap-rows! a ipiv)

Performs a series of destructive row interchanges on a general rectangular matrix.

If (dim x) is smaller than k2 - k1, throws ExceptionInfo.