instruction stringlengths 43 28.1k |
|---|
I am using MATLAB to solve a problem that involves solving $\mathbf{A} \mathbf{x}=\mathbf{b}$ at every timestep, where $\mathbf{b}$ changes with time. Right now, I am accomplishing this using MATLAB's mldivide:
x = A\b
I have the flexibility to make as many precomputations as needed, so I am wondering if there is a f... |
I've spent far too much time coding and debugging multigrid. While I clearly can't post all of my code as it would be silly to ask someone to go through all that code, is there anything I should pay special attention to?
Note: I'm posting this because I don't want people to have to waste the time I had. This may not be... |
This question may be too broad. But I really want to know some concrete explanations. I often find various commutations appear here and there, which concerns the application order of two operators. For examples, between exterior calculus of the differential forms and discretization, optimization-then-discretization ... |
I have a collection of computational models that could be described as asynchronous cellular automata. These models resemble the Ising model, but are slightly more complicated. It seems as if such models would benefit from being run on a GPU rather than a CPU. Unfortunately it isn't quite straightforward to parallelise... |
I have a 3D point cloud representing ad object. I use a 3D cylinder to fit this object in the point cloud, so I check if each point is inside the cylinder and, if it is, then I assign a weight to that point.
So, at the end I have an estimate of how many points fall inside the cylinder and what is the weight of the fitt... |
I need to compute the (Moore-Penrose) pseudoinverse of fixed-size 3x3 matrices. I would prefer to have a simple method without bringing in the industrial strength machinery of Lapack. Are there any simple methods to do this?
Edit: I should add two notes: first, I am prioritizing robustness and simplicity over speed. Se... |
The FEM is usually used with a weak form of PDE. But for the non-divergence form elliptic operator
$$
-a_1(x,y) \frac{\partial^2}{\partial x^2} - a_2(x,y) \frac{\partial^2}{\partial y^2}
$$
or another non-divergence form
$$
-\frac{\partial^2}{\partial x^2}a_1(x,y)\cdot - \frac{\partial^2}{\partial y^2} a_2(x,y)\cdot... |
This wikibook states that the output of MATLAB's FFT corresponds with the wavenumbers ordered as:
$$k=\left\{0,1,...,\frac{n}{2},-\frac{n}{2}+1,-\frac{n}{2}+2,...,-1\right\}$$
However, in the example codes on the same page, the wavenumbers are coded as
k = [0:n/2-1 0 -n/2+1:-1];
which is the same as the first, but wit... |
I am struggling with DG methods for 2 phase flow through porous media. I managed to get the global pressure, total flux equations to work with an unconditionally stable mixed FE DG formulation as described here:
http://math.aalto.fi/reports/a531.ps
but the saturation equation is giving me problems. Basically I tried LD... |
I'm having trouble understanding how to code 2-D Poisson's Equation with Dirichlet boundary conditions. What I have thus far is
Constructed square mesh with triangular elements
Assembled stiffness matrix. The function for this also gives the area of each element (all same, since square).
Use Gaussian Quadrature to con... |
I am porting an existing code from MATLAB to C++ and have a linear system to solve $xA=b$ (rather than the more typical form $Ax=b$)
The matrix $A$ is dense, and of general form, but is no larger than 1000x1000.
So in MATLAB, the solution is found by the mrdivide(b,A) function or the forward-slash notation x = b/A;
How... |
I'm trying to understand how to compute the value of Pi by means of the Monte Carlo simulation.
I have a circle inside a square where the sides of the square are tangent to the circle. As data I have the number of random points and the ratio between the lenght of one side of the square and the diameter.
$$\displaystyle... |
I have to estimate a parameter (K), but I don't know how I can do it. I think by a regression model (minimum least square?), but I'm not sure. The system is:
dX1/dt = f(t)*X2*X1
dX2/dt = -K*f(t)*X2*X1
where:
X1 and X2 are the state variables, f(t) is a time varying function and K is the parameter that I want to estima... |
Say we are given a congruence relation$~\sim$ in a dataset with $n$ elements. I am looking for an algorithm for optimally sorting the $n$ elements into $m$ clusters according to given congruence relations. For instance if the data contains ${a,b,c,d,e,f,g,h}$, and: $$a\sim b,\ d\sim b,\ e \sim h,\ f \sim c$$ The data s... |
Having a matrix $\mathbf{A} \in \mathcal{C}^{m\times n}$ I solve following least-squares problem $$Re(\mathbf{A}^H \mathbf{A})x=Re(\mathbf{A}^H\mathbf{b}).$$ If the matrix $\mathbf{A}$ was a real matrix, the solution to the equation above could have been written as $$\mathbf{x} = \sum_{i=1}^{rank(\mathbf{A})} \frac{\ma... |
When using the Hexpress grid generator one gets hexahedral cells, possibly with hanging nodes. Because of a smoothing step, the hanging nodes can be shifted: they are not necessarily on the straight line that connects the corners, as shown below.
With FVM one would triangulate the face with 5 nodes in order to approxi... |
I have downloaded and unzipped PETSc from PETSc Website in my home directory (OS is CentOS 6.3 64bit ) and followed given commands on Installation page "./configure --with-cc=gcc --with-fc=gfortran --download-f-blas-lapack --download-mpich" and "make all test". There was no error throughout the process. Is it install... |
I writing some robust geometric algorithms using quantization + integer arithmetic for evaluating exact predicates. However, since BlueGene's integer support is so terrible, it occurred to me that the use of integer math may (weirdly) kill the portability of the library in terms of performance.
How worried should I be... |
I'm currently running a CFD simulation for an internal flow and need to compare my computed results to experimental data. The experimental data is saved as a comma separated file with columns for x,y,z coordinates and pressure. The computed data is saved in Ensight format on an unstructured 3D mesh.
As an example, I ha... |
My question can be rephrased as "FEM library like deal.II but for simplex elements".
Our scientific group works with very complicated 3D geometries, so usually we prefer tetrahedral meshes for our models. And we use Gmsh to build such grids.
Programming language that we use is C++. We have never used third-party FEM li... |
I frequently need to solve linear systems with sparse matrices of moderate dimension (say a few thousand). These matrices are composed entirely of small dense blocks (typically 5-10 in dimension), and the overall block structure is sparse (with a pattern like in a PDE spatial discretization). Currently I am just feedin... |
I am going ahead with asking what might appear as a debugging question. But,I am looking for something conceptual that I might have missed, and this question is somewhat related to my previous question: NVE MD simulation of inert gas: Problem maintaining equilibrium, although a different issue now. If the moderators de... |
I am interested in solving the Poisson equation using the finite-difference approach. I would like to better understand how to write the matrix equation with Neumann boundary conditions. Would someone review the following, is it correct?
The finite-difference matrix
The Poisson equation,
$$
\frac{\partial^2u(x)}{\parti... |
Given two square matrices, $A$ and $B$, I need to calculate the product $tr(A^{-1}B)\times detA$. The catch is that $A$ is singular --- more precisely, it depends on some parameter $t$, such that it's non-singular at any finite $t$ and only becomes singular in the limit $t\to 0$ --- which is exactly the limit I need to... |
I want to solve a nonlinear optimization problem
$$\underset{\mathbf{x}\in \mathbb{R}^n}{\operatorname{argmin}} f(\mathbf{x})$$
subject to a support constraint $$\mathbf{x}=[x_1,\cdots,x_n]^T, \quad x_1=x_2=\cdots=x_i=0,\quad x_j=x_{j+1}=\cdots=x_n=0 \quad (1<i<j<n)$$
Is there any algorithm or library able to solve thi... |
For your information, the original equation comes from here. Note: You DON'T have to read the paper. I will make the question as self-contained as possible.
The central equation to solve is equation (16), which is of the form (my question extends to other system of PDE with similar form):
$\dfrac{\partial f_n(x;\tau)}{... |
I have to solve generalized eigenvalue problems $Ax = \lambda Bx$ where $A$ and $B$ are both tridiagonal, $B$ is symmetric positive definite and real, but $A$ is only complex symmetric (not definite or Hermitian). Furthermore, I need the full eigendecomposition. I am currently just calling Lapack's ZGGEV generalized ei... |
Hello if anyone can offer insight on how to solve my problem that would be great!
I am looking to calculate the area of intersection between a 3D volume and a 2D plane.
3D volume: defined by 6 points (will always be a 3D wedge resembling a thick triangle)
2D plane: defined by 3 points
any suggestions?
are there any op... |
I have just installed a Nvidia GT660 graphic card on my desktop
and, after some struggle, I manage to interface it with R.
I have been playing with several R packages that use GPUs,
especially gputools, and I was comparing the time taken by my
GPU and CPU to perform some basic operations:
inverting matrices (CPU fast... |
I'm interesting in numerically simulating (with my own code, not an off-the-shelf package) the motion of a single electrically charged particle in a magnetic field. The field will vary in time and space but probably not fast compared to the cyclotron frequency or the Larmor radius.
There are many well known methods for... |
Consider $n$ integer-valued and independent random variables $e_1, e_2, \dots, e_n$ with known distribution functions $m_1, m_2, \dots, m_n$. Let's denote with $E^{1..n}$ the random variable given by the sum of $e_1, e_2, \dots e_n$, that is $E^{1..n} = \displaystyle\sum_i{e_i}$. The PDF of $E^{1..n}$, $m^{1..n}$, is ... |
I am currently trying to link a program against the Intel MKL 11.0 library instead of using NetLIB or OpenBLAS. Doing this I recognized the following error which I can not explain to my self at the moment. Consider the following C code example computing a complex scalar product using zdotc:
#include <stdio.h>
#include ... |
I am looking for a modern version or an alternative to the DRESOL package for differential matrix Riccati equations. The main issue that the original package uses single-precision type float which seems to be not accurate enough for my purposes. Available Matlab alternatives are also appreciated. Thank you!
|
I want to solve a system of differential equations using ode45 , for (many) parameters in MATLAB to investigate the behavior of solutions with coefficients of the equation .I want to find the parameters for which the solution absolute value doesn't get larger than some given number . The script has a for loop and solv... |
I have multiple sets of measured data that can easily be visualized using a scatter plot (red and black points in the figure). If my measurements were perfect, the red and black points should lie on a single curve. However they are not, thus I would like to "average"/fit the data points in such a way that I obtain the ... |
I wanted to compare the speeds of the GMRES implementations in the CUSP and the PETSc libraries.
The matrix (A) used for testing was a 3d Laplacian matrix obtained by using the 7 point stencil on a 20x20x20 grid => the matrix is of size 8000 x 8000. This is a banded matrix with 7 diagonals.
The RHS (b) was obtained by... |
I am a physicist who is trying to model the current-voltage characteristics of a superconductor-superconductor junction.
The equation for this model is:
\begin{align}
I(V) = \frac{1}{eR_{\mathrm{n-n}}}\int_{-\infty}^{\infty}\frac{|E|}{[E^{2} - \Delta_{1}^{2}]^{1/2}}\frac{|E + eV|}{[(E + eV)^{2} - \Delta_{2}^{2}]^{1/2}}... |
I have a 3D finite-difference formulation (for time-harmonic Maxwell using a standard Yee cell grid.) A "perfect electrical conductor" condition can be implemented by enforcing the desired electric field components to 0. (This can also be approximated by making the effective $\epsilon_r$ have a really large imaginary p... |
I am not very familiar with the common discretization schemes for PDEs. I know that Crank-Nicolson is popular scheme for discretizing the diffusion equation. Is also a good choice for the advection term?
I am interesting in solving the Reaction-Diffusion-Advection equation,
$\frac{\partial u}{\partial t} + \nabla \cdot... |
I have the following problem in $x \in \mathbb C^{205}$
$$\displaystyle\min_{x}x^HAx$$
subject to the following constraints
$$x^HBx = 1$$
$$x^HC_ix = 0$$
for $i \in \{0,1,\dots,203\}$, where $A$ and $B$ are complex $205 \times 205$ matrices and can be assumed to be positive definite. The $C_i$'s are rank-$1$ matrices (... |
Computational Science people:
I originally posted this question at Math Stack Exchange and someone commented that I might get "much better" answers here:
I am a novice at numerical methods and Matlab. I am attempting to evaluate the following sum of two triple integrals (it can obviously be written more simply, but yo... |
I see very few non-floating point computing libraries/packages around. Given the various inaccuracies of floating point representation, the question arises why there aren't at least some fields where this increased accuracy might be worth the intricacies of working with fixed-point.
Are there any MAJOR difficulties in ... |
please can you help me with my problem with Stokes flow written using Marker and cell method (MAC)? I need only to solve the eq. of continuity + momentum eq. for a given condition (steady state). I don't understand how to do the things on boundaries (lets say I want to have v=0 on boundaries), how to fill the matrix - ... |
Given a square grid of size $n\times n$ and $m$ symbols (say for example, alphabets A, B, C...), having $N(i)$ number of $i$th symbol; $\sum_{i=1}^{m}N(i) = n\times n$. Is there any computationally tractable algorithm that can be used to distribute the symbols uniformly inside the grid?
Uniform distribution here could ... |
I solve the Lyapunov equations :
$$ A W_C E^T + E W_C A^T + B B^T = 0 $$
$$ A^T W_O E^T + E W_O A + C^T C = 0 $$
to obtain $ W_C $ and $W_O$. My aim is to get the left and right eigenspaces of $W_C W_O$. This is basically for model order reduction through balanced truncation.
Currently I am explicitly generating $W_C$ ... |
Say I have a function $f : \mathbf{R}^3 \to \mathbf{R}$ that I wish to integrate over a tetrahedron $T \subset \mathbf{R}^3$. If $f$ was arbitrary, Gauss quadrature would be a good solution, but I happen to know that $f$ is harmonic. How much can Gauss quadrature be accelerated using this information?
For example, if... |
I know that this question might be very specific and maybe nobody will know the answer, but this is probably the only community where I could find an answer:
So, as part of my master's project, I am currently writing a multigrid code for Poisson's equation in order to calculate particle interactions in a molecular dyna... |
Question: What methods are available to accurately and efficiently calculate the sparsity structure of a finite element matrix?
Info: I'm working on a Poisson Pressure Equation solver, using Galerkin's method with a quadratic Lagrange basis, written in C, and using PETSc for sparse matrix storage and KSP routines. To ... |
I am trying to solving the advection equation but have a strange oscillation appearing in the solution when the wave reflects from the boundaries. If anybody has seen this artefact before I would be interested to know the cause and how to avoid it!
This is an animated gif, open in separate window to view the animation ... |
Consider the following robust optimization problem:
min c'x
s.t.: $Ax\geq b \;\;\forall (A,b)\in \mathcal{U}$.
Why can the robust counterpart of the problem be written in this form?
$min_x{\{ max_{(A,b)} Ax\geq b\}}$?
How does it work principally? Does it mean that I have to, for a fixed $x$ value, maximize the cons... |
There is a lot of info about how to use the sparsity pattern of A in order to solve $Ax = b$. However I can't find much about using the sparsity pattern of b. Let me take a concrete example:
Let us assume A is a large $N \times N$ matrix ($N > 10^6$) with a known sparsity pattern. Now let us assume I want to solve repe... |
CS Beta people:
I have been doing some multiple integrals with a combination of symbolic and numerical integration (because symbolic answers have not always been possible). I have been using Mathematica to do the symbolic integration, cut-and-pasting the results into Matlab, and then using quad or dblquad in Matlab. ... |
I don't understand the different behaviour of the advection-diffusion equation when I apply different boundary conditions. My motivation is the simulation of a real physical quantity (particle density) under diffusion and advection. Particle density should be conserved in the interior unless it flows out from the edges... |
This might be a silly question, but I know very little about the theoretical properties finite elements, so here goes. Suppose you were to solve the Helmholtz equation (let's say in 2D) with a spatially varying wave speed using finite elements. For reference the equation is
$$ [\nabla^2 + k^2(\vec{r})]\psi(\vec{r}) = f... |
I am simulating incompressible flow over a cylinder at Reynold number of 500. I am solving navier stokes equation using pressure correction method. My solution becomes unstable after certain time (approximately 5s).
I have tried refining my mesh, stepsize (0.05) (making sure my CFL < 1, even though I am using implicit ... |
My question is not related to any particular problem, rather, I am looking at the equations of the form $$u_t+c(t,x)u_x=0$$ and attempt to solve it numerically. According to http://en.wikipedia.org/wiki/Flux_limiter I can apply Flux limiter method, say with Van Leer limiter function, and obtain a numerical method for t... |
I'm working on a 2D fluid sim using vortex particles/"vortons" as described in Fluid Simulation for Video Games. Which I think is the same things as the "discrete vortex method". Basically you represent the fluid with a collection of particles with defined vorticity, and calculate the fluid velocity at a point by sum... |
I'm working on an API for simulation of port-Hamiltonian systems. As far as I understand it, a Hamiltonian system is symplectic if it is power conserving, and so including resistive elements would thus destroy the symplectic nature. My question is, if I add an extra state variable, the dissipated heat, along with its a... |
Is there a reasonably cheap method to solve the large, dense, low rank assignment problem $\max_\pi \sum_i A_{\pi i,i}$, where $\pi$ runs over all permutations.of $1:n$?
Here $A$ is an $n\times n$ matrix of low rank $r$. Typical sizes would be $n=10000~~$ (possibly much larger), $r=15$.
|
I'm looking at finding a solution to the following problem, but I'm having trouble formulating it sensibly, and then finding an appropriate algorithm to solve it.
Consider a list of items placed in a shopping bag: 1, 2, 3, 4...
Each item can be part of one or more promotions: A, B, C, D
We wish to apply the set of prom... |
We need to compute covariance matrices with sizes ranging from $10000\times10000$ to $100000\times100000$. We have access to GPUs and clusters, we wonder what is the best parallel approach for speeding up these computations.
|
Let us assume I have an A-stable numerical scheme. I believe that given any linear equation $y' = Ay$, it means that the numerical scheme applied to this equation is stable (and therefore convergent since it is consistent) if the eigenvalues of A have a negative real part.
My question is then, does this result extend t... |
Following on from my previous equation I'm would like to apply open boundary condition to the advection-diffusion equation (with reaction term),
$$ \frac{\partial \phi}{\partial t} = \frac{\partial}{\partial x}\left( D\frac{\partial \phi}{\partial x} + \boldsymbol{v(x)} \phi \right) + S(x,t) .$$
I define "open" as mean... |
I wish to implement the following expression in Python:
$$
x_i = \sum_{j=1}^{i-1}k_{i-j,j}a_{i-j}a_j,
$$
where $x$ and $y$ are numpy arrays of size $n$, and $k$ is a numpy array of size $n\times n$. The size $n$ might be up to about 10000, and the function is part of an inner loop that will be evaluated many times, so ... |
I have been reading about convex optimization. We have:
minimize $f(x)$ s.t. $h(x) = 0$, $g(x) \le 0$, $x \in X$
It's Lagrangian dual is:
maximize $\phi(\lambda,\mu)$ s.t. $\mu \ge 0$, where $\phi(\lambda,\mu) = \inf[f(x) + \lambda' h(x) + \mu 'g(x)]$
I don't understand why $\mu$ must be greater than zero. Can ... |
I want to evaluate the sum $$\sum_{k=1}^\infty \left(\frac{i+1}{\sqrt{2}}\right)^k\cdot k^{-\alpha}$$ where $i=\sqrt{-1}$ and $\alpha\in[\frac{3}{4},1]$ with 8 digits accuracy.
If I am willing to expend up to a second of CPU time per calculation, how should I proceed?
Suppose I want a really fast scheme for the evaluat... |
I have this confusion about Armijo rule used in line search. I was reading back tracking line search but didn't get what this Armijo rule is all about. Can anyone elaborate what Armijo rule is? The wikipedia doesn't seem to explain well. Thanks
|
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,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.