Hello @
Duoas,
0- I try first to go on the identification of what we need, materials, then we'll see later on, for the logic, identifying the types and what data structures are available, is the first step,
even if it's a bit cryptic then we will be able to compare practically line by line the two programs (then understand the real thing e.g the impl of the indirection) ;
we are translating bluntly, python tuple to pair and vector, (I avoided on purpose the use of new objects and typedef, anyway a point_2d is a pair).
sub-zero: "but you are doing OP's homework", I don't, I peer program (and I have time still 136789 files going on, this thing rapes my cpu 8-) ), I don't give away everything, but the necessary base and material to enter the topic (I don't expect the op to digest the first steps in ten minutes, but maybe in two or three days):
std::pair<double, double> gradient_descent_runner
(@
vobiscum you still need to do that for the other functions e.g providing their prototypes, I gave you the data-types-translation (parameter and return types) involved in the first-entry function, you should be able to figure out, this is an important step, even if you are not sure, give it a try)
and the fun will start,
we already moved from a
1 2
|
I can't translate it on C ++
:((
| |
to a starting point, writing code, compiler issues, header inclusion issues et cetera, those problems need to be seen and experienced, even if not fully understood.
1- sscanf is perfectly fine in this case according to the data formatting and enough straight forward to understand than writing a template and use operator indirections because my clang is broken 8-D, I like c stuff from time to time 8-), BTW what's a c++ runtime? a giant wrapper to system-calls written in C (neerding out)
2- because the op is on windows, and I don't know what editor, anyway, does not hurt to read everything in bin.
3- yes it is to be obvious the op doesn't know about v & flag flag |= a 8-), so this is optional, then I can, because the inner impl will test anyway if the flag is up or not NAH! 8-O (1)
or 1,2,3 could be summed up with: to set the gossips' tongues wagging 8-D or simply because eueueueue.
(1) this is a santa klaus smiley, yes it is.
--- touch base part --------------------- you must be 21 (not sure)
6-* "
Beware of answers that ask you to put away everything you've done and replace it with code containing a lot of stuff you don't understand" ( this is I 8-) )
morality: I did not replace anything, as I answered long before the OP came up with a solution (and sadly overwrite many times, instead of continuing in another message, but I don't have an issue with that,
not a syco rigidimus ape kind, or simply "insecure male", I am used to work with young/green fellows) and that's because of my move, we got finally s
omething presented in a public display,
something positive, I might be fun, but don't like "
the behind the curtain crapshit, I teach you life from my tiny-ego-centrist mental disease" ( jumping from the stars),
then you got the clap, figure out, or simply present some kind of excuse, don't you think you crossed (read totally broke in a pathologic way) the line of idiocraty?, THX.
* yes we jumped to six, why? because I like it, negative self-centered one, less... don't know I might be ```special.
And if you are so busy why even bothering? 1+1 = 2 Thank you, keep your racism for yourself, I am busy since my birth time but I manage; I am not the only one hopefully.