Questions tagged [number-crunching]

9 questions
13
votes
0 answers

Inline or not to inline in Haskell

I have several number-crunching operations that account for a good portion of the CPU time. One example of such operations is this function: import Data.Number.Erf import Math.Gamma import Math.GaussianQuadratureIntegration as GQI -- Kummer's'…
felipez
  • 1,212
  • 9
  • 21
10
votes
6 answers

Need to devise a number crunching algorithm

I stumbled upon this question: 7 power 7 is 823543. Which higher power of 7 ends with 823543 ? How should I go about it ? The one I came up with is very slow, it keeps on multiplying by 7 and checks last 6 digits of the result for a match. I tried…
Ravi Gupta
  • 4,468
  • 12
  • 54
  • 85
4
votes
0 answers

Programming language for number crunching server

I'm looking for a programming language that would scale well on multiprocessors and distributed systems, and is able to work well with the GPU for number crunching. What do you think, is Erlang and CUDA a good match? LE: I want to use it for image…
titus
  • 5,512
  • 7
  • 25
  • 39
3
votes
3 answers

Declaring array data inside a class C++

I am creating a class that needs to store different arrays like data. Those arrays will have mutable size, but all of the arrays inside the class will have the same size. The arrays will be later used for number crunching in methods provided by the…
2
votes
2 answers

Matrix Multiplication Prolog

I found this code online for matrix multiplication in Prolog, can anyone who has experience in Prolog explain it to me? % SWI-Prolog has transpose/2 in its clpfd library :- use_module(library(clpfd)). % N is the dot product of lists V1 and…
2
votes
1 answer

Error:Some file crunching failed, see logs for details

i have tried my best ever i could i apply various methods given by other user on stackoverflow but none of this work for me Error:Some file crunching failed, see logs for details Error:Execution failed for task ':app:mergeDebugResources'. …
hiashutoshsingh
  • 980
  • 2
  • 14
  • 41
2
votes
0 answers

Usability for I/O and handling of large data sets

I am trying to figure out what to use for a project (fully free & open source) that will make certain legacy data more accessible to other programmers. I'll try to not go into details, but the data sets contain large amounts of floating-point (32…
Bert Bril
  • 371
  • 2
  • 12
1
vote
1 answer

Matrix multiplication using Prolog arrays

It might not be evident, but Prolog also offers arrays out of the box. A Prolog compound has a functor and a number of arguments. This means we could represent an array such as: [[1,2],[3,4]] Replacing the Prolog lists by the following Prolog…
user502187
0
votes
2 answers

Pandas DataFrame, how to calculate a new column element based on multiple rows

I am currently trying to implement a statistical test for a specific row based on the content of different rows. Given the dataframe in the following image: DataFrame I would like to create a new column based on a function that takes into account…
Roberto Bertinetti
  • 555
  • 1
  • 4
  • 10