Hey, thank you for your reply
i didn't know about references in origin c (it doesn't work in standard c as far as i know, but maybe i'm wrong there^^)
so:
int main()
{
matrix<double> values = {{3,2},{2,3}};
matrix<double> &reference = values;
sub(referenz);
printf("%.f\n", reference[0][1]);
return 0
}
int sub(matrix<double> &values)
{
printf("%.f\n", values[0][1]);
values[0][1] = 45;
return 0
}
does the trick, thank you!