Gridap.Algebra

Gridap.AlgebraModule

Exported names

AffineOperator, ArrayBuilder, BackslashSolver, DoNotLoop, LUSolver, LinearSolver, Loop, LoopStyle, MinCPU, MinMemory, NLSolver, NewtonRaphsonSolver, NonlinearOperator, NonlinearSolver, NumericalSetup, SparseMatrixBuilder, SymbolicSetup, add_entries!, add_entry!, allocate_coo_vectors, allocate_in_domain, allocate_in_range, allocate_jacobian, allocate_matrix, allocate_matrix_and_vector, allocate_residual, allocate_residual_and_jacobian, allocate_vector, axpy_entries!, copy_entries!, create_from_nz, finalize_coo!, get_array_type, get_matrix, get_vector, hessian, hessian!, is_entry_stored, jacobian, jacobian!, length_to_ptrs!, muladd!, numerical_setup, numerical_setup!, nz_allocation, nz_counter, nz_index, push_coo!, residual, residual!, residual_and_jacobian, residual_and_jacobian!, rewind_ptrs!, solve, solve!, sparse_from_coo, symbolic_setup, test_linear_solver, test_nonlinear_operator, test_nonlinear_solver, zero_initial_guess,

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.axpy_entries!Method
axpy_entries!(α::Number, A::T, B::T) where {T<: AbstractMatrix} -> T

Efficient implementation of LinearAlgebra.axpy! for sparse matrices.

source
Gridap.Algebra.get_matrixMethod
get_matrix(operator)

Return the matrix corresponding to the assembled left hand side of the operator. This matrix incorporates all boundary conditions and constraints.

source
Gridap.Algebra.get_vectorMethod
get_vector(operator)

Return the vector corresponding to the assembled right hand side of the operator. This vector includes all boundary conditions and constraints.

source
Gridap.Algebra.nz_allocationMethod
nz_allocation(a::ArrayCounter{T})

Allocates a vector that will serve as structural nonzero values internal storage for a matrix holding the values counted in a. See also create_from_nz, SparseArrays.nonzeros.

source
Gridap.Algebra.nz_indexMethod
nz_index(A::AbstractSparseMatrix,i,j)

Index of A[i,j] in the structural nonzero values internal storage of A. See also SparseArrays.nonzeros.

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:

cache = solve!(x,nls,op,cache)
source