Selectors
Abstract Types
RLinearAlgebra.Selector — TypeSelectorAn abstract type containing user controlled parameters for a technique that selects indices from a matrix.
RLinearAlgebra.SelectorRecipe — TypeSelectorRecipeAn abstract type containing user controlled parameters and preallocated memory for a technique that selects indices from a matrix.
Selector Structures
RLinearAlgebra.LUPP — TypeLUPP <: SelectorA Selector that implements LU with partial pivoting for selecting column indices from a matrix.
Fields
compressor::Compressor, the compression technique that will be applied to the matrix, before selecting indices.
Constructor
LUPP(;compressor = Identity())Keywords
compressor::Compressor, the compression technique that will be applied to the matrix, before selecting indices. Defaults to theIdentitycompressor.
Returns
- A
LUPPobject.
RLinearAlgebra.LUPPRecipe — TypeLUPPRecipe <: SelectorRecipeA SelectorRecipe that contains all the necessary preallocations for selecting column indices from a matrix using LU with partial pivoting.
Fields
compressor::CompressorRecipe, the compression technique that will applied to the matrix, before selecting indices.SA::AbstractMatrix, a buffer matrix for storing the sketched matrix.
Exported Functions
RLinearAlgebra.complete_selector — Functioncomplete_selector(selector::Selector, A::AbstractMatrix)A function that generates a SelectorRecipe given arguments.
Arguments
selector::Selector, a data structure containing the user-defined parameters associated with a particular selection method.A::AbstractMatrix, a target matrix for approximation.
Outputs
- A
SelectorRecipeobject.
RLinearAlgebra.update_selector! — Functionupdate_selector!(selector::SelectorRecipe)A function that updates the SelectorRecipe in place given the arguments.
Arguments
selector::SelectorRecipe, a fully initialized realization for a selector method for a particular matrix.
Outputs
- A
SelectorRecipeobject.
update_selector!(selector::SelectorRecipe, A::AbstractMatrix)A function that updates the SelectorRecipe in place given the arguments.
Arguments
selector::SelectorRecipe, a fully initialized realization for a selector method for a particular matrix.A::AbstractMatrix, a target matrix for approximation.
Outputs
- A
SelectorRecipeobject.
RLinearAlgebra.select_indices! — Functionselect_indices!(
idx::AbstractVector,
selector::SelectorRecipe,
A::AbstractMatrix,
n_idx::Int64,
start_idx::Int64
)A function that selects indices from a matrix A using a specific SelectorRecipe. It updates the vector idx in place with n_idx new indices starting at index start_idx.
Arguments
idx::vector, a vector where selected indices will be placed.selector::SelectorRecipe, a fully initialized realization for a selector method for a particular matrix.A::AbstractMatrix, a target matrix for approximation.n_idx::Int64, the number of indices to be selected.start_idx::Int64. the starting location inidxwhere the indices will be placed.
Outputs
- Returns
nothing