instruction stringlengths 43 28.1k |
|---|
Is there an algorithm to rearrange a matrix into block diagonal form, given that the matrix is block diagonal in nature but randomized with an unwise choice of basis?
In particular, are there any python modules for this?
|
I am looking for easily to understand example of level set method used to track phases interfaces. I would like to solve it using FEM because my solution is based on the FEM solution of second Fick law. Initialization step is straight forward - it just distance of each node from the interface. But I have problem with s... |
I was reading this paper http://www.ist.temple.edu/~vucetic/documents/wang11kdd.pdf related to adaptive multi-hyperplane machine for non linear classification
In that paper, they have mentioned about multiclass SVM, with multiple weights for each class.
The loss for any classification is
$l(x_n,y_n) = max_{i\epsilon y... |
I was going through this lecture related to convex optimization. It was proved that logdet function is concave. However, I didn't get the derivation at a part
I didn't get how the step marked in red in the given picture was derived. Which property was used
|
It looks like MATLAB and Mathematica is often used for post-processing and data visualization of 3D vector data.
Now consider you are simulating 3D objects and get out gradient fields etc., is there a software or library one can use to change perspective of this 3D visualized vector data like it usual in CAD tools, so... |
I have this little confusion related to interior point method. In this method we use the log barrier function to approximate the real barrier which is not differential
Now when we find the optimal solution for this objective with log barrier function lets say $x^*(t)$ and its dual $\lambda^*(t)$ and $\gamma^*(t)$ where... |
Are there any libraries available for solving problems at the level of college physics?
In particular, I'm interested in libraries for general purpose programming languages that can calculate results both numerically and symbolically.
Libraries which could be used for implementing something like this are SymPy (Python)... |
I have a system which I assume is linear. I have a matrix $A$ of which each row is a coefficient of a unknown variables in vector $x$. I have vector $B$ which contains the result of each $Ax$.
Solving this system I can obtain the vector x.
Question: How do I obtain the smallest set of variables in $A$ which result in... |
In Matlab, I would like to minimize the function
$$f(S)=\mathrm{trace}(S)+\mathrm{trace}(S^{-2})$$
where $S \in \mathcal{M}_{m,m}$ is symmetric and positive definite, which is definitely a convex function.
I tried the following code:
cvx_solver sdpt3
cvx_begin quiet
variable S(m,m) symmetric;
S == semidefinite(m);
mi... |
I also posted this question on the Math SE site, but it was suggested I post here also.
I want to implement the $\theta$-method to solve an IVP in MATLAB. The $\theta$-method is:
$y_{j+1} = y_j + h[\theta f(t_j, y_j) + (1 - \theta)f(t_{j+1}, y_{j+1})]$ for $\theta \in [0, 1]$.
I want to use it to solve an IVP of this f... |
I'm working on a 2D inviscid fluid simulation using a "panel method", with Potential being used to enforce the no-through boundary condition. I'm trying to incorporate the Kutta condition, which says that the pressure above and below an airfoil are equal when the streams meet at the trailing edge, or equivalently that... |
Theoretically, how does the time to do a density functional theory (DFT) calculation scale with the number of electrons? I'm interested in "typical" DFT implementations such as VASP, ABINIT, etc., not O(N) codes.
|
I debated between asking this question here and in the Academia stack exchange, but decided Computational Science was the most capable of answering the question.
I'm a new graduate student (~1 semester now) and would really like to make a push to be the best I can in my field. My undergraduate was a top 5 engineering ... |
How do those matrices work? Do I need to multiple every single pixel? How about the upperleft, upperright, bottomleft and bottomleft pixels where there's no surrounding pixel? And does the matrix work from left to right and from up to bottom or from up to bottom first and then left to right?
Why does this kernel (Edge ... |
I'm trying to test a simple 1D Poisson solver to show that a finite difference method converges with $\mathcal{O}(h^2)$ and that using a deferred correction for the input function yields a convergence with $\mathcal{O}(h^4)$.
So, the equation is $ - u'' = f $ with boundary conditions $u(0) = u(1) = 0$. The method I'm ... |
So, recently, I have found myself in the position of having to implement a combinations function in MATLAB. What I mean by this is the following: I simply need to list all possible combinations for an ${m \choose n}$ problem.
More concretely, lets say I am given an $m=4$ length vector, where its indicies increase from... |
I'm building an application where I need to compare found data with the actual data it should be.
I have 5 sets of data, each with 3 variables a,b,c.
Let matrix A be a 3x1 matrix with data a,b,c which represents the actual data.
Let matrix B be a 3x3 matrix with unknown data that needs to be calculated.
Let matrix C be... |
Are there any open source libraries available to mutate PDB protein residues? If so are do you have any examples of them?
|
I am trying to fit a data set to an exponential model using scipy. However, the covariance matrix that is returned is 'inf' and I receive the following error:
Traceback (most recent call last):
File "C:\Users\Christopher\Desktop\advancedLab\03_ML_Mogni\analyzeTHIS.py", line 21, in
print 'A = ', ans[0], '+/-... |
I have a dataset running into millions of data points in 3D. For the calculation I am doing, I need to calculate neighbor (range search) to each data point in a radius, try to fit a function, calculate the error for the fit, repeat this for next datapoint and so on. My code works properly but it is taking very long tim... |
I am trying to solve a (large) system of ODEs with GSL solvers. When I use driver method I get an error message of could not allocate space for gsl_interp_accel, when I define control, error and stepper manually, I get bad_alloc exception, which is caused, as far as I understand it, by the same thing that causes could ... |
What are some of the state of the art models for climate simulation? I'm looking for downloadable source codes.
For example in meteorological research I'm personally familiar with WRF, the Weather Research Forecasting model developed by NCAR (among others). What is an equivalent code for long range forecasts?
Follo... |
I have an inhomogeneous linear system
$$
Ax=b
$$
where $A$ is a real $n\times n$ matrix with $n\leq 4$. The nullspace of $A$ is guaranteed to be of zero dimension so the equation has a unique inverse $x=A^{-1} b$. Since the result enters the right hand side of an ODE, which I intend to solve using an adaptive metho... |
How do Python/Numpy arrays scale with increasing array dimensions?
This is based on some behaviour I noticed while benchmarking Python code for this question: How to express this complicated expression using numpy slices
The problem mostly involved indexing to populate an array. I found that the advantages of using (no... |
I was reading this paper related to Multiclass Classification with
Multi-Prototype Support Vector Machines - paper
However, I am having difficulty in understanding why they have mentioned the following problem non convex.
I am really struggling figuring out the convexity/concavity of the functions. Can anyone just skim ... |
Is it possible to calculate the color frequency of a pixel?
I mean, I get a pixel that is red but where this red sits on the spectrum in hertz?
Is this even possible to do even in a limited way?
thanks.
|
Please excuse the longish question, it just needs some explanation to get down to the actual problem. Those familiar with the mentioned algorithms probably could jump directly to the first simplex tablau.
To solve least absolute deviation problems (a.k.a $L_1$-optimization), the Barrodale-Roberts-algorithm is a specia... |
I'd like to be able to view in graph form the volume and pressure of steam produced from heating water in a sealed vessel, starting from room temperature water.
Important variables, such as the saturation temperature of steam at different pressures and the energy required to convert water to steam at different pressure... |
Suppose we want to solve a hyperbolic conservation law $u_t+f(u)_x=0$. I really like to use Lax-Wendroff, which reads
$u_j^{n+1} = u_j^n -\frac{\Delta t}{\Delta x}(g(u_{j+1}^n,u_j^n)-g(u_j^n,u_{j-1}^n))$
where
$g(v,w) = \frac12(f(v)+f(w)) - \frac{\Delta t}{2\Delta x}\vert\frac{f(w)-f(v)}{w-v}\vert^2(w-v)$
or for $f(u)=... |
In a note:
semi-definite programming is equivalent to vector programming.
...
A Vector Program is a Linear Program over dot products.
In Boyd's Convex Optimization, a vector optimization problem is
defined to be optimizing a vector-valued function, where the vectors
are ordered wrt a given cone.
I am not sure if the... |
From Wikipedia
Denote by $\mathbb{S}^n$ the space of all $n \times n$ real symmetric matrices. The space is equipped with the inner product (where ${\rm tr}$ denotes the trace) $$\langle A,B\rangle_{\mathbb{S}^n} = {\rm tr}(A^T B) = \sum_{i=1,j=1}^n A_{ij}B_{ij}.$$
We can rewrite the mathematical program given in th... |
my question is: can I use a RANS simulation to see the effect of mixed/natural convection?
Actually I have also a second question: I would like to do this in Comsol multiphysics, but it seems that it has no model that takes into account turbulence (like k epsilon, Reinolds stress, LES, ecc..).
Ps: this could be becaus... |
What is a good way to extract the diagonal from a symmetric matrix that is already almost diagonal, but where you don't have the matrix elements (only the ability to apply it to vectors)?
Further constraints are, (1) applying the n-by-n matrix n-times to explicitly construct the diagonal would be prohibitively costly,... |
A lot of my own work revolves around making algorithms scale better, and one of the preferred ways of showing parallel scaling and/or parallel efficiency is to plot the performance of an algorithm/code over the number of cores, e.g.
where the $x$-axis represents the number of cores and the $y$-axis some metric, e.g. w... |
In Multigrid, using Poisson's equation, does the equality below always hold regardless of what type of boundary conditions you use?
$$
R= c\cdot I^T, \text{ for some constant }c
$$
where $R$ and $I$ are the restriction and interpolation operator. Why or why not?
|
I am trying to understand an extra terms that appears when I derive the drift-diffusion equations for semiconductors. The extra term (see below) comes from applying the chain rule to the advection term. The extra term behaves as a source term, however, I can't justify its physical meaning.
I think the semiconductor tra... |
I know from "Numerical Methods for Conservation Laws" by Randall J. LeVeque that there is an implication chain of properties of methods for conservation laws:
monotone $\Rightarrow$ $L^1$-contractive $\Rightarrow$ TVD $\Rightarrow$ monotonicity preserving
For the conservation of mass, positivity preservation is most im... |
I was looking at this wikipedia page:
http://en.wikipedia.org/wiki/Finite_difference_coefficient
It is a lists of higher order finite difference approximations, is there any negatives in using these apart from the extra calculations that they require to solve.
|
I have the following algorithm given:
Input: Regular Matrix $A \in \mathbb R^{n,n}$
Output: LU-Decomposition of A = LU
for k = 1, . . . , n do
for j = k, . . . , n do
$r_{kj} = a_{kj} − \sum_{i=1}^{k-1} l_{ki}r_{ij}$
end for
for i = k + 1, . . . , n do
$l_{ik} = (a_{ik} − \sum_{j=1}^{k-1} l_{ij}r_{jk})/r_{kk}$
end f... |
Hi All, I posted this on the math.se site, but this may be a better location.
I need a method of finding the maximum of a real valued trigonometric polynomial where I can trade accuracy for speed. The accepted answer to this question:
https://mathoverflow.net/questions/35538/the-maximum-of-a-real-trigonometric-polynomi... |
I am presently working on solving very large symmetric (but not positive definite) systems, generated by some certain algorithms. These matrices have a nice block sparsity which can be used for parallel solving. But I can't decide whether I should be using a direct approach (like Multi-frontal) or iterative one (precon... |
I'm trying to solve a system non linear-equations:
$$
\frac{\partial K(\mathbf{\lambda})}{\partial \lambda_i} - c_i = 0
$$
for $i = 1, \dots, 15$, using Newton's method:
$$
\lambda^{k + 1} = \lambda^k + p^{k+1}
$$
$$
p^{k+1} = - J(\lambda_k)^{-1} \big (\nabla_\lambda K(\lambda_k) - \mathbf{c}\big ).
$$
I know that the ... |
in matlab, both linsolve and mldivide are used for solving a system of linear equations, in all of determined, overdetermined and underdetermined cases.
Reading their documents, I was wondering what differences are between them? Are they using almost the same algorithms of matrix factorization and triangularization in ... |
Most numerical methods for quadrature treat the integrand as a black-box function. What if we have more information? In particular, what benefit, if any, can we derive from knowing the first few derivatives of the integrand? What other information might be valuable?
For derivatives in particular: error estimates for... |
How would I find the definite integral (between any 2 limits, say a and b) of the absolute value of sin(x)?
I can calculate for the interval 0 to Pi, and from 0 to 2*Pi, but what if the user enters a value far outside 2*Pi? Could I create a while loop?
EDIT: Here is a look at my code and its purpose. I have left my ana... |
Do the ellipsoid methods belong to the trust region methods?
Reading their descriptions I tend to think the idea of the ellipsoid methods belong to the idea of the trust region methods, but am not sure if I am correct.
What are their relations and differences then?
Thanks and regards!
|
I'm writing finite-difference method program using C. The stiffness matrix is symmetrical and band. For its storage I'd like to use Sparse Diagonal Storage format.
Could someone tell please, what solvers can use diagonal storage format? Intel MKL's Paradiso uses only CRS-format, SparseLib doesn't have, Spooles seems al... |
I read this post, "Conservation of a physical quantity when using Neumann boundary conditions applied to the advection-diffusion equation" and although it is the same type of equation it does not fit my problem.
I try to solve the following equation with a no flux boundary with the solver d03pf from NAG. Should not be ... |
I was trying to solve a linear system:
$$
\mathbf{A}\mathbf{x} = \mathbf{y}
$$
but the conditioning number was quite bad (around $10^{17}$).
I thought that the system was singular, but after scaling the
system using the diagonal matrix:
$$
\mathbf{D_{ii}} = 1/\sqrt{\mathbf{A_{ii}}}
$$
and the fact:
$$
\mathbf{A}^{-1} ... |
I have this confusion related to P and NP problems. Why is P a subset of NP? I didn't get it. P problems can be solved in polynomial time. However, NP problems cannot but only verify if a solution is correct of not in polynomial time. Then how come P is subset of NP?
|
For certain applications, such as steady state heat transfer and flow in porous media, it is possible to simulate a much larger (infinite) domain by imposing periodic boundary conditions on opposite boundary faces and dirichlet bc's on the remaining boundaries. For a 2D rectangular domain, the periodic condition can b... |
I am a bit confused why the 0-1 loss function is not convex. What's wrong with it?
|
I have three questions regarding WENO schemes
1) How to actually compute the smoothness indicators $\beta_j$ for required order of polynomial? Any reference which explains the algorithm will be helpful.
The formula for $\beta_j$ is given by equation (2.61) of this paper.
2) How to obtain modified wave-number plots (as... |
I'm trying to localize points I see in a camera image in terms of azimuth and elevation and match points between shots.
Individual shots should differ only in rotation around the camera's center (roughly).
It's not working (as I'll explain below), and I'm looking for things I might be doing wrong.
I've tried different ... |
I need to find all the roots of a scalar function in a given interval. The function may have discontinuities. The algorithm can have a precision of ε (e.g. it is ok if the algorithm doesn't find two distinct roots that are closer than ε).
Does such algorithm exists? Could you point me papers about that?
Actually, I ha... |
Precisely the title of the question.
I have encountered these terms in two areas: conjugate gradient method, and adaptive finite elements.
|
I'm interested in suggestions for book references on the subject of numerical PDE and ODE, in particular, a rigorous analysis of such methods in a manner written for professional mathematicians. It does not have to be extremely comprehensive in the sense of listing hundreds or thousands of different methods, but I woul... |
What is the current state of research on the existence of incomplete cholesky factorizations (in the context of preconditioning) for symmetric positive definite matrices?
I wonder in particular whether the question of existence is settled for finite element mass matrices.
|
I'm learning about numerical methods to obtain the eigenvalues of a system. I have to find the eigenvalues for the time-independent Schrödinger equation but I'm having some difficulties understanding the real problem.
I was told to consider a 2D potential box (what's this? never heard about this before). The domain is ... |
I have a situation where I am trying to maximize the distance between some point particles. For example, I have a periodic simulation box that is 100 Å$^3$, and I am putting in 361 particles. Ideally, the radial distribution function will be zero up until a particular r, at which point it should jump to some particul... |
On page 3 of this document, there are some matrix forms for sparse matrices. I wonder if there are other forms used in computational problems encountered in physics, chemistry, etc., so that reordering the matrix will speedup the computation phase. Preprocessing overhead for matrix reordering should be amortizable via ... |
I develop a parallel time-domain DAE simulation software using OpenMP and Fortran 2003. The main algorithm is:
while t<time_horizon do
X_1=X
while not converged do
!$OMP PARALLEL DO
Solve sub-domain DAE using a portion on X and X_1 to get DeltaX
Correct X=X+DeltaX
!$OMP END PARALLEL ... |
Briggs, "A Multigrid Tutorial" (pg. 35) has the following expressed as 2-D interpolation:
\begin{align*}
v^h_{2i,2j} &= v_{i,j}^{2h}\\
v^h_{2i+1,2j} &= 0.5\cdot(v_{i,j}^{2h} + v_{i+1,j}^{2h})\\
v^h_{2i,2j+1} &= 0.5\cdot(v_{i,j}^{2h} + v_{i,j+1}^{2h})\\
v^h_{2i+1,2j+1} &= 0.25\cdot(v_{i,j}^{2h} + v_{i+1,j}^{2h} + v_{i,j... |
I'm wondering if anyone can point to a browser-based FEM (or other) 2D PDE solver for simple elliptic problems. It seem like there ought to be a javacript implementation that would allow for the drawing of simple geometries, the creation of simple Dirichlet boundary conditions, and the imposition of simple right-hand-s... |
I have a 3 dimensional convex polyhedron whose vertex coordinates are rational. For one of these vertices, I would like to find the nearest integer grid point (under the Euclidean metric) that is contained within the polyhedron. The polyhedron can be specified by a collection of inequalities, or as a collection of vert... |
Experiment description:
In Lagrange interpolation, the exact equation is sampled at $N$ points (polynomial order $N - 1$) and it is interpolated at 101 points. Here $N$ is varied from 2 to 64. Each time $L_1$, $L_2$ and $L_\infty$ error plots are prepared. It is seen that, when the function is sampled at equi-spaced po... |
I need to solve a very large O(10^10) linear selection problem in a distributed memory machine, is there any library that will solve it for me?
In shared memory machines, e.g. std::nth_element does it in average O(n) but deterministic O(n) algorithms also exist. I could live with something worse as long as it's easy t... |
Several families of methods exist for numeric quadrature. If I have a specific class of integrands how do I select the ideal method?
What are the relevant questions to ask both about the integrand (e.g. is it smooth? does it have singularities?) and the computational problem (e.g. error tolerance, computational budget... |
I managed to display the coordinates of x,y and z into a 3D mesh by using delaunay function. The coordinates are in .obj format actually and i have read it into matrix form.
Now, i would like to extract certain features / regions from the 3D mesh, reconstruct a new mesh and get the coordinates of it (I would like to ex... |
I need to compute a closest point on a nonconvex polyhedron to a given point in 3D space. I need a simple algorithm or library. I search in CGAL but did not find a suitable function and the package is very complicated. I also looked on Mauch's CPT (it does not compile) and gts-cpt (the result is not correct). I do not ... |
I'm an engineer and I'm planning to get a bigger toolbox than Excel to solve difficult problems. I started learning Python (as that seems the script language to go for math intense jobs, and runs in the background of many applications) and plan to take a deep look at Sage and Ascend, as those seem to be two good free p... |
I have the following dataset that I need to display on the heat map:
[30, 15, 66, 7, 9999, 78, 42, 132]
So if I map the values to the color scale using a linear function I only see the spike while the rest of the values I cannot tell apart because the difference between them is insignificant in the scale of that spike.... |
I am currently learning a code which utilizes Scharfetter-Gummel discretization for unsteady drift-diffusion equations. For this scheme, a 2D unstructured triangular mesh is used, with the unknowns located at the vertices of the mesh. Cells are then constructed by perpendicular lines bisecting the chords between vert... |
Thomas algorithm can be used to solve a tridiagonal matrix:
$$
\begin{bmatrix}
{b_ 1} & {c_ 1} & { } & { } & { 0 } \\
{a_ 2} & {b_ 2} & {c_ 2} & { } & { } \\
{ } & {a_ 3} & {b_ 3} & \ddots & { } \\
{ } & { } & \ddots & \ddots & {c_{n-1}}\\
{ 0 } & { } & { } & {a_n} & {b_n}\\
\end{bmat... |
I'm a high school student interested in computational science, and I would like to learn more about it. This year I took AP Computer Science for that reason, but except for some very basic gambling stuff we didn't really do any modeling or simulation. Can one of you kind sirs/madams please point me towards a good intro... |
The motivation for my question is the following: in one of Project Euler questions there is a need to count the spanning trees of a rectangular grid graph of dimension 100x500. By the Matrix-Tree theorem this number is equal to the determinant of the matrix obtained by taking the graph Laplacian and deleting its first ... |
I use OpenFOAM for CFD simulations. A very popular preconditioner is GAMG which needs a low number of iterations per a time step in SIMPLE or PISO solvers that are used to simulate the fluid flow.
I would like to understand how GAMG prepares the internal structures.
Does it create the internal data structures used in ... |
I tried to make the question as detailed as possible. I have an extremely simple solver written for the Schroedinger equation but with imaginary time, which transforms it basically into the diffusion equation (with a potential term). The method is pretty well documented on this page, and I basically followed the steps ... |
Consider a scalar field $u$ on an unstructured triangle mesh which is constant on each face. Let $A_i$ be the area of triangle $T_i$, $N(i)$ the set of triangles sharing an edge with $T_i$, and $L_{ij}$ the length of the edge between $T_i$ and $T_j$. I want the simplest possible spatial discretization of the heat equ... |
Printing photo matrices (x,y,z) where z is 0:2 colour, I want to see (x in rows, y in columns) 3 times, once for each colour (the way I've been taught by every mathematician). By default, numpy does it last dimension first.
|
I've reading up on the numerical sign problem, and how a general solution is NP-Hard. I can't seem to find a proof of this, though.
Does anyone know where I can find a proof that the numerical sign problem is NP-Hard?
|
I have a problem by solving stokes flow in 2D by finite differences. I am using a marker and cell method, my scheme is
o-------vx1.1-------o-------vx1.2-------o
| | |
vz1.1 P1.1 vz1.2 P1.2 vz1.3
| | ... |
Currently, I fit a Finite Element solution of a PDE on a spectral basis. The matrices ($R^{25000\times 2000}$) of the corresponding system of linear equations are highly ill-conditioned ($\kappa \approx 10^{15}$). However, I am able to find a solution with Tikhonov-regularization, which has also a small residuum on oth... |
I'm looking for alternatives to Matlab/Simulink and Dymola for simulating a non-linear dynamic system. I know it's possible to implement the time-domain behavior without a lot of code and a good simulator template which would do fixed-step simulation, but I don't want to re-invent the wheel.
I'm basically looking for a... |
I'm looking for literature on the progression (year on year, or more fine-grained if possible) of Molecular Dynamics simulation sizes.
By simulation size I mean number of atoms, time step, total simulation time and the architecture it was executed on.
Bonus points if anyone knows of a similar database/list for consume... |
The primal problem is
$$\min_{w,b}\frac{1}{2}w^Tw$$
$$s.t. f_i(w)=1-y_i(w\cdot x_i+b)\leq0$$
Where $y_i=\pm1$.
Instead of using Gradient Descent directly, the dual is usually solved:
$$\max_{\lambda}\min_{w,b}\frac{1}{2}w^Tw+\sum_{i=1}^M{\lambda_i(1-y_i(w\cdot x_i+b))}$$
$$s.t. \lambda_i\geq0$$
Why not solve the primal... |
I'm implementing a very simple Susceptible-Infected-Recovered model with a steady population for an idle side project - normally a pretty trivial task. But I'm running into solver errors using either PysCeS or SciPy, both of which use lsoda as their underlying solver. This only happens for particular values of a parame... |
When solving $Ax=b$, prior knowledge about $A$'s structure can help in designing an efficient solver which exploits this information (e.g conjugate gradient method is to be used when $A$ is symmetric and is preferable to GMRES when we know $A$ is so )
For the set of non-linear equations I am working with, I am using... |
Do CPLEX or Gurobi handle MIQPs with indefinite coefficient matrices?
The problem I am dealing with has quadratic terms in which one variable is binary and the other variable is continuous. The coefficient matrix of the quadratic form is far from positive semi-definite. Its entries are data-dependent. Thus, I have no c... |
I am trying to derive the formula of the 4th order Padé scheme that passes through the points $x_i$, $x_{i-1}$ and $x_{i+1}$
$$\Big(\frac{\partial\phi}{\partial x} \Big)_i = -\frac{1}{4}\Big(\frac{\partial\phi}{\partial x} \Big)_{i+1}-\frac{1}{4}\Big(\frac{\partial\phi}{\partial x} \Big)_{i-1} + \frac{3}{4}\frac{\phi_{... |
I need to use GMRES solver in MATLAB, and I need to play around with the codes parameters and I had a very simple question about its usage.
The documentation of the solver here mentions a parameter tol which they
do not seem to have defined except that the defuault value is $10^{-6}$.
What is this number? There don't... |
I am working with an octree mesh where variables are stored in a collocated fashion at octant centers. I want to construct a lookup table for interpolation weights that may occur using only a cell and it's immediately adjacent neighbor leaf cells. There are a specific number of neighbor configurations since each neighb... |
Consider 2 mathematical problems:
$$
f_1(x) = a - x \\
f_2(x) = e^x -1
$$
The condition number for a function is defined as follows:
$$
k(f) = \left| x \cdot \frac{f'}{f} \right|
$$
Lets analyze conditioning first:
$$
k(f_1) = \frac{x}{x - a},
$$
which means that $f_1$ is ill-conditioned near $x = a$;
$$
k(f_2) = \frac... |
This program finds the first root of the function f, defined in the code. There are 5 roots of this function. (x=1,2,3,4,5) I wish to find all of the roots in this program and print them to the screen. In the main function, you can see that I have attempted to write a while loop to do this(commented out in the code bel... |
Like the title says, I want to be able to stop the code at a specific location and have it halt safely. I cannot find a command to do it like for example in FORTRAN there is the stop command.
|
I noticed that adding constraints to an IloModel one by one can be prohibitively slow. (I am referring to the construction of the model, not the optimization.)
Suppose I have many constraints with the same number of variables, can I add the constraint matrix in one function call?
Are there other ways to speed up the co... |
Given an undirected graph, is it possible to find a criteria that leads to a unique partition of the nodes? The graph is not weighted.
|
I recently read something that talks about DIST distribution strings. It appears to be a way to take a long string of previously generated numbers and somehow compress them into a string that can then be used by others. I believe it's lossy. I'm having a great deal of trouble finding out anything other than some gen... |
I have a large system of equations
$$Ax=b$$
and I know matrix $A$ and right-hand side vector $b$. I'm using MKL to solve this system. The matrices are complex. I have used the general solver ZGETRS
(Intel MKL zgetrs) which needs the matrix input in LU decomposition. So I have used ZGETRF (Intel MKL zgetrf) that perfor... |
How can I represent the calculation in this image mathematically?
For example, with the discrete convolution (and Fourier Transform?),
$$(f * g)[n]\ \stackrel{\mathrm{def}}{=}\ \sum_{m=-\infty}^\infty f[m]\, g[n - m]$$
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.