Hi,
I am using La4j for working with sparse matrices. I need to insert a sparse matrix (A) into another sparse matrix (B) starting at specific location (i,j). Basically, what I need is an opposite operation from the slice(arg0, arg1, arg2, arg3) method.
I could write a function based on mat.eachNonZero(arg0) and mat.set(arg0, arg1, arg2) methods, to take the advantage of features for sparse matrices, but was wondering if there is already another way of doing this, using the current API to be sure I am getting the best possible performance (I am not a skilled programmer L)?
Thank you in advance.
Best,
Marko