I
I
iceman21122015-04-05 12:10:54
Yii
iceman2112, 2015-04-05 12:10:54

How to implement verification of SLAE solution?

The user uploads a cpp file to the site that solves the lean. system. The data input and output format in this cpp file is still open.
I have to compile this file and test it on different matrices (different dimensions and condition number).
What would be the best way to do it if, for example, I want to test it in dimensions from 1 to 100, I need to generate 100 files and pass them all through the exec () method to the compiled file, then read the result file, get the answer, calculate the error and output her, or can I somehow transfer and read the parameters without files?
yii2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-04-05
@butteff

I don't understand. is the input and output format in the cpp file open? Then why compile 100 files when you can compile once and then pass the necessary parameters to the already compiled application through exec the remaining 99 times?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question