We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mortar
I know I can do
a = randn(3, 3) mortar((a, a, a))
However, in my case, a is not defined in the code, it's arbitrarily generated from a function that I will call many times. For instance, consider
a
f(a) = a
I tried both of these and neither seems to work
mortar(([f(a) for i in 1:3]...)) mortar(tuple([f(a) for i in 1:3]))
The text was updated successfully, but these errors were encountered:
You're not constructing the Tuple correctly. In any case, your test function should return a matrix, and not an integer.
Tuple
This should work:
julia> f(a) = fill(a,2,2) f (generic function with 1 method) julia> Tuple([f(i) for i in 1:3]) ([1 1; 1 1], [2 2; 2 2], [3 3; 3 3]) julia> mortar(Tuple([f(i) for i in 1:4])) 1×4-blocked 2×8 BlockMatrix{Int64}: 1 1 │ 2 2 │ 3 3 │ 4 4 1 1 │ 2 2 │ 3 3 │ 4 4
Sorry, something went wrong.
No branches or pull requests
I know I can do
However, in my case,
a
is not defined in the code, it's arbitrarily generated from a function that I will call many times. For instance, considerI tried both of these and neither seems to work
The text was updated successfully, but these errors were encountered: