Skip to content

ExaVector and ExaMatrix#233

Open
amontoison wants to merge 1 commit intomainfrom
linalg2-ext
Open

ExaVector and ExaMatrix#233
amontoison wants to merge 1 commit intomainfrom
linalg2-ext

Conversation

@amontoison
Copy link
Member

Modifications of @michel2323

@github-actions
Copy link
Contributor

Your PR requires formatting changes to meet the project's style guidelines.
Please consider running Runic (git runic main) to apply these changes.

Click here to view the suggested changes.
diff --git a/src/nlp.jl b/src/nlp.jl
index 5ab22f9..289e42a 100644
--- a/src/nlp.jl
+++ b/src/nlp.jl
@@ -100,13 +100,13 @@ Parameter
 )
 const Indexable = Union{Variable, Parameter, Subexpr, ParameterSubexpr}
 
-struct ExaVector{V<:Indexable} <: AbstractVector{AbstractNode}
+struct ExaVector{V <: Indexable} <: AbstractVector{AbstractNode}
     var::V
 end
 Base.size(v::ExaVector) = (v.var.length,)
 Base.getindex(v::ExaVector, i::Int) = v.var[i]
 
-struct ExaMatrix{V<:Indexable} <: AbstractMatrix{AbstractNode}
+struct ExaMatrix{V <: Indexable} <: AbstractMatrix{AbstractNode}
     var::V
 end
 Base.size(M::ExaMatrix) = M.var.size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant