Matlab implementation of BDDC method
I want to implement the BDDC preconditioner described in thesis, p. 20 in matlab. That would be nice if one can share an existing implementation.
There exist several implementation in other languages like C and Fortran.
See also questions close to this topic

Cross correlation in Matlab to compute time lag for two time series
I have two time series, y1 and y2 and need to find the time lag between them using crosscorrelation in Matlab. Then I need to plot the crosscorrelation, align the two plots and replot. I have written a bit of Matlab code to do this but I think the crosscorrelation plot is weird and I am unable to interpret it. I am not sure what I am doing wrong here, can you please help? Thanks.
Here is my code at this point:
% Generate time series t = 1:1000; y1=2*sin(2*pi*t/5); y2=2*sin(2*pi*t/5 + 2); % y2 has an introduce phase lag of 2 % Plot the two time series figure (1) plot (t,y1, 'b', t,y2, 'r'); axis ([0 50 2 2]), grid; % compute the cross correlation using the function xcorr maxlag = length(y1); %# set a max lag value here [c,lags]=xcorr(y1,y2, 'coeff');% compute cross correlation figure (2); plot(lags,c)% plot lag versus correlation

Training a Neural Network for Image Classification for a task job
I have no idea how to do this. I have been given a task for a job offer that requires me to create an image classification model for Baci Chocolates. Is Binary. There is one set of damage chocolates and the other is not. The difference is not possible to see at human eyes. The resolution 1920 X 2000 but my concern is that one set is only 27 images(damages) and the other 158 for the chocolates that fine I thought to do a CNN or Residual Neural Network but I don't think they will learn from such a small set. There is any other way I can solve this I repeat this a task for a job offer and I must use this small dataset Any help will be appreacited because I am stuck.

How can I use an optimization variable to determine mathematical function?
I have an optimvar, opening, that determines three other parameters through basic arithmetic.
opening = optimvar('opening','LowerBound', 30, 'UpperBound', 30); opening_zero_geo_def = (e+temp_thickness)/2; geo_def_des_load = opening + opening_zero_geo_def; geo_def_rebound = geo_def_des_load  rebound; geo_def_jounce = geo_def_des_load + m_2_m_clear; po_k = (design_load/spring_rate)+geo_def_des_load; po_kl = po_k/spring_length;
Two parameters, geo_def_jounce and geo_def_rebound, are used to form a domain.
h = .1 travel = geo_def_rebound:h:geo_def_jounce;
The goal is to use po_kl and one other parameter to choose a function that the vales will be manipulated through.
For example
if po_kl is close to .7 rate = .5*travel^3 if po_kl is close to .3 rate = .1*travel^3 + .4*travel^2 (pseudo code)
A polynomial fit is then applied to rate and the root mean squared error of the fit is calculated, and the RMSE is the minimization objective.
My question is how to do this. I've tried using an integer optimvar as an index as suggested by Alan Weiss (https://www.mathworks.com/matlabcentral/answers/374059howcanisetanoptimizationvariabletobeanelementofasetcategorical) but this doesn't work as MATLAB gives an error that optimvars cannot be used as indices.
I've also tried just passing everything with no consideration that it is an optimvar, and that does not work either because an optimvar cannot be used as a conditional statement.
I think it might be nonlinear and then i'll have to a solver based approach but i'm not sure.

Implementation Gamma classifiers in python
I am working in a research about associative classifiers but I need to select the best one according to its performance. In order to do so I need to code in python associative classifiers to compare their performance. I would thank if you can help me with this

Android:How two different modules implemented in one project communicate with each other with some data involving view?
Basic Example:
Android Module 1 has a Button with a data String x= "Data From Module 1";
Android Module 2 has a Textview;
In another android Project which implements both Module 1 and Module 2, when the Button(Module 1) is clicked, Textview(Module 2) should show x value "Data From Module 1" in the view.
Android: Module 1 and Module 2 are Implemented in a Common Project:
My Issue: Android Module 1 has a Google Map with a data LatLng of a place X;
Android Module 2 has customized Markers.
In another android Project which implements both Module 1 and Module 2, when the LatLng from Module 1 is passed to Module 2 to plot the customized marker. What is the implementation for Communication between module 1 and module 2?

how does spring create and maintain beans in singleton scope?Is there any particular code for it ,any documentation where we can see it
We know that spring maintains by default scope of singleton.How does spring do it? Is there any particular source code /documentation to explain the process.
To my understanding: 1> Spring creates bean by refection. 2> The code to create a bean by reflection is inside a synchronized block. 3> Synchronization takes place on a static object which the container creates. to prevent multiple threads to have same object. 4> The reference of the object created is stored and passed on at every subsequent request.
Is this understanding correct? If not where are the gaps in understanding