Questions tagged [numerics]

54 questions
1
vote
1 answer

How do I make sure numbers are numeric from a .txt?

I'm setting up a script to extract the thickness and voltages from a single column text file and perform a Weibull distribution on it. When I try to use fitdistr() I get an error stating "'x' must be a non-empty numeric vector". R is supposed to…
Brian Riggs
  • 151
  • 1
  • 4
1
vote
1 answer

ILNumerics: ILMath.ridge_regression

is there anyone know how to use ridge_regression in ILMath function? I try to read the documents and search in several website, but I can't find the example. Here is the method: public static ILMath..::..ILRidgeRegressionResult
ehmind
  • 265
  • 3
  • 10
1
vote
4 answers

C++, is linking order standardized?

On my linux box, I have 2 libraries: libfoo1.a and libfoo2.a and they both contain an implementation of void foo(int) and my main program calls foo: int main() { foo(1); return 0; } I compiled the program two ways using g++ g++ main.cpp…
RAC
  • 4,979
  • 3
  • 21
  • 10
1
vote
3 answers

How do I speed up C# numeric code

I have a C# application that calls a Fortran DLL to do numeric calculations. It has been determined that the DLL call is at least 10x slower than calling the same calculation from a Fortran console app, so I have started porting the code to C#. The…
spainchaud
  • 365
  • 3
  • 12
1
vote
1 answer

Java matrices and numerics

So I just started doing numeric methods in Java; // I have a matrix class that has get, set methods for creating matrices; have used those in the method below. // The method below computes a Matrix and prints as well returns it. public Matrix…
robinhood91
  • 1,641
  • 3
  • 20
  • 36
1
vote
3 answers

Is it possible to deploy a WebRole on Azure with Cloud Numerics used for computation?

Is it possible to use Code Numerics on Azure just for some computation like standard deviation and so on, not using its distributed abilities and bypassing HPC? I am testing an MVC Web Role with some strong math and charting, I added references to…
Tobiasz
  • 1,059
  • 1
  • 12
  • 29
0
votes
2 answers

C Input only decimals

I'm trying to restrict the input to only numerics in a simple C application however I get a warning. I suspect it's to do with the following segment. Is version one the proper way of doing things? Thanks. for(i=0;i< strlen(string); i++) { …
John Lane
  • 1,112
  • 1
  • 14
  • 32
0
votes
3 answers

Point-wise Multiply Column Array and Matrix using Math.Net Numerics with C#

I want to perform a point-wise multiplication of a column array with each column array/vector in a given Matrix in C# using the Math.Net Numerics library. There is little documentation on operations like this, so far I have the code below which…
JMan
  • 55
  • 3
  • 10
0
votes
0 answers

Numeric and symbolic gradients don't match although Hessians do

For context, I have a small project in MATLAB where I try to replicate an algorithm involving some optimisation with the Newton algorithm. Although my issue is mainly with MATLAB, maybe it's my lacking profound background knowledge what's keeping me…
drilow
  • 412
  • 2
  • 10
0
votes
0 answers

Converting decimal number to IEEE format

Hello stackoverflow community, Today I want to know if my solution for this question is correct or not , and if it is not please tell me why and what is the correctness of it and thanks in advance. The question : Convert the decimal number 1.5 x…
0
votes
1 answer

matlab cell2mat( ... ) function with cell array having a bunch of sparse matrices overflows memory unexpectedly

I get strange behavior with respect to memory with Matlab and the cell2mat() function... what I would like to do is: cell_array_outer = cell(1,N) parfor k = 1:N cell_array_inner = cell(1,M); for i = 1:M A =…
peter karasev
  • 2,578
  • 1
  • 28
  • 38
0
votes
1 answer

Plot Surface instead of parametric curve

I am working on using the forward difference scheme for numerically solving the diffusion function in one dimension. My final plot of the solution should be a surface where the solution u(x,t) is plotted over a grid of x and t values. I have the…
peasqueeze
  • 121
  • 2
  • 10
0
votes
1 answer

Using Ada real_arrays operators while using plplot

Plplot in Ada requires a file which using ada.numerics.real_arrays, and prevents using it anywhere else. At the same time, vector operations are thereby hidden, and as a consequence apparently every plplot example for ada uses element-wise…
0
votes
1 answer

Filling and manipulating matrices using MathNet.Numerics

I'm working on a code where I need to represent a small number of matrices (around 10) and do some operations with them (like get the inverse, transposed, etc). One of my co-workers recommended using the Math.Net Iridium library. The referred page…
lucas.mdo
  • 339
  • 7
  • 27
0
votes
1 answer

Does Math.net Numerics support 4D, 5D or higher dimensional interpolation on irregular grid?

Does Math.net Numerics support 4D, 5D or higher dimensional interpolation on irregular grid? My data set is in the format of A, B, C, D, Z. The data set is an irregular grid. I would like to interpolate to get Z given A, B, C, D. If yes, what is the…
Lawrence Teo
  • 459
  • 2
  • 6
  • 19