instruction stringlengths 43 28.1k |
|---|
For a positive definite symmetric linear system, Cholesky decomposition based method should be the best solver which has a rough n^3/3 flops requirement.
What is the fomula of flops including n^2, n items? Is there any such reference?
|
In a problem I am trying to model with a MIP program, the following scenario occurs:
I am given binary variables $x_1,\ldots,x_n$ and $y_1,\ldots,y_n$ which can really be regarded as $n$-vectors. What I need to compute is the number of bits in which they differ. In particular I just need to make sure they are only equa... |
Is there any analytical (exact, closed-form solution) or numerical method to solve an equation such as
$p(x) = r^x$
where $p(x)$ is a polynomial whose coefficients are drawn from a finite field, and $r$ is a primitive root of the field modulus ?
Or, is this problem known to be equivalent to solving the discrete logari... |
For a second order PDE, for example heat conduction equation
$\frac{\partial T}{\partial t} = \frac{\alpha}{C_p} \nabla^2 T$, is it possible to determine the steady-state (or even transient) solution with two Dirichlet conditions? I have two different questions regarding this
From my understanding, the solution is no... |
Quoting from Solenthaler et. al. Predictive-Corrective Incompressible SPH
(ACM Transactions on Graphics, Vol. 28, No. 3, Article 40, Publication date: August 2009) (PDF link here)
These incompressible SPH (ISPH) methods first integrate the velocity field in time without enforcing incompressibility. Then, either the i... |
I have few particle's position and velocity information as a function of time.
Particle is following a trajectory path, while doing so, one particle may disappear, other particle may appear.
Particle position can be represented as a point and velocity as a vector at that point. If we think of particle position, it is n... |
A common problem in statistics is computing the square root inverse of a symmetric positive definite matrix. What would be the most efficient way of computing this?
I came across some literature (which I haven't read yet), and some incidental R code here, which I will reproduce here for convenience
# function to comput... |
I have a numpy function f that takes arrays as arguments and a 3D array x[a,b,c].
I would like to evaluate the function f along a specific column. A long-winded way could be with comprehensions:
y = [ [ f(x[a][b]) for a in range(len(x)) ] for b in range(len(x[0]))]
y = np.array(y)
Is there a numpy way of doing thi... |
It is known that Numpy basic matrix slicing will generate a view, whereas advanced slicing a copy. Is this true in cvxopt? I tried
from cvxopt import spmatrix
import numpy as np
A = spmatrix([2,-1,2,-2,1,4,3], [1,2,0,2,3,2,0], [0,0,1,1,2,3,4])
A_view = A[0:3,0:3] # basic slicing
A_cp = A[[0,1,2],[0,1,2]] ... |
I know that for general matrices, Cramer's rule is far from ideal for the numerical computation of the matrix inverse. However, can it be outperformed in the case of a $3 \times 3$ matrix? One particular advantage is that the algorithm is non-branching. For example, the transpose of the inverse can be implemented as fo... |
I successfully ran a RANS simulation of industrial fan with all wall BCs,
pimpleDyMFoam solver and spallart-almaras RAS model.
I got results upto some time, I would like to continue that simulation with LES instead of RAS, what are the options how I need to refine the mesh. (one parameter is way off the experimental va... |
I need to determine whether a real dense symmetric matrix is positive definite or not.
One possible way is to obtain all the eigen values and check the sign of the minimum eigen value but requires computing all eigen values which seems unnecessary.
It was said congruent transform should be more efficient to do this.
Do... |
I downloaded the bundle adjustment data from this link:
original data for bundle adjustment
which is the supporting data for a paper titled:
Bundle Adjustment in the Large
I want to use the data for triangulation algorithm testing, which requires 3x4 pinhole camera matrices; however the pinhole cameras were all calibra... |
I need to solve the following problem:
For a given p=(x0,y0,z0,w0) and arbitrary T. For example , let p=(0.8,0.1,0.06,0.04) and T=-1.2. I need to find a vector q=(x,y,z,w) with the minimum distance from p, under the given constraints.
I need a numerical solution, I tried using MATLAB but I had a lot of problems with... |
I'm tryng to learn to use a lapack subroutine but I got stuck. I hope this is the right forum... In this fortran program I'd like as a test to find the Shur form of the matrix ((0,1)(1,0)) using cgees, but the matrix "m" after the call in which the Shur form should be written, is made only of zeros (other subrotunes li... |
I would like to know how to compute the statistics of the discrete Fourier transform of a noise signal. To illustrate what I mean, I will first explain in detail a computation I have managed to do myself.
Suppose we have a discrete time series of values $x_n$ with $n$ from 0 to $N-1$. Each $x_n$ is a random variable, u... |
First some background, I am a mathematician by training with very little formal training in programming. I am most comfortable in MATLAB and have been working with it for a long time. My second choice would be C++. But in either language the longest most complicated code I have written is maybe between a hundred and tw... |
My problem needs to solve dense symmetric linear systems something like:
A x = b,
A y = x,
A z = y+x,...in sequence.
In Eigen C++, if I take advantage of the symmetry of A by using:
x=A.ldlt().solve(b);
y=A.ldlt().solve(x);
z=A.ldlt().solve(y+x);
The same matrix A has to be Cholesky factorized many times.
Similar issu... |
I have a question about matrix diagonalization. I don't know if this is the right forum... Is there a way to compute the smallest real eigenvalue (and eigenvector if possible) of a general real nxn matrix? (with n small say n=5). Is there a routine in fortran 90 that does this? And, more generally, what is the situatio... |
My question is about Finite Element Method.
I want to know how to implement "gradient zero" conditions to advection-diffusion equations in conservative form like,
$\frac{\partial \rho}{\partial t} + \nabla \cdot \mathbf{\Gamma} = 0$
where,
$\mathbf{\Gamma} = \mathbf{u}\rho - k\nabla \rho$
$\mathbf{u}$ and $k$ is not co... |
What library can one use to compute efficiently the lowest eigenvalues of the Laplace operator in a polyhedral domain in $R^3$?
For the application I have in mind one has to consider very acute polyhedra (which moreover are non-convex) so it would probably be necessary to use a smart enough algorithm that can deal well... |
I am using the sparse matrices provided by the University of Florida Sparse Matrix Collection and most matrices are accompanied with little description of the problem or discipline from which the matrix was originated, is there a way to find more about each matrix origins, and how it was generated?
|
Background:
I'm trying to understand the Multiscale Finite Element Method and I'm reading Effendiev & Hou (2009) Multiscale Finite Element Method. Suppose I'm working with a poisson equation of the form \begin{align}-\nabla\cdot(k(x)\nabla u)=f \text{ in }\Omega\\ u=g \text{ in } \partial\Omega_1 \\ k(x)\nabla u\cdot ... |
Does anyone know a good algorithm for quickly finding an approximate solution to the following problem?
Given two square matrices $A$ and $B$, minimize $\| P A P^\top - B \|$ over all permutation matrices $P$.
I have heard that there are several types of algorithms for these kinds of problems, like iterative improvemen... |
perhaps the most idiotic question I ever asked.
people throw around the parameter $y^+$, as if it is the be all and end all of CFD (Computational Fluid Dynamics) parameters and use it as if everyone and their dog know how to calculate it.
(Specially in CFD literature)
Now the question,
$u_\tau = (\tau/\rho)^{1/2}$
whe... |
I would like use Python to verify the following identities:
$ \frac{1}{1-z} = 1 + z + z^2 + z^3 + \dots $
$ \frac{1}{1-z - z^2} = 1 + z + 2z^2 + 3z^3 + \dots $
$ q \prod_{n \geq 1} (1 - q^n)^{24} = q - 24 q^2 + 252 q^3 + \dots$
The last one could be evaluated by checking the poly1d class in numpy.
Python doesn't ... |
This is more of a conceptual question.
I have learned about Neural Nets, and I have some clue as to how Support Vector Machines work. I read somewhere however that given the appropriate kernel (is that right?), the SVM is identical to the Neural Net. Could someone who understands this please enlighten me as to how that... |
Firstly, About the Hierarchical Model And X (HMAX model), i still don't understand what is the difference between the "Original model" and "Standard model". Does in Standard, we use imfilter not conv2 ? is that correct ?
Secondly, i didn't understand the following phrase : "The filters in S1 layer are sum-normalized to... |
In Establishing, versus maintaining, brain function: a neurocomputational model of cortical reorganisation after injury to the immature brain, Varier et al develop a neural network model of motor control and then "lesion" it as it is training. I am new to neural networks and really do not even know where to begin in em... |
I'm studying support vector machines and came across this paper. The following equation doesn't make sense to me, especially the part with the 0 ∀i. Any help understanding the basics of SVMs?
yi * (xi * w + b) - 1 >= 0 ∀i
xi - one input
yi - the classification (+1 or -1)
w and b - variables to find in order to "trai... |
I have a finite series that looks like this:
$f(t) = \sum^n_{i=0} A_i cos(\Theta_i + \omega_i t) + B_i sin(\Theta_i + \omega_i t)$
That is, a finite series of pairs of phasors.
What's the state of the art for numerically calculating the value of the series at a given $t$? I'm interested in numerically finding the root... |
Suppose I have the following 3 by 3 matrix:
p<-3
X<-matrix(1/p,p,p)
--$\pmb X$ is just a $p$ by $p$ matrix where every entry is $1/p$.
Now I want to solve the system
$$\pmb a\pmb X=\pmb 1_p$$
where $\pmb 1_p$ is a vector of 1 of length $p$.
I know $\pmb 1_p$ is the solution to such a system,
but when I do, in R,
solv... |
I want to know the best optimal algoritm of gcd with its complexity if you have a any useful source I will be glad to have a look at it.
|
Let $\vec{x} = (x_1, x_2, \dots, x_n) \in [0,1]^n$ and $f(\vec{x}): [0,1]^n \to \mathbb{C}$ be a function in these variables.
Is there a recursive scheme for this iterated integral?
$$\int_{[0,1]^n} \prod dx_i \;f(\vec{x}) $$
If $n = 10$ and I break $[0,1]$ into 100 segments, we have $10^{20}$ points to add up. The... |
First, an example:
Given an image (2D array) to write down a mathematical notation for the function of pixelation, for example.
Fig. 0: The pixelated version (right) of the given 2D array (left)
What would be a mathematical notation for the above simple function?
The second part:
How about many everyday computing algo... |
I am looking to create an algorithm to minimize an N dimensional problem. I am unsure how to write it in its generic form, so I will show it in 1, 2 and 3 dimensions
Minimize $ \sum_{i} x_i\left [ f\left ( w_i\right )-H \right ], $
Constrained by$ \sum_{I} x_i \left (w_i - R \right) \le 0.01,$
Where
$f\left (w\right)\... |
If a matrix $A_{n\times n}$ is invertible, then
$\left\|A^{-1}\right\|_2 = \dfrac{1}{\min\limits_{i} \sigma_i}$
where $\sigma_i$ is the $i$-th singular value of $A$
|
Spectral decomposition of symmetric matrix $A_{n\times n}$, specifically, $n=3$
find the orthogonal matrix $Q$ and diagonal matrix $\Lambda$ such that:
$A=Q\Lambda Q^T$
How to implement such decomposition in Eigen C++? or any other C++ implementations?
|
In the attached image, I want to understand how to arrive at the equation 2.5.1, i.e. the variational expression. The problem is defined as best as it could and the further derivation follows smoothly.
The complete derivation is as shown in the image below:
I am interested in how the eq 2.1.1 leads to eq 2.5.1 ... ... |
I have two 50000 x 50000 binary matrices A and B for solving A*x=lambda*B*x eigenvalue problem. These matrices are sparse. I am trying to solve using PETSC and SLEPC. My memory requirement shoots off like more than 200 GB of RAM !
I used mpirun in 16 cores and 96GB RAM with swap of 130GB.
Is there a way to solve this... |
Typically Chebyshev interpolation from $-1$ to $1$ with angle from $0$ to $\pi$:
$\xi_j=\cos \left ({\pi j \over N}\right )$
$x_j=(1+\xi_j) * {L \over 2}$
$w$:
$w_0=\pi/(2N)$
$w_{1,...,N-1}=\pi/(N)$
$w_N=\pi/(2N)$
I appear to have a need in the same with angle from $0$ to $\pi/2$ only, while solving a collocation ... |
Let $A$ be an $M \times N$ sparse matrix stored in compressed column format, in a C-like programming environment. I am interested in the best solution to get a sub-matrix of $A$. In MATLAB notation, this would read:
A_sub = A(i:i+m-1, j:j+n-1)
where $A_{sub}$ is again a sparse matrix, but this time being $m \times n$.... |
It is well known that for certain linear systems Jacobi and Gauss-Seidel iterative methods have the same convergence behavior, e.g. Stein-Rosenberg Theorem. I am wondering if similar results exist for nonlinear iterations, where at step $k$ the Jacobi iterations on, say $\mathbb{R}^n$, are defined as
$$x_i^{k+1}=F_i(x_... |
I have an $n \times n$ unsymmetric matrix $A$ that results from the discretization of an ill-posed Poisson problem, and thus is rank-deficient with null space of dimension one. I want to compute just the smallest singular triplet
\begin{equation*}
(u_n,\sigma_n,v_n)
\end{equation*}
where
\begin{equation*}
u_n^T A ... |
Where can I find documentation for the P*GEMR2D routines in Fortran?
I've found:
Scalapack UG
Undocumented related source
Unanswered forum post
|
my question is simple, in openfoam we have the function foamToVTK which creates vtk files for each timestep of the solution.
Now I have a huge VTK tar file (has atleast 100 timesteps), i have system 0 and constant folders can we convert those vtk files back to time folders?
|
I am generating random weight as per e.g. below. The I generate a set of 3 values say 100, 250, 300 and I multiple them with the weights below
Initial population.
1. 0.1 0.7 0.2
2. 0.4 0.5 0.1
3. 0.3 0.5 0.2
4. 0.6 0.1 0.3
5 0.3 0.3 0.4
6. 0.2 0.2 0.6
Multiplication of weight
1. 0.1*100 + 0.7*250 + 0.2*300 = 2... |
Suppose I want to set up an experiment to measure the performance of some numerical code on a desktop machine running Linux/Windows/MacOS. What kind of environment should I arrange in order to get correct timings? More precisely,
what applications/services should be closed?
what priority the considered process should ... |
I am looking for a 2D static problem (i.e. planar stress/strain) with known analytical solution.
The purpose for that is to verify my self-written code in matlab for solving 2D static problems.
Any references would be welcome.
|
Quadrature-free DG method using nodal Lagrangian basis are computationally very efficient. I have seen many papers using this method for linear PDE but almost no literature for non-linear PDE like compressible Euler equations. The book of Hesthaven & Warburton discusses this and talks of errors in quadrature-free metho... |
I'm trying to use immersed boundary method for the 3D flow problem (Navier-Stokes equations), but I'm maybe misunderstood something in this method. Main principles I took from this book. I use the continuous forcing approach and the quasi-rigid immersed boundary, i.e. the boundary force computed from this equation , wh... |
I have this problem
$H_i(x_1,x_2,\dots, x_N) = a_{ijk} x_j x_k + b_{ij} x_j + c_i = 0 \quad 1\leq i \leq N$
And I need to show that applying Newton-Raphson can fail to find even one real solution of this system for any N.
Well if I apply Newton-Raphon, first I calculate the gradient:
$\frac{\partial H_i}{\partial x_l}... |
Suppose $f$ is a infinite continuously differentiable map: $R^n\to R$, and $x,x_0 \in R^n$, then we have the following second order Taylor expansion of $f(x)$ at $x_0$:
$$f(x)\approx f(x_0)+(x-x_0)^T\nabla f(x_0)+\dfrac{(x-x_0)^T \nabla^2f(x_0)(x-x_0)}{2} $$
What is the next iterm?
Do I need to use tensor? what is a s... |
If I use scalapack and pblas, and the code is run in serial (1x1 blacs process grid), how well does scalapack and pblas revert to the performance of lapack/blas?
I am particularly interested in the pzhegvx and pzheevx routines with $n \approx 1000$ and the pzgemm and pzherk routines with $m,n \approx 1000$ and $k \appr... |
I'm looking for an algorithm to solve
the underdetermined system of linear equations
$$\mathbf{A}\,\mathbf{x} = \mathbf{b}$$
with
$\mathbf{A} \in \mathbb{R}^{n\times n}$, $\mathbf{b} \in
\mathbb{R}^{n\times 1}$ and $rank(\mathbf{A}) < n$.
Clearly, there exists an infinite number of solution vectors
$\mathbf{x}$ (or... |
I'm acquiring data which looks like this:
Theoretically it should be possible to fit it with a Lissajous curve, which is typically defined in the following way:
$x = A \sin(a t + \delta)$, and $y = B \sin(b t)$.
However, neither the cftools or optimization toolbox seem ready to do this or at least I do not know how to ... |
I have a set of dates, position angles ($\theta$) and angular separations ($\rho$) for visual binary star. For example:
1994.3132 57.0 0.097
1996.1783 73.4 0.051
2006.1938 182.0 0.126
2009.2597 192.9 0.152
etc.
What are algorithms to calculate orbital elements and to plot the orbit of the binary star?
Ar... |
I want to solve the Schrodinger via the Numerov Method but I had some troubles. I'm programing in C++, so here is my code:
#include<cstdlib>
#include<iostream>
#include<cmath>
using namespace std;
double x_min=-4.0 , x_max=4.0;
int N=2000;
double r=(x_max-x_min)/(1.0*N);
double d=2.0;
double p=0.4829; ... |
If the analytical form global minimum value of a nonconvex $C^{\infty} f:R^n\to R$ is already known, will it be easier to find its global minimizer $x^*\in R^n$?
|
I am looping an array using MPI. The problem is, i think that some processes are moving onto their next iteration before other precesses have finished theirs. This is causing me problems because data calculated by each process at each iteration is needed in the next. Is their a way that i can pause the processes at the... |
Is there any reason why SciPy's integrate.odeint() should become less precise
when the number of equations increase? I'm trying to solve these two
sets of differential equations:
$\frac{dy_1}{dx} = x^2$ — (1)
$\frac{dy_2}{dx} = x^3$
and,
$\frac{dy_1}{dx} = x^2$ — (2)
Since the two equations in (1) are uncouple... |
In multiple view geometry of computer vision, there is a geometric error called Sampson error which is very useful in the nonlinear estimation of fundamental matrix.
Can this Sampson error be generalize to multiple view cases so as to use it for multiple focal tensor estimation?
|
I am looking at a problem of constrained minimization, where the function to be minimized contains the Heaviside function, and as such is not twice continuously differentiable.
My question is what effect would the use of a twice continuously differentiable approximation to the Heaviside function have on the accuracy an... |
In one sentence (thanks to @Brian Borchers), I want to minimize the function f(x, y, ...), with gradient g(x, y, ...), subject to constraints that aren't given explicitly, but are defined by situations where the routines that compute f and g return an error.
The domain for f isn't linear and it is not simple to change ... |
I'm looking at speeding up matrix-vector products but everything I read is about how to do it for very large matrices. My case, the matrices are small but the number of times it must be done is very large.
What methods, if any, are there to optimize this? Would it be faster to construct a really big diagonal block mat... |
I would like to farm out solving systems of ODEs onto GPUs, in a 'trivially parallelisable' setting. For example, doing a sensitivity analysis with 512 different parameter sets.
Ideally I want to do ODE solving with a smart adaptive timestep solver like CVODE, rather than a fixed timestep like Forward Euler, but runnin... |
I'm trying to perform a trasient simulation of a subsonin flow over a flat plate in CFD++.
I want to impose a ramp profile on the velocity at the inlet, like for instance a smooth step, and look at the evolution of the boundary layer over the plate due to this acceleration.
I want to perform this simulation without pre... |
Would anyone please explain me what is the mathematical algorithm to solve a IVP system of ODE with a time-dependent parameter. e.g.
dy1/dt = a1(t) * y2 -b1(t)* y3 -c1(t) y1;
dy2/dt = a2(t) * y1 -b2(t)* y1 -c2(t) y3;
dy3/dt = a3(t) * y2 -b3(t)* y3 -c3(t) y1;
y(0)=c;
My idea so far is that for fixed time-step... |
I am looking for a computationally cheap way to compute $x$ such that $$(L L^T + \mu^2 I)x = y$$
where $L \in \mathbb{R}^{n \times n}$ is a lower triangular definite positive matrix (with some very small eigenvalues), $y \in \mathbb{R}^n$ and $\mu \in \mathbb{R}$ are known. If it is necessary, I can assume that
$$\mu \... |
I have a problem in physics formulated via an ODE. Now I like to solve it numerically using Pythons scipy.integrate and the therein complex_ode. I figured out how and it works but now I like to optimize my code and I ran into a question:
I need a massive amount of grid points so that the solution converges. So I tried... |
I have a large cubic eigenvalue problem:
$$\left(\mathbf{A}_0 + \lambda\mathbf{A}_1 + \lambda^2\mathbf{A}_2 + \lambda^3\mathbf{A}_3\right)\mathbf{x} = 0.$$
I could solve this by converting to a linear eigenvalue problem but it would result in a system $3^2$ as large:
$$\begin{bmatrix}
-\mathbf{A}_0 & 0 & 0 \\
0 & \math... |
When I learned about SOR, it was mostly given as one of the first examples of iterative methods, and then later the iterative methods that I would end up using would be Krylov subspace methods.
Are any of the iterative methods like Gauss-Seidel and SOR ever used in practice? Do you know of any real packages that use th... |
I have a system of reactions that are governed by differential equations.
They are reacting inside of a volume with known dimensions i.e lbh. I don't have any other information on their position inside that volume. I simply know there are 200 of A, 300 of B etc.
when molecules pass out of this volume they no longer rea... |
I am seeking to understand DDM's and their application to Maxwell's equations, though I am settling for the scalar Helmholtz as a baby step. Unfortunately I have hit a conceptual snag that I could use help with. My model problem is a 2D rectangle [-1,1]x[-1/2,1/2] split at x = 0 into left/right domains ($\Omega_L$ and ... |
I am currently trying to calculate the geographic distance between two regions as I want to correlate it with their similarity of another aspect (e.g., similarity in word usage).
Currently, I have used a simple approach of determining the geographic center point of each region (a region corresponds to a province/state ... |
Let's say we want to solve $Ax=b$ ($A$ symmetric positive /semi/definite) with the conjugate residual/gradient method. $A$ comes from FEM where the mesh is being refined. The exact solution is $x_*$ and the approximate solution after $m$ iterations is $x_m$. Say that the initial guess is $x_0=0$.
We have that
$$\vareps... |
I have a very large(up to 9 000 000) VectorXi vector defined in Eigen C++ which is read from a data file.
The vector consists of 0, 1, 2, ...n segments with randomized lengths like below:
[0 0 ... 0 1 1 1 ... 1 2 2 ...2 3 ... 3 ... k k ... k k+1 k+1 ... k+1 .... n n ...n]
I need to count the lengths of each segement a... |
I have a C++ program/model that in some parts already use IPOPT (with ADOL-C and ColPack) to solve some pretty large nonlinear problems.
Now in another part of the program, I need to solve a large amount (tens of thousands) of small quadratic problems.
I'd like to have your suggestion if you think it should be more eff... |
OK, I have a FORTRAN code which numerically integrates equations of motion for large data sets of initial conditions. I run this program in my PC and it requires about 1 day of computations per data set. So, I was wandering if there is any site with super-fast PCs (or better a grid of processors) in which I could uploa... |
Is there a truncated SVD algorithm that computes the singular values one at a time?
My problem: I would like to compute the first $k$ singular values (and singular vectors) of a large dense matrix $M$, but I don't know what an appropriate value of $k$ would be. $M$ is large, so for efficiency reasons, I would rather no... |
I'm currently writing up my PhD thesis. I spent a significant fraction of my PhD cleaning up and extending existing scientific code, applying software engineering best practices which were previously not used, and would like to write about this in my thesis. Rather than simply saying "I added unit tests", I want to be ... |
I apologize if this question in a more general form has been asked before. I have a tridiagonal Toeplitz matrix $K$, whose eigenvalues and eigenvectors are known analytically for any dimension $N$ [1]. Specifically, in the notation of Section 2.2 of this paper, the matrix I wish to diagonalise is such that $a_1 = a_2$ ... |
I have a nxn covariance matrix (so, real, symmetric, dense, nxn). 'n' may be very very very big! I'd like to solve complete eigenvalue (+eigenvectors) problem for this matrix. Could somebody tell me what the fastest algorithm to do it?
P.S.
I'd like to make GPGPU implementation using OpenCL. Typical sizes is 10000x1000... |
I would like to numerically integrate a smooth function (to be precise, I am computing differential entropies of Gaussian mixtures of the form $\int f(x) \log(1/f(x)) dx$).
Is there any software package or library that gives me the exact answer up to X digits (and potentially more), where X can be rather large? The GSL... |
Consider one initial boundary value problem for sphere.
$$\frac{\partial u}{\partial t}=\operatorname{div}A\nabla u +f$$
Here is explicit numerical scheme (we consider that it is stable):
$$\frac{u^{n+1}_{i,j,k}-u^{n}_{i,j,k}}{\Delta t}=A_{i,j,k}{\frac{\partial u}{\partial r}}_{i,j,k,+/-}^{n}+B_{i,j,k}{\frac{\partial u... |
I'm trying to solve the Convection-Diffusion-Reaction (CDR) equation on a rectangular domain, using cylindrical coordinates and Finite Difference Methods (FDM) (this approximates a flow reactor).
Specifically, I want to solve
$D ( \frac{\partial^2 u}{\partial r^2} + \frac{1}{r}\frac{\partial u}{\partial r} ) - v(r) \f... |
I'm trying to find some theory to help me explicitly express the inverse of a matrix (or a close approximation of the inverse). My matrix has the following properties:
invertible
positive definite
symmetric
all diagonal entries $> 0$
all off diagonal entries $\le 0$
sum across any row or column is nonnegative and fur... |
Please help me with any/all of the cases below. In the following cases, the named method and basis set are not suitable for the chemical systems. Why aren't they? Could you suggest a suitable method/basis set?
(i). MP2/6-31G(d) for the calculation of reaction energy of the reaction below (H2C: should be calculated in t... |
Could anyone recommend a method for the following least-squares problem:
find $R \in \mathbb{R}^{3 \times 3}$ that minimizes: $\sum\limits_{i=0}^N (Rx_i - b_i)^2 \rightarrow \min$, where $R$ is a unitary (rotation) matrix.
I could get an approximate solution by minimizing $\sum\limits_{i=0}^N (Ax_i - b_i)^2 \rightarro... |
I know the number of solutions to the equation $$x_1+x_2+x_3+...+x_k=n$$
is given by $\binom{n+k-1}{k-1}$.
Is there an algorithm to actually find all the solutions to this equation, without having to brute force?
|
I have an expression of the form:
$ACA^{'}$
where $C$ is an invertible, symmetric and positive definite matrix. I'm trying to figure out if the expression above is invertible. The $C$ matrix is $n \times n$ and the $A$ matrix is $k \times n$. Every row of A has exactly one entry =1 and one entry =-1, all other entr... |
I have a nasty non-linear partial differential equation. I wonder if there exists a method that would allow me to examine what numerical errors (like numerical diffusion or dispersion) are introduced by different approximation schemes. Name of the method or a link to a paper would be great.
EDIT: Equation
$$
\frac{\par... |
I would like to ask you for your help.
I have 2D box. I know how to do an 2D cut line and compute an average value of someting over this line. (in Results -> Data Sets -> Cut Line 2D and then Results->Derived Values->Line Average and choose Cut Line 2D 1).
But I would need to know this average value for many of such p... |
I have a quadratic programming problem with constraints of the general form:
Minimize w.r.t. x:
f(x) = (1/2) x^T * Q * x + c^T * x
subject to one or more constraints of the following form:
A * x <= b (inequality constraint)
E * x = d (equality constraint)
My problem is that I want to have an inequality constraint li... |
I'm looking for a simple method to find a linear transform that minimizes
$$ \text{argmin}_T F(T): T \in \mathbb{R}^{m \times n}
,\ T \ge 0
,\ T \mathbb{1} = c \mathbb{1}
,\ \mathbb{1}^T T = \mathbb{1} $$
i.e. over $m \times n$ matrices $\ge 0$ with row sums all the same and column sums all 1.
(If there's a standar... |
I have a vtk file which has a bunch of points, I would like to delete a few points because, those distort my geometry (basic geometry clean up), is there a way I can do it in paraview? I just want to delete those points , that is it. I haven't found a way to do it.
|
Is there a way to approximate the convolution of Beta variables?
Specifically, I am trying to find an approximation to $g(x_0)$:
$$g(x_0) = \int \delta(x_0-\sum_{i=1}^{n} a_i x_i) \prod_{i=1}^{n} f(\alpha_i,\beta_i;x_i)\mathrm{d}x_i$$
where $\delta(x)$ is the Dirac delta function and
$$f(\alpha_i,\beta_i;x_i)=\frac{x_i... |
I'm solving a nonlinear constrained optimization with constraint of following form:
$$\mathbf{A}^T\mathbf{A}-\mathbf{I}=\mathbf{0}, \mathbf{B}^T\mathbf{B}-\mathbf{I}=\mathbf{0}$$
where $\mathbf{A}$ and $\mathbf{B}$ are matrices that I'm solving for. Usually the initial guess of $\mathbf{A}$ and $\mathbf{B}$ are diagona... |
I want to use Quasi Monte Carlo to try and improve the convergence of a simulation I am running.
The random numbers are simply to produce the observation errors for a standard linear regression model, which is then estimated using a number of different regression techniques. This is done repeatedly to estimate the mean... |
There is PDE:
$$\frac{\partial u(r,\varphi,\psi,t)}{\partial t}=\operatorname{div}A(r,\varphi,\psi)\nabla u +f(r,\varphi,\psi,t) $$
We solve numerically IBVP for the ball $B_{1}(0)\subset \mathbb{R}^3$ using the numerical scheme of this PDE. Numerical scheme is the following:
$$\frac{u^{n+1}_{i,j,k}-u^{n}_{i,j,k}}{\Del... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.