Gridap.Algebra

Gridap.AlgebraModule
source
Gridap.Algebra.BackslashSolverType
struct BackslashSolver <: LinearSolver end

Wrapper of the backslash solver available in julia This is typically faster than LU for a single solve

source
Gridap.Algebra.NLSolverType
struct NLSolver <: NonLinearSolver
  # private fields
end

The cache generated when using this solver has a field result that hosts the result object generated by the underlying nlsolve function. It corresponds to the most latest solve.

source
Gridap.Algebra.NLSolverMethod
NLSolver(ls::LinearSolver;kwargs...)
NLSolver(;kwargs...)

Same kwargs as in nlsolve. If ls is provided, it is not possible to use the linsolve kw-argument.

source
Gridap.Algebra.SparseMatrixCSRType
struct SparseMatrixCSR{Bi,Tv,Ti<:Integer} <: AbstractSparseMatrix{Tv,Ti}

Matrix type for storing Bi-based sparse matrices in the Compressed Sparse Row format. The standard way of constructing SparseMatrixCSR is through the sparsecsr function.

source
Gridap.Algebra.SymSparseMatrixCSRType
struct SymSparseMatrixCSR{T,Ti<:Integer} <: AbstractSparseMatrix{T,Ti}

Matrix type for storing symmetric sparse matrices in the Compressed Sparse Row format. The standard way of constructing SparseMatrixCSR is through the symsparsecsr function.

source
Gridap.Algebra.add_entry!Function
add_entry!(A,v::Number,i::Integer,j::Integer,combine::Function=+)

Add an entry given its position and the operation to perform.

source
Gridap.Algebra.colvalsMethod
colvals(S::AbstractSparseMatrix)

Return columns indices or raises an error (Depending on the SparseMatrix type)

source
Gridap.Algebra.is_entry_storedMethod
is_entry_stored(::Type{T} where T,i::Integer,j::Integer) -> Bool

Tells if the entry with coordinates [i,j] will be stored when calling function push_coo!

source
Gridap.Algebra.push_coo!Method
push_coo!(::Type{T} where T, I,J,V,ik,jk,vk)

Inserts entries in COO vectors for further building a sparse matrix of type T.

source
Gridap.Algebra.solve!Method
solve!(x::AbstractVector,nls::NonLinearSolver,op::NonLinearOperator,cache)

Solve using the cache object from a previous solve.

source
Gridap.Algebra.solve!Method
solve!(x::AbstractVector,nls::NonLinearSolver,op::NonLinearOperator)

Usage:

cache = solve!(x,nls,op)

The returned cache object can be used in subsequent solves:

solve!(x,nls,op,cache)

source
Base.convertMethod
convert(::Type{AbstractSparseMatrix}, x::AbstractSparseMatrix)

Convert x to a value of the first type given.

source
Base.countMethod
count(pred, S::AbstractSparseMatrix) -> Integer

Count the number of elements in nonzeros(S) for which predicate pred returns true.

source
SparseArrays.findnzMethod
findnz(S::AbstractSparseMatrix)

Return a tuple (I, J, V) where I and J are the row and column indices of the stored ("structurally non-zero") values in sparse matrix A, and V is a vector of the values.

source
SparseArrays.nnzMethod
nnz(S::AbstractSparseMatrix)

Returns the number of stored (filled) elements in a sparse array.

source
SparseArrays.nonzerosMethod
nonzeros(S::AbstractSparseMatrix)

Return a vector of the structural nonzero values in sparse array S. This includes zeros that are explicitly stored in the sparse array. The returned vector points directly to the internal nonzero storage of S, and any modifications to the returned vector will mutate S as well.

source
SparseArrays.nzrangeMethod
nzrange(S::AbstractSparseMatrix, index::Integer) where {Bi}

Return the range of indices to the structural nonzero values of a sparse matrix index (Row or column depending on the compression type).

source
SparseArrays.rowvalsMethod
rowvals(S::AbstractSparseMatrix)

Return row indices or raises an error (Depending on the SparseMatrix type)

source