instruction stringlengths 43 28.1k |
|---|
There seem to be two main kinds of test function
for no-derivative optimizers:
one-liners like the
Rosenbrock function ff., with start points
sets of real data points, with an interpolator
Is it possible to compare say 10d Rosenbrock
with any real 10d problems ?
One could compare in various ways:
describe the struc... |
Currently, I have some experience with classical molecular dynamics simulations, and I've had undergraduate course in quantum mechanics (the course was "analytical" one, no approaches to computer simulations were covered, so I'm familiar with Schroedinger equation, but not with Liouville's equation).
I've tried reading... |
Below is my own approach to implement the Least Squares Regression algorithm in MATLAB. Could you please take a look and tell me if it makes sense; if it does exactly what is supposed to do?
EDIT: Please, pay attention to the commented commands as well.
function [MSE_train_mean,MSE_train_std,MSE_test_mean,MSE_test_std,... |
I have got a large sparse matrix $A \in \mathbb R^{n \times n}$ and I want to find non-trivial elements in the kernel/nullspace of this matrix. How can this be done? I would like to learn more about a particular method that seems to be folklore.
Most people that I have talked to regard this problem as an instance of an... |
Finding the roots of a complex polynomial is in general extremely numerically unstable, as discussed in (1). According to Pan ((2), (3)), this produces a cubic complexity lower bound, and he presents a near-optimal algorithm which is quasilinear in arithmetic and quasicubic in boolean (control flow) complexity. His a... |
Algorithms for edit distance give a measure of the distance between two strings.
Question: which of these measures would be most relevant to detect two different persons names which are actually the same? (different because of a mispelling). The trick is that it should minimize false positives. Example:
Obaama
Obama
=>... |
I am trying to find some resources to help explain how to choose boundary conditions when using finite difference methods to solve PDEs.
The books and notes which I currently have access to all say similar things:
The general rules governing stability in the presence of boundaries are far too complicated for an introd... |
I have a system of equations
$$
S_{m}(\xi) +P_{m}(\xi)=f(\xi)
$$
where $\xi$ can be choosen arbitrary in some domain in $\mathbb{C}$, $f$ is known, $P_m$ is a polynomial of degree at most $m$. Here $S_{m}$ is a generic function from $\mathbb{C}$ to $\mathbb{C}$ but for me it is sufficient to know it's values in onl... |
Ignoring eigenvectors, the shifted QR algorithm for computing eigenvalues in the symmetric tridiagional case costs $O(n)$ per iteration, converges globally, and converges cubically near the end. What is its worst case complexity (which presumably depends on the desired error)?
|
I am producing 1d and 2d images using Matlab right now for comparison of accuracy against a given model. I need to compare my methods with the standard Gaussian .wfn model and I am going to do that by analyzing the density of a molecule as well as the laplacian.
I am interested in producing 2-D images of differences in... |
I've been working in R but sometimes switching to python. I'd like a more inter-language portable way of storing a large array than a csv file. (The particular csv file I'm dealing with is about 10^6 rows by 10^3 columns, but only about 1% of the entries are non-zero.) Processing a large csv file everytime I start up R... |
I would like to visualize simulation results, obtained using the discontinuous Galerkin (DG) approach, within ParaView. Similarly to finite volume methods, the problem domain is divided into cube-shaped cells ("elements"). As opposed to finite volume methods, within each cell there is not just one value for the solutio... |
Leafing through a few textbooks, I've noticed that the problem of initially bracketing a minimum during a line search tends be an afterthought (at least in my undergraduate texts). Are there well-established techniques or best practices for this type of problem, or are solutions typically application dependent? Can any... |
Lapack contains a driver routine to solve dense generalized Hermitian positive definite eigenvalue problems of the form $Ax=\lambda Bx$, where $A$ and $B$ are both Hermitian, and $B$ is positive definite. I am wondering if there is a method (either code or a modification of zhegv) when $B$ is indefinite (specifically, ... |
Given a symmetric matrix $A\in\mathbb{R}^{n\times n}$ with positive entries and zero diagonal, is it always possible to construct a high-dimensional configuration in Euclidean space, such that these coordinates give rise to distances from $A$?
(high-dimensional configuration implies dimensionality at most $n-1$)
If thi... |
I have calculated estimates of the daily supply of empty trucks and daily demand for empty trucks at the US postal code level. I would like to optimize the routing of supply to demand to minimize the total distance travelled. I would use that result to calculate the average repositioning miles required for a unit of de... |
I trying to detecting whether a data set of time series has a global change in frequencies. Calculating the average (or median) pairwise coherence, I feel, misses the point because I am trying to get a measure of network (i.e. multivariate, more than pairwise) coherence. I found a group[1] that uses the relative magnit... |
I need to create a scoring model out of estimated conditional probability functions for two events, A and B. Let 0.5 be the threshold value. Ideally, the probability is in the interval $[0,0.5)$ for A and in the interval $[0.5,1]$ for B. However, my probabilities are estimated with errors. Therefore, for a certain numb... |
I appologize in advance if this question is silly.
I need to compute the root of
\begin{equation}
u -f(u) =0
\end{equation}
Where $u$ is a real vector and $f(u)$ is a real-vector valued function.
I started with Newton's method (which worked), but then realized a much simpler method would be an iterative solution
\beg... |
I am trying to iterate the following equation
$$
x_{k}(n+1)=x_k (n)-\epsilon (x_{k+1}(n)-2x_k(n) +x_{k-1}(n))+\sqrt{\epsilon}\; \eta_{k}(n)
$$
where $n$ denotes which time step I'm on and $k$ is the location on the string with periodic boundary conditions, $\epsilon$ is the size of the time step and $\eta$ is a random ... |
Consider a vector $\mathbf{g} \in \mathbb{R}^{m}$ and a matrix $\mathbf{A} \equiv \mathbf{A(g)} \in \mathcal{M}_{p\times q} [\mathbb{R}]$, a function of $\mathbf{g}$.
Furthermore, let $\mathbf{S} \in \mathcal{M}_{p \times r} [\mathbb{R}]$, independent of $\mathbf{g}$.
Is it a way to calculate $\displaystyle \frac{\par... |
I want to minimize a complicated objective function, and I'm not sure if it is convex. Is there a nice algorithm that attempts to prove that it is not convex? Of course the algorithm could fail to prove this, in which case I would not know if it is convex or not, and this is OK; I just want to try to rule out convexi... |
The minimum image convention (MIC), see for example a short note of W. Smith, is often used in molecular dynamics or monte carlo simulations of periodic systems with an orthorhombic unit cell. For this special case, it is rather trivial to implement the MIC correctly. How does one apply the MIC to systems with a more g... |
I am trying to build a Runge-Kutta code to integrate the equations of motion for a simple harmonic oscillator. However, when I run the code, I only see first order improvement in the error as I decrease the step size. What could be causing this issue?
Here I start with the second order equation x''+x=0 and introduce a ... |
I have the following Problem:
I know the range within the results of a division must lie.
[ quotientrange ] Additionally, the quotient should not exceed a certain number of fractions.
I know, that both dividend and divisor must consist of a certain set of digits. Dividend and divisor are further restricted by a range.... |
I have an optimization problem that has a linear objective function. The constraints are of the form: $(Ax \leq b) \wedge (Cx \nless d)$.
In other words, I have:
\begin{align}
\min &f^T x
\notag \\
\text{s.t.}
&Ax \leq b \\
&Cx \nless d\\
\end{align}
One way to solve the problem would be to decompose the constraint ... |
I have an iterative sequence for optimizing an EM (Expectation Maximization) algorithm based loss function $L(X)$ with $t$ being the iteration number as:
$X_t=ABX_{t-1}+CX_{t-1}+X_{t-1}$ where $A$ is a diagonal matrix, $B$ and $C$ are positive semi-definite matrices. Also the diagonal entries in $A$ are the inverse of... |
I am currently trying to code the CA-CG method within the PETSc framework. A mandatory step in this process is the implementation of the "matrix powers kernel" algorithm for a generic sparse matrix.
This requires the computation of the index set obtained exploring the graph associated with the sparse matrix for s-steps... |
I have a (2-dimensional) improper integral
$$I=\int_A \frac{W(x,y)}{F(x,y)}\,\mbox{d}x\mbox{d}y$$
where the domain of integration $A$ is smaller than $x=[-1,1]$, $y=[-1,1]$ but further restricted by $F(x,y)>0$ . Since $F$ and $W$ are smooth and $W \ne 0$ at the boundaries, the later relation implies that the integrand ... |
I have the impression, from very different resources and talks with researches, that there is a growing demand for high precision computations in numerical partial differential equations. Here, high precision means more precision than just the standard 64bit double precision.
I wonder about the state of the art of this... |
I'd like to place as many random points as possible in a 2D square $S=[0,1]x[0,1]$ such that the euclidean distance $d$ between any two points $d$ is greater than a given value $b$ (b is small). I'm interested in an iterative construction algorithm that successively limits the remaining space where points can be place... |
A simple enough question: to do a multidimensional integral, given that one has decided that some sort of Monte Carlo method is appropriate, is there any advantage that a regular MC integration using pseudorandom numbers has over a quasi-Monte Carlo integration using a quasirandom sequence? If so, how would I recognize... |
For a discontinuous Galerkin-based simulation I need to store cell-based simulation data in memory. Since the order of the polynomial approximation $N_p$ may vary between cells, I wonder what the most efficient data structure would be, if the typical access pattern is a loop over all cells? These are the ideas I had so... |
I've been reading about implementing dense matrix multiplication when the matrix doesn't fit in cache. One of the graphs I've seen (slide 9 from these slides) shows sudden drops in performance using the naive algorithm. This drops are to around 50% of the speed, occur while the matrix still fits in cache, and only occu... |
Is it possible to simulate transitional flow in OpenFOAM? Or, alternatively, does it make sense to use k-epsilon or k-omega model with low Reynolds number? If not, why? What kind of errors would appear?
|
I am studying a research paper on iterative methods to compute generalized inverses of an arbitrary matrix $A$. I am studying the following iterative method:
$$Y_{k+1} = Y_{k} + Y_{k}(I - AY_{k}),$$ given an initial approximation $Y_{0}$. I am having difficulties understanding how to measure the computational time tak... |
Assume we want to solve the Poisson equation
$$
\Delta u = f
$$
with free (Neumann) boundary conditions. So, the right hand side function $f$ must fulfill the compatibility condition to integrate to zero. When using linear finite elements and a uniform refined mesh, the rhs vector has also nodal average of zero. So an... |
Often in computational science, we talk about the scaling or order of a particular method ($\mathcal{O}(N)$, $\mathcal{O}(N^2)$, $\mathcal{O}(N \log N)$, etc.).
I am having a really difficult time finding a resource (book, journal article, or website) that gives an order $\mathcal{O}$ (with respect to $N$, the number o... |
I have to perform a [complex] basis transformation on a large number of [real] diagonal matrices:
$$ \langle b_i | A | b_j \rangle = \sum_k \langle b_i | \bar{b}_k\rangle \langle\bar{b}_k | A | \bar{b}_k \rangle \langle\bar{b}_k | b_j \rangle $$
What is the most efficient way to perform this operation, ideally relying ... |
I want this:
http://mathworld.wolfram.com/Erfi.html
But apparently scipy does not have this in its extensive special functions library.
http://docs.scipy.org/doc/scipy/reference/special.html
It is not the same as erfinv. Right now I am using an obscure identity involving the hyp1f1 hypergeometric function but I would ... |
For an assignment i need to program an application to schedule conversations. Something similar to speeddating or Pta meeting.
The problem is that i know that this is hard to solve, but i dont know if its np-hard.
What can I do to proof that this problem is np-hard? I read that i need to reduce a known problem to my pr... |
Is it a good idea to use vector<vector<double>> (using std) to form a matrix class for high performance scientific computing code?
If the answer is no. Why? Thanks
|
I have a problem where I need to find all positive (as in the eigenvalue is positive) eigenpairs of a small (usually smaller than 60x60) nonsymmetric matrix. I can stop calculating when the eigenvalue is smaller than a certain threshold. I know that the eigenvalues are real. Any suggestions on algorithms I could use to... |
I have the following optimization problem where I have absolute value in my constraints:
Let $\mathbf{x} \in \mathbb{R}^n$ and $\mathbf{f}_0, \mathbf{f}_1, \ldots, \mathbf{f}_m$ be column vectors of size $n$ each. We would like to solve the following:
\begin{align}
\min &\mathbf{f}_0^T \mathbf{x}
\notag \\
\text{s.t.}... |
Say I need to solve a PDE numerically. Depending on the problem and the numerical method chosen, I can usually see some issues coming: implementation issues (e.g. boundary conditions, parallelization), discretization issues (e.g. the stabilization of finite elements for hyperbolic problems is not funny while finite vol... |
I am having a bit of difficulty in trying to understand a paper. The paper uses spectral method to solve for an eigenvalue that comes from a system of coupled ODEs. I will write out only one equation now, because it is enough to get to the crux of my question(s).
The equation is
$V[r] = \frac{e^{-(\nu[r] +\lambda[r])... |
I have formulated a linear program with binary indicator variables $z_i(a)$ which is equal to $1$ if the $i^{th}$ document is of rank $a$ and $0$ otherwise.
The other variables in the linear program, $z^1_{ij}(a), z^2_{ij}(a)$ are defined as follows:
\begin{eqnarray}
z^1_{ij}(a) \equiv z_i(a) \sum_{b<a} z_j(b),
\\
... |
In statistics and its various applications, we often calculate the covariance matrix, which is positive definite (in the cases considered) and symmetric, for various uses. Sometimes, we need the inverse of this matrix for various computations (quadratic forms with this inverse as the (only) center matrix, for example).... |
I have been reading the book Computer Simulation of Liquids by Allen and Tildesley. Starting on page 71, the authors discuss the various algorithms that are used to integrate Newton's equations of motion in molecular dynamics (MD) simulations. Starting on page 78, the authors discuss the Verlet algorithm, which is pe... |
I'm experimenting with OpenFOAM. In my simulation of a time-dependent, transitional flow the Courant number remains well below 1 for a certain period but then rises, eventually leading to a floating point exception. In order to avoid it, I reduced the time step, with the consequence of an unacceptable slowdown of the s... |
I'm using the cell-centered finite-volume method (for example Morton, Numerical solution of convection-diffusion problems, Chapman&Hall, 1996) to discretize the advection-diffusion equation and the incompressible Navier-Stokes equations. To check the implementation, I'm using the method of manufactured solutions (Roach... |
I recently inherited a large body of legacy code that solves a very stiff, transient problem. I would like to demonstrate that the spatial and temporal step sizes are small enough that the qualitative nature of the computed solution would not change if they were decreased. In other words, I'd like to show that the so... |
Is there a open C-implementation for the solution of quartic equations:
$$ax⁴+bx³+cx²+dx+e=0$$
I am thinking of an implementation of Ferrari's solution. On Wikipedia I read that the solution is computational stable only for some of the possible sign combinations of the coefficients. But maybe I am lucky ... I got a pra... |
I have a data set containing the recorded data from a car's motion (latitude,longitude, and heading). I'd like to plot the (lat,lon) points on a 2D plot with a unit vector pointing in the direction of the car's heading at each point. The heading is given in azimuth degrees so I think I would first have to convert tha... |
I want to make my python program fast by using cython, but my inner loop is still making slow python calls to the random number generator! Several years ago this same issue was raised by someone on sage-support and there seemed to be no good solution at that time. It is not convenient for me to pre-generate a long li... |
Assuming that a direct numerical simulation is performed, what is a good method for estimate the impact of small scale on large scale in fluid dynamics ? For example is it pertinent to compare two run with different grid size or two run with different viscosity ? Is there some relevant statistical tools for this ?
The ... |
I am trying to solve a problem of finding a max repetitive sub-tree in an object tree.
By the object tree I mean a tree where each leaf and node has a name. Each leaf has a type and a value of that type associated with that leaf. Each node has a set of leaves / nodes in certain order.
Given an arbitrary object tree tha... |
I'm trying to implement the Broyden-Fletcher-Goldfarb-Shanno method to find the minimum of a function. I need two initial guesses $x_{-1}$ & $x_0$ and an initial Hessian Matrix approximation $B_0$. The only requirements I find for $B_0$ is that if the Hessian is symmetric positive definite, so too should $B_0$. Look... |
nVidia, for example, has CUBLAS, which promises 7-14x speedup. Naively, this is nowhere near the theoretical throughput of any of nVidia's GPU cards. What are the challenges in speeding up linear algebra on GPUs, and are there faster linear algebra routings already available?
|
I wonder: what is the best algorithm to solve
\begin{equation}
\frac{du}{dt} = Au
\end{equation}
Where $A$ is a real $n\times n$ matrix. A is not explicitly time-dependent, usually sparse but not necessarily banded. Its eigenvalues have non-positive real parts. A is also diagonalizable but may be too big for a full ... |
I would like to perform a PCA on a dataset composed of approximately 40 000 samples, each sample displaying about 10 000 features.
Using Matlab princomp function consistently takes over half an hour at which point I kill the process. I would like to find an implementation/algorithm that runs in less than 10 minutes. W... |
Assume I have a real valued function $f(x_1,\ldots ,x_N)$ of some variables $x_i$ which I want to evaluate numerically. In general the formula for $f$ can contain products, rationals, trancendental functions etc. and will be to long to investigate its numerical stability analytically. Or it will at least be to time co... |
I have encountered the following system of differential equations in lagrangian mechanics. Can you suggest a numerical method, with relevant links and references on how can I solve it, and the implementation in C (if possible) Also, is there a shorter implementation on Matlab or Mathematica?
\begin{align*}
mx \dot y^2 ... |
I want to modify a dense square transition matrix in-place by changing the order of several of its rows and columns, using python's numpy library. Mathematically this corresponds to pre-multiplying the matrix by the permutation matrix P and post-multiplying it by P^-1 = P^T, but this is not a computationally reasonabl... |
I want to compare two floating point numbers for equality relative to a known absolute tolerance. However, this is inside an algorithm I wrote quite some time ago, and I believe the logic of that algorithm would get corrupted if the equality relation is not transitive.
Some false negatives are no problem, i.e. if two "... |
it is all about valley detection in image processing.
I would like to find, for a given pixel, direction for higher second order derivative. I am not quite sure what discrete mask/filter I can use to compute directional derivative, along xx, yx, xy, yy.
What should I understand with 'direction of higher second order d... |
Consider the following problem
$$ W_{uv} = F $$
where the forcing term can depend on $u,v$ (see Edit 1 below for the formulation), and $W$ and its first derivatives. This is a 1+1 dimensional wave equation. We have initial data prescribed at $\{u+v = 0\}$.
I am interested in the solution inside the domain of dependen... |
I have a decision tree model -- that I've trained with some data.
I just got a new data set in and I want to run it through the model. Is there some way I can measure a "confidence interval" for the classes that new observations are being sorted into?
|
Suppose I have a high-dimensional vector space $X$, a subspace $V \subset X$, and a collection of $n$ vectors $\{x_i\}_{i=1}^n \subset X$.
My question is: How can I choose a small collection $k < n$ of the vectors $x_i$ so that the span of this smaller collection "well-approximates" the subspace $V$?
The notion of "we... |
Consider the general FD implicit time stepping scheme
$\frac{x_{t+1} - x_t}{\Delta t} = f(x_{t+1})$,
where $x$ is the vector variable of interest and $f$ is some function, generally non-linear.
We can advance from $x_{t}$ to $x_{t+1}$ using Newton's method to solve the above non-linear equation.
However, this can ge... |
I'm trying to optimize an MPI application with a highly asynchronous communication pattern. Each rank has a list of things to compute, and sends messages as necessary if the inputs or outputs reside on a different rank. In addition, each rank is threaded (currently with one communication thread and 5 workers).
I've i... |
I need to solve system of two coupled partial differential equations numerically.
\begin{align}
\frac{\partial x_1}{\partial t} &= c_1\nabla ^2 x_1 + f_1(x_1,x_2)\\
\frac{\partial x_2}{\partial t} &= c_2\nabla ^2 x_2 + K\frac{\partial x_1}{\partial t}
\end{align}
The domain of system is a square region.
Boundary con... |
I have constructed a local and global distributed array in Petsc 3.2 using:
DMCreateGlobalVector(da, &v);
DMCreateLocalVector(da, &lv);
In order to retrieve the ghost cell values from neighbouring processes, I simply use the command:
DMGlobalToLocalBegin(da, v, INSERT_VALUES, lv);
DMGlobalToLocalEnd(da, v, INSERT_VALU... |
$\newcommand{\v}[1]{\boldsymbol{#1}}$
Suppose we have following Stokes flow model equation:
$$
\tag{1}
\left\{
\begin{aligned}
-\mathrm{div}(\nu \nabla \v{u}) + \nabla p &= \v{f}
\\
\mathrm{div} \v{u} &= 0
\end{aligned}
\right.$$
where the viscosity $\nu(x)$ is a function, for the standard mixed finite element, say we ... |
To my knowledge, there are 4 ways to solving a system of linear equations (correct me if there are more):
If the system matrix is a full-rank square matrix, you can use Cramer’s Rule;
Compute the inverse or the pseudoinverse of the system matrix;
Use matrix decomposition methods (Gaussian or Gauss-Jordan elimination i... |
Suppose a system $$Ax=b$$ is given, with $A\in\mathbb{R}^{n\times n}$ being a symmetric positive-definite matrix, and some non-zero $b\in\mathbb{R}^n$. The gradient method with optimum step length can be written as
$$x_{k+1}=x_k-\alpha_k\cdot g_k,$$ with $g_k=Ax_k-b$ and $\alpha_k=\frac{g_k^Tg_k}{g_k^TAg_k}$.
Can it be... |
After reading the first answer here about how the best way to find the most performant sparse solver is to try almost everything, I began to wonder if there was any past work on libraries or research for adaptive libraries.
What I mean by an adaptive library is one that implements (or links to) a wide range of iterativ... |
According to Nocedal & Wright's Book Numerical Optimization (2006), the Wolfe's conditions for an inexact line search are, for a descent direction $p$,
Sufficient Decrease: $f(x+\alpha p)\le f(x)+c_1\alpha_k\nabla f(x)^T p$
Curvature Condition: $\nabla f(x+\alpha p)^Tp\ge c_2 \nabla f(x)^T p$
for $0<c_1<c_2<1$
I can ... |
A method to orthogonalize a set of vectors (vectors of unit length that are mutually orthogonal) is the Gram-Schmidt process:
http://en.wikipedia.org/wiki/Gram%E2%80%93Schmidt_process
Note that the the nested for loops imply that the difference is between vector $v_i$ and vectors $\{v_1, \dots, v_{i-1}\}$.
However, I w... |
In recent years, several libraries/software projects have appeared that offer some form or another of general-purpose data-driven shared-memory parallelism.
The main idea is that instead of writing an explicitly threaded code, programmers implement their algorithms as inter-dependent tasks which are then scheduled dyna... |
I have an $n \times m$ matrix of data $\mathbf{D}$ as well as a $k$-partition $P$ of $n$ indices each representing a row in a dataset. Assuming an arbitrary clustering algorithm $A$, I would like to find a subset $F$ of $\{1,\ldots, m\}$, representing indices of the columns of $D$, such that applying $A$ to only the co... |
I am reading a paper on stability of CG, and I came across the following statement:
\begin{equation}
\frac{\|A\|\,\|p\|^2}{\langle p,Ap\rangle} \leq \kappa(A)
\end{equation}
where $\kappa(\cdot)$ is the condition number and $\langle \cdot, \cdot \rangle$ the inner product.
Can you, please, help me understand this bound... |
I'm trying to teach myself FEM. The problem I have in mind is to completely investigate a plastic (e.g rubber band) being stretched (therefore, boundary conditions move as you stretch). I imagine this is a very simple problem but I can't find it covered in common FEA books. Does anybody know a good source and software ... |
what are state of art methods for numerical solution of ODEs with discontinuous right side? I'm mostly interested piecewise-smooth right side functions, e.g. sign.
I'm trying to solve the equation of a following type:
\begin{align*}
\dot x &= v\\
\dot v &=
\begin{cases}
(|F_\text{external}| ... |
This article says that all any multilayer perceptron with a linear on-off functions for all the neurons can be reduced to a two-layered perceptron.
Now, consider a two input/one output perceptron. The theory says that it impossible to model XOR function with this kind of perceptron, because it can represent only linear... |
problem comes from
"Numerical solution of fractional integro-differential , equations by collocation method , E.A. Rawashdeh, Department of Mathematics, Yarmouk University, Irbid 21110, Jordan"
$D^qy(t)=p(t)y(t)+f(t)+\int_{0}^{1}{K(t,s)y(s)\,ds} , t\in I=[0,1]$
I want to create a maple code to check if the results in ... |
I'm working with the following mixed inhomogeneous boundary value problem:
$\nabla(\kappa\nabla u)=f$ in $\Omega$
with $\partial\Omega = \Omega_1 \bigcup\Omega_2$ such that
$u=g$ on $\partial\Omega_1$
$\kappa\nabla u\cdot n = h$ on $\Omega_2$
Note 1:
If the entire boundary $\partial \Omega$ only consisted of the in... |
I implemented an algorithm to find the alpha shape of a set of points. The alpha shape is a concave hull for a set of points, whose shape depends on a parameter alpha deciding which points make up the hull.
I have resolved the set of points in concave hull. These points make up a concave polygon. I would like to order... |
I'm trying to learn more about volume meshing and have decided to try to implement a simple volume mesher. The strategy I have chosen is to subdivide my space using an octree, refined based on some criteria. I have made sure that my octree is balanced, such that the difference between two neighbouring cells is no more ... |
Suppose an Euclidean distance $D\in\mathbb{R}^{n\times n}$ matrix between a set of $n$ objects is given. To obtain inner-products (which will be further be used to recover coordinates), entries of $D$ are squared, and the matrix is double-centered and scaled, ie., $K=-\frac{1}{2}JD^{(2)}J$, where matrix $J=I-\frac{1}{n... |
Is there an open-source, thread-safe implementation of convex optimization solvers in C/C++?
Some libraries such as NLopt, Ipopt, OPT++ don't meet my requirements.
OPT++ and Ipopt aren't thread-safe, and NLopt doesn't seem to have a specific/efficient way to solve convex programming problems with equality/inequality co... |
For study 3D instabilities problem i.e a base state (velocity field and temperature field) and an additional perturbation.
The method must be independent of the type of instabilities considered but as an example, let's take the well known Kelvin-Helmholtz instability. The dynamical equation for the system can be defin... |
I am looking for a numerical software package to help me solve the 2-dimensional "free boundary" PDEs that arise in optimal stopping problems. In one dimension a standard optimal stopping problem in Economics is when to exercise an expansion option. In the end, solving this problem comes down to solving the following... |
I am looking for a tool to visualize very large directional link graphs.
I currently have ~2million nodes with ~10million edges. I have tried a few different things, but most take hours to even do 100k node graphs
What I have tried:
I spent a day with gephi, but 80K nodes take about an hour to add and the application b... |
I want to know methods which are fully parallelizable on CUDA architecture.
I have implemented the Jacobi and Conjugate Gradient methods and now Im thinking about the Bi-Conjugate gradient method. I was using the cublas library to simplify some basic algebra operations. Someone said me that Gauss-Seidel is semi-paralle... |
I have two variables k and t as functions of two other variables p1 and p2. I also know their maximum values. I do not have any analytic expression for this. I want to find the values of k and t which are the closest to their maximum values.
Is there a way to optimise the k = f1(p1, p2) and t = f2(p1, p2)?
I can try to... |
I am working on something that involves solving an advection equation $\partial{x}/\partial{t}+\vec{u}\cdot\nabla{x}=0$ in 3D. I discretized the space into 3d cartesian grid and used the Semi-Lagrangian method to solve the equation.
By 'Semi-Lagrangian method' I mean the method that Jos Stam proposed in his paper 'Stab... |
Is there any visualizer for parMetis (mpmetis), which can visualize FEM mesh grids after partitioning?
|
How do you deal with data that you need to be monotonically increasing in order to work with interpolation libs and other functions, when it is in fact not monotonically increasing?
|
Say I have a linear system $A x = b$, which converges quickly using a suitable Krylov method (such as CG or GMRES) for all $b$. If $B$ is a matrix with low rank $r$, will the same Krylov method on the system $(A + B) x = b$ also converge quickly (ideally with an extra number of iterations that roughly depends only on ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.