Skip to main content
1 vote
1 answer
133 views

Summary Using the Eigen library, I see significantly different numbers of BiCGStab iterations when I solve Ax = b with a right-preconditioner, i.e., [A M^(-1)] Mx = b, (a) by precomputing A M^(-1) ...
josh_eime's user avatar
  • 308
-1 votes
2 answers
199 views

I'm attempting to implement an algorithm to compute an array of values. Unfortunately, I've found the literal implementation of that algorithm to be too slow for my use case. I suspect there's an ...
PerplexedDimension's user avatar
1 vote
0 answers
83 views

I have some troubles in numerically calculating PDF below: SNR of particular system model This PDF is the expression of SNR of practical RIS-aided system: https://ieeexplore.ieee.org/document/9387559 (...
pinky's user avatar
  • 11
1 vote
2 answers
157 views

Context I am trying to improve my ability to recognize the number of correct decimal digits after performing short calculations involving floating-point numbers. In particular, I find it challenging ...
L. Perasolo's user avatar
1 vote
1 answer
357 views

From the seminal paper by Hughes I learnt that any B-Spline curve (or surface) can be described by a linear combination of B-Spline basis and control points, i.e. C(x) = \sum_{i=1}^n N_{i,p} B_i ...
ARessegetes_Stery's user avatar
0 votes
0 answers
66 views

I am moving a code base to run using PyTorch tensor on GPU. For loops are terrible on GPU especially for small-sized data. I am trying to vectorize the function below, i.e. to have no for loops. I ...
David's user avatar
  • 33
0 votes
3 answers
151 views

I'm trying to numerically solve a 2-D Poisson equation with around a 200x200 grid. I'm trying to implement the diagonal method to enable parallelism: #include <math.h> #include <omp.h> #...
DatBoi's user avatar
  • 131
0 votes
0 answers
172 views

I am studying computer science at the moment. We have the following exercise: Execute LU decomposition given a matrix A and vector b using NumPy. We had to derive L and U by hand and came up the ...
fiechdus's user avatar
0 votes
0 answers
171 views

I'm using the mpmath library to compute a self defined function f(x) and needed to compute its higher order derivatives. I found the Automatic differentiation on Wikipedia and found it useful. # ...
ShoutOutAndCalculate's user avatar
0 votes
0 answers
33 views

Computing higher order derivatives is a nested function and can be quite consuming. I tried to use the parallel programming to speed up the nested function. from concurrent.futures import ...
ShoutOutAndCalculate's user avatar
1 vote
1 answer
424 views

I'm doing a project required to compute the precise(up to a certain precession N) numerical derivatives of a function. The usual approach was to use the finite difference types of algorithms, i.e. (f(...
ShoutOutAndCalculate's user avatar
0 votes
1 answer
57 views

I have C code for generic-sub-matrix-vector (gesubmv) multiplication that computes y(rinds) = A(rinds, cinds)*x(cinds) + y(rinds), where rinds and cinds are vectors of row and column (not necessarily ...
ottapav's user avatar
0 votes
1 answer
272 views

I want to obtain the bases for kernel (nullspace) of a matrix using the Row Reduced Echelon Form (RREF). Although scipy has the function to calculate nullspace, it does not give me sparse vectors ...
Apppii092's user avatar
-1 votes
2 answers
723 views

I have an double integral: Because exp(−𝑥^2) is a non-integrable function, I have tried to solve this using the quadgk function in MATLAB, but I don't get a good result. Changing the integral's ...
Leo_ma's user avatar
  • 1
0 votes
1 answer
163 views

I am trying to put together a numerical simulation (specifically, Beta cell dynamics) based on Betram et al. 2007 (https://www.sciencedirect.com/science/article/pii/S0006349507709621). The model ...
Marko Šterk's user avatar

15 30 50 per page
1
2 3 4 5
10