Mercurial > repos > public > sbplib
view +multiblock/local2globalClosure.m @ 978:1a30dbe99c7c
Refactor CdiffImplicit to take input arguments in the right order
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 07 Jan 2019 16:15:49 +0100 |
parents | ba10f24bf476 |
children |
line wrap: on
line source
% Takes the block-local closures and turns it into a global closure % local -- The local closure % div -- block matrix division for the diffOp % I -- Index of blockmatrix block function closure = local2globalClosure(local, div, I) closure_bm = blockmatrix.zero(div); closure_bm{I,I} = local; closure = blockmatrix.toMatrix(closure_bm); end