Questions tagged [scientific-computing]

Use this tag for questions about using computers in science. Many of these questions also fit on scicomp.stackexchange.com.

Scientific computing encompasses numerical methods, physical simulations, data processing and visualization, and the many other ways in which computers are used to do scientific research.

There is an entire Stack Exchange site devoted to questions about scientific applications of computers. These sorts of questions may get more specialized attention at that site.

756 questions
0
votes
1 answer

Dynamic 3d array slicing and sorting

I'm a bit confused on how to accurately slice and sort 3D array in numpy. There seem to be many ways to do this manually but I need to do this using numpy.where(). For example if lo360 are 2D longitude values, lat2d latitude values in 2D, yi is a 1D…
Shejo284
  • 4,541
  • 6
  • 32
  • 44
0
votes
2 answers

EC2 cluster Instances for offloading desktop-scale computing tasks

I'm using EC2 to offload some computing tasks from my desktop - basically running some jobs that would take hours or days on a desktop, nothing particularly large scale, so I'm not looking to setup anything too complex - it should be able to run on…
daj
  • 6,962
  • 9
  • 45
  • 79
0
votes
1 answer

Unable to install RTAI-Lab

I hope somebody can help me with a problem that has been driving me crazy. I am trying to install RTAI-Lab but so far I have not had any success. The document https://www.rtai.org/RTAILAB/RTAI-Lab-tutorial.pdf describes the installation procedure,…
eatyourgreens
  • 1,053
  • 1
  • 12
  • 16
0
votes
2 answers

Performing numerical calculations in a virtualized setting?

I'm wondering what kind of performance hit numerical calculations will have in a virtualized setting? More specifically, what kind of performance loss can I expect from running CPU-bound C++ code in a virtualized windows OS as opposed to a native…
0
votes
1 answer

What's the meaning of the partial derivatives of B-spline as given by scipy.interpolate.bisplev?

I have a mesh generated from cloudpoint, which could be described as z = f(x,y), so I'm using scipy.interpolate.bisplrep and bisplev, with good results. bisplev can be used with parameters dx=n and/or dy=n so that the results are derivatives of…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
0
votes
1 answer

OpenMP optimization for specific number of threads

I'm developing a scientific code, so of course speed is of the essence. Now because of that portability is not really an issue and so I know how many openmp threads I will have available already when compiling the program. Can I use this information…
Azrael3000
  • 1,847
  • 12
  • 23
0
votes
1 answer

Calculating distance from a point to a surface along a vector in java?

I need to calculate the distance from a point [x y z] to the surface of an object (at this stage a simple rectoid, but later an arbitrary shape) along [0 0 1]. I could do this defining the surfaces as planes using unit vectors and then doing a…
0
votes
1 answer

Ubuntu is killing my computations

I am trying to perform a heavy scientific computation on my ubuntu machine. The code is written in Python and is marked as an executable. However, after about one hour the computation is terminated with no error message other than "terminated" as if…
numpy problem
  • 73
  • 1
  • 7
-1
votes
2 answers

Which Enthought EPD distribution should I use?

I'm currently an undergrad Electrical Engineering student. I've been using MATLab for a while, but have grown weary of its syntax and subtleties. I've been trying to find an alternative, and after much searching have found Enthought. Since I'm a…
-1
votes
1 answer

Writing Python Script to Solve System of Four Equations in Python w/ Four Unknowns

I have a system of four equations with four unknowns posted below. Each equation (f1,f2,f3,f4) is set equal to zero, and I have tried using fsolve with no success. The issue may be that these are non-linear. Any help setting up a script to solve for…
erkvos
  • 19
  • 1
-1
votes
4 answers

Scientific Problems for Python Coding Dojos

We are organizing a Coding Dojo of scientific applications in the Brazilian Python Community, the main goals are: improve our skills in Numpy (and some others scientific libs); improve the use of TDD in this kind of applications; and better…
renatopp
  • 1,275
  • 10
  • 17
-1
votes
1 answer

Higher floating-point precision and Machine Learning

I found out through many research papers that Machine Learning algorithms (and more specifically CNNs/DNNs) are actually very error-tolerant applications i.e., they can survive severe numerical errors, to the point where a very acceptable quality of…
-1
votes
1 answer

How to turn a set of data to a matrix and vectors

Suppose I have this huge set of data in a .txt file that has the following structure: first and the second column represents a discrete bidimensional domain, and the third column represents the values calculated on each point of the discrete X and Y…
-1
votes
1 answer

CUDA kernel fails to launch after making simple code changes inside the kernel

I have a templated CUDA kernel for calculating and setting values at the interface between 2 computational meshes. The values are calculated using 3 separate contributions, obtained from class member functions with class instances passed to the…
qshn
  • 61
  • 4
-1
votes
1 answer

Segmentation fault when using dpbtrf

I try to use the LAPACK routine dpbtrf (Documentaton) in c++ but always get a segmentation fault. I am not sure how to pass the matrix LAPACKE_dpbtrf and tried to replicate it from the few examples I found without success. How to make the code below…
Alex
  • 4,925
  • 2
  • 32
  • 48