instruction stringlengths 43 28.1k |
|---|
Please can you help me with my problem? On Wikipedia, in article Discrete sine transform, this is written (chapter Computation):
"Although the direct application of these formulas would require O(N2) operations, it is possible to compute the same thing with only O(N log N) complexity by factorizing the computation simi... |
My main interest is sparse matrix-vector and matrix-transpose-vector multiplication of the form y=y+AA'x. Is there any library that performs y=y+AA'x efficiently? I have investigated SPARSKIT, MKL, ARPACK,... but I was not able to find the related routine. Isn't the y=y+AA'x operation widely used?
|
I have been working on a transient simulation, using the SST k-w turbulence model in Fluent(TM). An unsteady boundary condition is used: at the beginning of the simulation the flow is laminar and gradually becomes turbulent.
This is where I am getting a bit confused.
When describing the numerics of my model, should I g... |
I need to implement a non-linear fitting algorithm in Fortran and chose to use MINPACK's flavor of the Levenberg-Marquardt algorithm as a basis for the least-squares stuff. However, I seem to misunderstand something very basic about how these routines are to be used. My understanding is that I have to call the routine ... |
I wrote the following program to solve the three body problem (Sun, Earth, Jupiter), initializing the system such that the total angular momentum is 0. The result of the simulation is really bad (and the Sun tend to infinity). I looked at the code for more than an hour trying to find the problem. Does anybody see what ... |
I am trying to calculate all of the eigenvectors/eigenvalues of large (40000x40000), sparse, asymmetric matrix. I am using MATLAB and have 3 GB of working memory. The way I am calculating them is by sweeping through (as suggested here -http://www.mathworks.com/support/solutions/en/data/1-A0QRGR/index.html?product=SL&... |
Suppose we are given the Stokes equations with Neumann conditions on part of the boundary:
$-\nabla\cdot\boldsymbol{\sigma} = \mathbf{f}, \quad \text{and} \quad \nabla\cdot \mathbf{u} = 0 \quad \text{in} \quad \Omega$
Here $\boldsymbol{\sigma} := \nu(\nabla \mathbf{u} + (\nabla \mathbf{u})^T) - p I$, and $\mathbf{u... |
I am brand new to slepc4py and petsc4py (and SLEPc and PETSc in general), and I have a few basic questions. I apologize if these have been answered somewhere - I've looked around for a while and haven't had much luck. If you know the answer to one (or more) of these questions, I would very much appreciate your insight.... |
I have produced a CSV file in the following format:
position number | list of positions it links to | 2nd list of positions it links to | ... | 6th list of positions it links to
All the items are integers and the lists are of varying size.
The file forms a kind of tree or web (it's a game tree).
I would like to visua... |
I have a program which compares the similarity of two images for different positions, so my surface consists of points which correspond to X and Y translations each with a value (mutual information).
Here is an example of a surface I want to be ranked as very good:
And this is an example of surface which needs a low r... |
I have a large VTK file with rectangular data, it seems Paraview cannot handle the size of the file, so it crashes and Visit navigation is extremely slow? Can anyone point me to good open source visualization software?
|
I was reading an article where they have a set of pages. For every page they extract a feature vector of dimention 300. Then they fuse these vectors into one vector by using a method called average pooling: Quoting : " to encode sets of pages into a compact document representation. The main idea consists of performing ... |
I have written a molecular dynamics simulator with a single potential function (lennard jones). I initialise the temperature of the system using a Boltzmann velocity distribution.
Is there a standard way of verifying that it works? E.g. some pressure/temperature calculation for a known element?
Thanks
|
I am learning PETSc following the tutorials of the distribution (version 3.4.1). My question is about the KSPView(ksp,PETSC_VIEWER_STDOUT_WORLD); (line 216) of ex7.c (KSP tutorial).
It teaches how to use PCBJACOBI, setting different solvers for each PC block. When I use
mpirun -n 4 ./ex7 -m 20 -ksp_type cg
the output... |
I would like to construct a Finite Element basis by using a generalized Vandermonde matrix. The idea is to compute the values of a suitable modal basis ('prime basis') at a set of points in reference space and express the values of Finite Element basis functions as a linear combination of the members of the prime basis... |
I have written some code, to produce some data. In what I have shown below, the output is just one-dimensional array of numbers. I have an analytical expression for what the autocorrelation function of this data should look like. My problem is, that it doesn't look like that, when I use matlabs built-in function xcorr.... |
I'm trying to place multiple light sources on a 2D plane, in a fashion that satisfies multiple constraints. The 2D scalar distributions are the irradiance distributions of each light source that are functions of a 3D poisition vector and 2 orientation angles.
I want the lights to be set up to satisfy certain constraint... |
I want to solve the (convex) optimisation task:
$max_{r,z}\quad r$
subject to the following two constraints
$r\|x_i\| - x_i^Tz \leq 0 \qquad \forall i=1,\dots, N $
$\|z\| \leq 1$
$r\geq0$
$r$ is a scalar, $z$ is a vector, the $x_i$'s are vectors of the same dimension and $\|\cdot\|$ is the simple eucl. norm. One can a... |
From mathematica.stackexchange:
Is it possible to define a Malliavin calculus with Mathematica 9?
Consider a random variables on the Wiener-space $\Omega=\mathcal{C}([0,1])$ of the form $$F=F(\omega)=\displaystyle\int_{0}^{T}h_{t}dW_{t}$$ for some deterministic $h(.)$ in $L^{2}[0,T].$
Here, $\omega$ is a path in the W... |
I don't know much about GPU computing at the moment, so please pardon the simple question. Can one invert local matrices in parallel on the GPU? CUBLAS doesn't seem to support factorization, and most of the LU/QR/Chol libraries I've found for GPUs aim instead to accelerate a single direct factorization.
For example, ... |
Recently I am using Umfpack with Intel MKL BLAS. To link the library to a program one has to link mkl_rt.lib / mkl_rt.so. However there is no word which version: sequential or parallel of library is linked.
Anyone could help?
Thanks in advance.
|
I need to compute the integral $\int_{\mathbb{R}^3}f(x)\, dx$, where $f$ is a matrix-valued function $f:\mathbb{R}^3\to\mathbb{R}^{3\times 3}$. How do I do that using MATLAB? The function $f$ is implemented in a seperate file. It takes as input three vectors, giving the $x$-, $y$-, and $z$-coordinates of the points in ... |
What is the quickest and simplest way to graph or visualize numerical data that is output as text files?
Transferring to Matlab is slow, Excel is clunky, things like automatic scaling are essential.
|
I am working on some ill-conditioned large sparse linear system of equations. I want to use double-double arithmetic or quad-double arithmetic to solve them. I know that there is a package named MPACK developed by Nakata, Maho, which can perform numerical linear algebraic computations under quad-double arithmetic. Howe... |
This is an attempt to extend an idea from Computer Science.. the dynamic programming based solution of the rod cutting problem (given a rod of an integral length and an array of prices for each integral value of the length, find the optimal cuts that maximize profit). Thinking about it made me wonder.. what if we were ... |
If a physical model is not listed in the wizard, we can use Comsol's weak form to enter PDE's (governing equations of a system) in their weak form. How can it be done ?
for example: 2 equations of momentum (2D flow) coupled with continuity equation
$\rho \ v.\nabla v=-\nabla p +\mu \nabla^2 v$
$\nabla .v=0$
This model... |
I recently encountered a problem that looks like a variation of bin packing or knapsack problem, but with the objective to maximise the number of bins/knapsacks:
Consider there is a list of M items with positive values v1 to vM respectively. There is also a standard size of bins which carries at most C items. The obje... |
There is an obvious difference between finite difference and the finite volume method (moving from point definition of the equations to integral averages over cells). But I find FEM and FVM to be very similar; they both use integral form and average over cells.
What is the FEM method doing that the FVM is not? I have r... |
Is there any libraries(python is preffered) for generation rectangular 3d mesh (for using with the finite difference method), which will be consistent with boundaries? (I've asked this question at stackoverflow, but nothing)
|
I have a set of points, among which a subset needs to have the same color in vtk file format. For ex. all agents with table value
0.0, 0.0, 0.0, 0.0
will have same color. Here is my vtk
POINT_DATA 11
SCALARS Gid FLOAT
LOOKUP_TABLE table
0
1
2
3
4
5
6
7
8
9
10
LOOKUP_TABLE table 11
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
... |
I am solving a coupled system of non-linear PDEs in 1D. Something like,
$$
u_t = F_1(u,v,w) \\
v_t = F_2(u,v,w) \\
w_t = F_3(u,v,w)
$$
where each variable is a function of $x$ (the spatial dimension).
So for each point in space I wish to calculate the Jacobian of the vector,
$$
\boldsymbol{F} = \pmatrix{F_1(u,v,w) \\ F... |
I would like to know if there is a quick way to compute the Euclidean distance of two vectors in Octave. It seems that there is no special function for that, so should I just use the formula with sqrt?
|
I'm new to opencl but I have some experience using HLSL. In HLSL multiple passes are used when you need to finish a computation before moving on to the next step.
I would like to know how this sort of thing is done in opencl.
I am writing an image filter as below
float4 Convolution(__read_only image2d_t srcImg, int2 po... |
I am looking into upgrading to a High Performance Computing work-station to do mostly computational fluid dynamics computations and some fundamental numerics. The CFD software that is available does not support GPU/CUDA. Aside from sufficient RAM and appropriate number of processors, the major bottleneck for my computa... |
After reading some stuff on STL files, I realized that they do no contain information about a mesh (connectivity for instance) , but they represent the surface geometry of the part to be meshed.
However, some available tools like the open source Gmsh, could import the STL file and create the mesh from the defined vert... |
I am solving 3D time-harmonic Maxwell FDFD problems (which result in huge sparse linear systems) using BiCGStab(l). I have tried out a bunch of different methods and for my specific use case, it seems like this algorithm outperforms the other common ones such as BiCG and restarted GMRES in terms of total solution time.... |
I have a program that does some setup work, forks several times, and exits. The child processes do most of the heavy computing.
Will torque kill the child processes when it detects the parent process exiting?
|
To summarise this question in advance, I'm looking for a good hash function that is suitable for generating pseudo-random numbers in Monte Carlo simulations. This means it should be reasonably fast (so something like md5 is ruled out) but have statistics that are good enough for numerical applications.
The reason is th... |
I am solving a non-linear system of coupled equations, and have calculated the Jacobian of the discretised system. The result is really complicated, below are (only!) the first 3 columns of a $3\times 9$ matrix,
(The complexity arises, in part, because the numerical scheme requires exponential fitting for stability.)
... |
Im trying to understand the difference between these two graphics cards for academic computing, specifically for the DGEMM component.
If we look at the raw statistics, both have the same GK110 chip, have comparable statistics in virtually every category, and, I believe, have the same core architecture. Before any disc... |
In the Metropolis algorithm, we accept or reject based on following criterion in the $NVT$ ensemble:
$$
e^ {(E_{\text{new}} - E_{\text{old}})\,/ \,kT } \ge \text{random}(0,1).
$$
Why does the uniformly distributed random numbers work here? How does it work?
|
I am trying to model the oscillation of a fluid miniscus in a straw when the miniscus is displaced from its equilibrium level. The results was the following non-linear ODE:
$$y''= 1/y - 1.$$
This can be solved numerically but I have not been able to find anyone who has worked on it. Is anyone familiar with this equat... |
I have tried matlab eig command, it results true eigenvalues but wrong eigenvectors.
I also tried direct iteration with rayleigh qotient which is better but doesn't give all eigenvectors
also I have tried QR method which gives eigenvalues but not eigenvectors
is there any algorithm that i can use to find eigenvalues a... |
I'm sure this is very important for anyone working in computational astrophysics. I have a .sph file & it has 10 columns containing
x, y, z, density, temp., velx, vely, velz, smoothing length, particle mass.
Data is in some strange units but I can take care of that. But, I don't know about other details. Anyone who m... |
There are hundreds of different types of performance measures for numerical models, many of which are applicable to many different types of models. But a good model doesn't just perform well, it performs well while being as simple as possible, and no simpler. Are there any general-ish measures of a model's parsimony?
I... |
This question may be better suited for an Astronomy Stack Exchange site, but I figured I'd ask here. Say I have measurements of something as a function of radius for a number of objects.
Here's an example to make things concrete:
# Object 1
In [92]: r1
Out[92]:
array([ 0.05 , 0.07040816, 0.09081633, 0.11122449... |
I am trying to compare my finite difference's solution of the scalar (or simple acoustic) wave equation with an analytic solution.
For that purpose I am using the following analytic solution presented in the old paper Accuracy of the finite-difference modeling of the acoustic wave equation - Geophysics 1974 - R. M. Alf... |
There's a computational code I'm working with which I'm told requires OpenCL 1.1 or later. I found out I'm saddled with OpenCL 1.0 on my Macbook Pro using some helpful code snippets, and Google has been remarkably opaque on how to update versions of OpenCL on OS X. The above code returns that my machine sports the foll... |
I am a postgraduate student with interest in numerical methods for solving nonlinear systems of equations. I have read some papers that discussed about 'computational order of convergence' for some iterative methods for example Increasing the order of convergence of iterative schemes for solving nonlinear systems, but ... |
Below a piece of code is shown to solve a linear system.
ierr = KSPCreate(PETSC_COMM_WORLD,&ksp); CHKERRQ(ierr);
ierr = KSPSetOperators(ksp,A,A,DIFFERENT_NONZERO_PATTERN); CHKERRQ(ierr);
KSPSetType(ksp,KSPBCGS);
ierr = KSPSetTolerances(ksp,1.e-2/((m+1)*(n+1)),1.e-50,PETSC_DEFAULT, PETSC_DEFAULT); CHKERRQ(ierr);
ierr = ... |
I am trying to implement exemplar based in-painting, as proposed by Criminsi et. al. in its original format (before moving into further optimisations).
I have a few theoretical doubts which I would like to clarify.
I am not sure how the patch priority and the determination of fill-order works to propagate linear struc... |
I will be blunt: this is an old exam question of a course that covers Molecular Dynamics (MD) and Monte Carlo (MC) simulations.
Explain how to determine the severity of finite-size effects.
My idea: Since we are talking about MD and MC, finite-size effects are related to the fact that we can only simulate systems of ... |
I am looking for simple GMRES implementations. Unfortunately, I have a few requirements:
should be C or Fortran, Fortran preferred
needs a license that permits inclusion in an MIT/BSD licensed package
needs to deal with complex data
So far, the "templates" code on netlib seemed to fit well. However, it doesn't deal w... |
There are many variants of non-linear conjugate gradient method available ( Flatcher-Reeves, Polak-Rebiere, Dai-Yuan). In case of minimization of quadratic function when first search direction is chosen to be negative of gradient then all of these algorithms are equivalent and possess finite termination property.
How... |
For a 3D velocity field $\mathbf{u}$ obtained by direct numerical simulation.
Assuming that the field is defined on a periodic domain $\mathcal{P}$ of periodicity $L_x$ in the $x$ direction, $L_y$ in the $y$ direction and $L_z$ in the $z$ direction.
Assuming that the simulation is computed from time $t_1$ to $t_2$.... |
I'm looking at a global minimisation problem on the $n$-sphere ($n$ of the order 10--50) but with a complete swine of an objective --- it is (effectively) a black box; it is piecewise smooth but with discontinuities and (this is the kicker) the minimum seems to occur at (one side of) a discontinuity. My best results s... |
I need to code up a computer graphics algorithm for Surface Registration.
Briefly surface registration is the process of finding "optimal" one-one correspondence
between surfaces, where the meaning of optimal depends on the specific problem.
I do not have much experience with Computer Graphics software, and so I was... |
I hope this is not too off-topic here -- I've asked it on SO but I'm hoping I'll get better answers here!
I'm a little bit confused about when I should call MPI_Wait (or other variants such as: MPI_Waitall, MPII_Waitsome, etc). Consider the following situations: (Note: pseudo code)
Case (1)
MPI_Isend (send_buffer, sen... |
The wiki for machine epsilon says:
"Machine epsilon gives an upper bound on the relative error due to rounding in floating point arithmetic"
If machine epsilon is the upper bound on the relative error, why does the spacing between floating point numbers actually get bigger for larger numbers? For example in MATLAB:
... |
I was wondering what is the best way to learn how to program in Fortran ?
I've been looking for books, the examples that seemed OK to me were "Fortran 95/2003 Explained" and "Fortran For Scientists And Engineers".
I don't know what you guys think of these?
Another thing that I am wondering about is which compiler I sho... |
"The traditional local Monte Carlo method is simple, extremely general, and versatile." -Wang Swendsen, 2002
What does 'local' Monte Carlo mean ? Is there anything called 'global' Monte Carlo?
|
I am attempting to increase the performance of a legacy Kalman Filter implementation. The state covariance is factored in terms of UDU, i.e. $\mathbf{P} = \mathbf{U}\mathbf{D}\mathbf{U}^T$.
Many years ago, Bierman showed how scalar measurements may be used to update the covariance. Helpfully, it includes an implementat... |
I'm new to opencl and I'm trying to figure out how to return a variable length array of numbers. (I'm using Cloo for C# .net)
I am doing image processing and I've written a program to look for bubbles in oil. I want to port some of the code to opencl to take advantage of the GPU. I want my opencl function to return a l... |
How to set image with respect to a point in Paraview? I have a vtk file within a rectangular domain starting with the lower left point -1842,10000, I want to set a background image whose lower left also starts at the same point as stated earlier in order to superimpose the vtk on the image. Any suggestions?
|
The context - I'm working with a spectral FE (higher order interpolation at GLL nodes) code on conforming hexahedral meshes, and our PI is interested in improving mesh quality, possibly with adaptive refinement. However, the only local refinement schemes I know of for hexes involve nonconforming meshes/hanging nodes, w... |
There are many well known numerical methods for solving equations of the type
$$ f(x) = 0, \quad x \in \mathbb{R}^n,$$
e.g. bisection method, Newton's method, etc.
In my application $f(x)$ is calculated with a stochastic method (the result is an average).
Are there any numerical equation solving methods that handle thi... |
I am trying to understand some results and would appreciate some general comments on tackling nonlinear problems.
Fisher's equation (a nonlinear reaction-diffusion PDE),
$$
u_t = du_{xx} + \beta u (1 - u) = F(u)
$$
in discretised form,
$$
u_j^{\prime} = \boldsymbol{L}\boldsymbol{u} + \beta u_j (1 - u_j) = F(\boldsymb... |
I'm simulating the thermo-electro-mechanical behavior of a copper wire which is surrounded by silicon dioxide. In other words, the wire segments is under mechanical and thermal loads and at the same time an electrical current is flowing in it.
In order to perform the simulation accurately, I think that I should conside... |
The background is that I'm solving a problem in numerical analysis and I seem to be halfway having solved the non-linear system and now getting to the part where I should apply solving differential equation.
https://math.stackexchange.com/questions/467164/how-to-proceed-solving-this-problem
The code so far is
z=[0:500:... |
This is probably a very trivial question but I have not been able to figure it out myself, so here goes.
Let $\Gamma$ be a smooth boundary in 2-D divided into $N$ quadratic (3-noded), continuous, finite elements. Consider one such 3-noded element on the boundary $\Gamma$. Let $\phi$ be a continuous function on this bo... |
I am trying to use the cvx package for optimization. However, I am having some issues with it. I have a variable X which is a matrix but I cannot add $X^{-1}$ in the objective function. What should I do? Is it even possible to use it or it violates the definition of semi definite programming and hence cannot be include... |
Consider two computers with different hardware and software configurations. When running the exact same serial Navier-Stokes code on each platform it takes x and y time to execute one iteration for computer 1 and 2, respectively. In this case, $\Delta = x-y$, is the iteration time difference between computer 1 and comp... |
Is there a way to convert vtk file without visualizing into a image file such as png in the bash terminal itself?
I have found that for the vtk files that I visualize to take longer time than its corresponding image file (which is made from a different file).
|
The function $f \colon x \mapsto (e^x-1)/x$ has singularity near $x = 0$. That singularity can be lifted, though: for $x = 1$, one should have $f(x) = 1$, since
$$
e^x = \sum_{k=0} \frac{x^k}{k!}
$$
and thus
$$
(e^x - 1)/x = \sum_{k=1} \frac{x^{k-1}}{k!}
$$
However, the form $(e^x-1)/x$ is not only not defined at $... |
I'm trying to understand the types of numerical errors, to do this I want to calculate $\sin(\pi/2)=1$ numerically. To do this I use the Taylor series of $\sin(x)$ in 0:
$$\sin(x)=x-\frac{x^3}{6}+\frac{x^5}{120}-\frac{x^7}{5040}+ \ldots$$
To make the calcultaions I did the following Fortran program:
program main
impli... |
I am writing a small MATLAB package which will solve a certain class numerical problems. There are 3 stages of the algorithm and the user has 5 choices for each stage. I have implemented the entire problem using $\approx 20$ functions and 3 switch cases (one for each algorithm stage). It works fine but I am considering... |
I am currently mulling over the idea of taking a code I currently work with and rebuilding it from the ground up to allow for the use of more efficient programming and numerical techniques.
In the early stages of the design I decided I would like to write a wrapper class for matrices and vectors. This would allow me t... |
Is there a way to understand what happens when a singular operator is discretized and inverted using the pseudoinverse (say using the SVD Moore-Penrose pseudoinverse)?
For example, if we discretize $(\nabla u, \nabla v) $ with a finite element method or something, the operator should usually be singular due to the fa... |
My question seems elementary:
I use a new numerical method to do fluids dynamics simulation. I use t=0.001s as the time step. But I don´t know how many iterations I need to achieve velocity convergence, because I see the velocity still increases even the iterations was 1000. I want to ask the experienced scientist usua... |
We're all familiar with traditional least-squares method for constructing a straight line through a set of data points. The question is: suppose I show you a scatter plot which clearly is suggestive of more than one line (suppose two). I need to split the data points into two groups and build a regression line for each... |
I am exploring the Method of Lines as a way of time stepping semi-discretised PDEs with ODE time-integration solvers. For an excellent introduction to this technique see the scholarpedia.org article. A popular ODE solver is VODE from http://www.netlib.org/ode/vode.f. It is also possible to access this solver by the sci... |
DEM: discrete element method.
XDEM: extended discrete element method.
For my current project of furnace simulation with granular materials, I am interested in the methods mentioned above. I have not studied these method in the past and now I am looking for general introductory materials. Either monograph or scientific ... |
I want to simulate a nonlinear stochastic differential equation
$$
{\rm d}X_t = f(X_t) {\rm d}t + g(X_t){\rm d}B_t
$$
where $f,g \in C^{\infty}({\mathbb R}^n ,{\mathbb R})$ and $B_t$ is one-dimensional standard brownian motion. How can I do it by MATLAB?
A good simulation file for a similar equation might be helpful.
|
Looking for some software to deal with 50kx50k sparse matrix applying non-negative matrix factorization. Do you know any?
|
I am a student and I came to this question while solving problems regarding the float-points.
a 16 bit floating point number format is given as;
1 bit for sign
9 bits for mantissa
6 bits for exponent.
mantissa is normalized fraction denoted in sign magnitude form and exponent is in 2's complement form.
base of the sys... |
I have $n$-dimensional matrices $\mathrm{\hat{H}}(\vec{k})$ depending on vector parameter $\vec{k}$.
Now, eigenvalue routines return eigenvalues in no particular order (they are usually sorted), but I want to trace eigenvalues $E_i$ as smooth functions of $\vec{k}$. Because eigenvalues are not returned in any particula... |
I need to write some data from a computation, that will be read later by Paraview (.vtu or vtk file).
When it comes to file size , should I go for the ASCII format or the Binary format ?
|
Consider a method (e.g., FEM) with variable approximation order $p$. Now, we know that the optimal order of convergence is given by
$$e = C h^{p+1},$$
where $h$ denotes the mesh size and a constant $C$ that does not depend on $h$. As a result, we can study the experimental order convergence (or $h$-convergence) on a se... |
What is the best way to handle a constraint of the type $ax_1^2+x_2^2+...+x_n^2=c$ in a gradient descent algorithm?
I would like to solve an optimization problem of the type:
$$ \min J(x_1,..,x_n)$$
with this constraint using gradient descent. I tried to think of a way to alter the gradient so that it doesn't affect ... |
I have two physical properties which are exact (no noise). If I perform a polynomial regression of any degree, all coefficients are statistically significant. The problem is that the residuals are always "sinusoidal". For me, it probably means that a polynomial is not the adequate function to fit but I did not find bet... |
When applying Galerkin method, we have two conventions, i.e. multiply the test function $v$ at left/right, $(v,u)/(u,v)$.
Both ways won't matter for a simple problem like Poisson's equation, since the stiffness matrix $K$ and Mass matrix $M$ are symmetric, and the transpose doesn't change.
However, if there is also fir... |
I trying to find a computing algorithm for the Significant wave height $H_{1/3}$, or $H_\text{s}$ or $H_\text{sig}$ in the time domain.
This is defined as the average height of the one-third part of the measured waves—which are $N$ in number—having the largest wave heights:
$$
H_{1/3} = \frac{1}{\frac13 N} \sum_{m=1}^{... |
What I am trying to solve is the following
Rayleigh-quotient-like minimization:
\begin{eqnarray}
\begin{split}
(P_0)\quad\min_x \frac{\left( Ax - b\right)^\top \left( Ax - b\right)}{x^\top
x}\\
s.t. \quad\quad Ax-b \geq 0
\end{split}
\end{eqnarray}
where $A\in R^{m\times n}$, $m>n$, is a full rank matrix.
It is well kn... |
I have a quantity $\beta(\mathbf{x}) \in \mathbb{R}$ that I wish to compute on a curved, smooth surface defined by $\{\mathbf{x}: \Gamma(\mathbf{x})=0\} \subset \mathbb{R}^{3}$. (This surface is approximated by a trimesh.) Since I want to display the quantity as a color on the surface, I need to sample, then bin via $\... |
I am working on Fermion and Boson Hubbard Models, in which the dimension of Hilbert Spaces are quite large (~50k). Because the Hamiltonian matrix is ~50k X ~50k, to diagonalize these big sparse matrices I am using DSYEV(LAPACK SUBROUTINE) which takes quite good amount of time(8hrs on Xeon Hp workstation Z400 16 GB RAM... |
I have some function of $R^2$, that must be numerically computed. For instance, I might be interested in a real-valued contour integral that begins from (x,y) = 0.
$$
f(x,y) = \Re\left[\int_0^{x + iy} t^3 + t^5 \, dt \right]
$$
where $\Re$ is for the real part. (In practice I don't have the explicit form for f and it m... |
I have a similar question compared to this post.
I am trying to maximize a function, which is a black-box to me. I have tools of gradient-free methods; in fact, this problem is reasonably smooth that I can even use the numerical approximation of gradients most of the time. However, there is this last problem: the domai... |
CG Algorithm
https://skydrive.live.com/redir?resid=E0ED7271C68BE47C!386&v=3
System of equations, the question and the example
https://skydrive.live.com/redir?resid=E0ED7271C68BE47C!387&v=3
% below result is only accurate at decimal 0.1, but not the tolerate, why?
% is the conjugate gradient algorithm only for square m... |
After download from http://sourceforge.net/projects/reduce-algebra/files/ and unzip reduce-windows64-20101007.zip
failed to open reduce, got error in window 8
libgcc_s_sjlj-1.dll is missing
|
I want to compute a symmetric matrix A from a vector b by: A = b * b'.
Does the Eigen library automatically take into account that it does not need to do all calculations to get A (because of the symmetry which repeats most of the matrix entries)?
If not, I could take advantage of the symmetry and write my own functio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.