Skip to content
New issue

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

Issues and inconsistencies in making block matrices #70

Open
kxygk opened this issue Aug 12, 2019 · 0 comments
Open

Issues and inconsistencies in making block matrices #70

kxygk opened this issue Aug 12, 2019 · 0 comments

Comments

@kxygk
Copy link

kxygk commented Aug 12, 2019

I was forced to switch implementations b/c for some reason the default implementation doesn't implement the full matrix.core API (specifically the lu function)

However once I switched to vectorz my old code stopped working

> (set-current-implementation :persistent-vector)
:persistent-vector
> (block-diagonal-matrix [(identity-matrix 2) (identity-matrix 2)])
[[1.0 0.0 0.0 0.0]
 [0.0 1.0 0.0 0.0]
 [0.0 0.0 1.0 0.0]
 [0.0 0.0 0.0 1.0]]
> (set-current-implementation :vectorz)
:vectorz
> (block-diagonal-matrix [(identity-matrix 2) (identity-matrix 2)])
Execution error (ClassCastException) at clojure.core.matrix.impl.defaults/eval16737$fn$aux$iter$fn$fn (defaults.cljc:2202).
class mikera.matrixx.impl.IdentityMatrix cannot be cast to class clojure.lang.IFn (mikera.matrixx.impl.IdentityMatrix and clojure.lang.IFn are in unnamed module of loader 'app')
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

No branches or pull requests

1 participant