uncomplicate.neanderthal.auxil

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 uncomplicate.neanderthal.core; see there for more details about the intended use.

Cheat Sheet

permute-cols

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

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

See lapmr

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.

See lapmr

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.

See lapmr

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.

See lapmr

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 ex-info.

See lasrt

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 ex-info.

See lasrt

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 ex-info.

See lasrt

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 ex-info.

See laswp

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 ex-info.

See laswp

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 ex-info.

See laswp

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 ex-info.

See laswp