G
Giovanni Dicanio
Because some people believe that it makes to code easier to read.
They are wrong.
So, I just think that readability is a matter of personal preference...
<latin>De gustibus non disputandum est.</latin>
Giovanni
Because some people believe that it makes to code easier to read.
They are wrong.
Anna Smidt said:This doesn't help.
Anna Smidt said:Thank god, the constructor error is gone!! Thanks very much!
I do get the ambiguous call error in the line you suggested:
Error 6 error C2668: 'sqrt' : ambiguous call to overloaded function
cmat.cpp 1101 ASMModel
I don't know, the code is so huge and I am so newbie to C++ that I have
not yet been able to figure out where nelems originates from.
Anna said:Thank god, the constructor error is gone!! Thanks very much!
I do get the ambiguous call error in the line you suggested:
Error 6 error C2668: 'sqrt' : ambiguous call to overloaded
function cmat.cpp 1101 ASMModel
Now this is one of the last bugs remaining.
I don't know, the code is so huge and I am so newbie to C++ that I have
not yet been able to figure out where nelems originates from.
Bo Persson said:Because some people believe that it makes to code easier to read.
They are wrong.
Anna Smidt said:I am not sure if I have found out correctly:
MatView (double other[], size_t nelems, char *sIsRowVec=NULL): Mat()
{
sIsRowVec? init(other, 0, 0, 1, nelems, 1): init(other, 0, 0, nelems, 1);
}
Does this tell me what type of nelems are?
MatView Mat::viewAsSquare ()
{
size_t ncols = size_t(sqrt(this->nelems()));
Anna said:I am not sure if I have found out correctly:
MatView (double other[], size_t nelems, char *sIsRowVec=NULL): Mat()
{
sIsRowVec? init(other, 0, 0, 1, nelems, 1): init(other, 0, 0,
nelems, 1);
}
Does this tell me what type of nelems are?
1. Clearly nelems() is a method of the class Mat; can you not find it in
the class definition? Do a Visual Studio search for it if you do not see
it.
Anna said:I am sorry, but it's overwhelming... my first days at C++.
I want to target .NET after I have resolved my problems, but I see that
I should only post .NET specific questions, ok...
But I still don't know what is .NET and what's not.
The problem is that I am not sure if I have found the correct thing.
I do have a Mat.cpp, is that the correct location, or what should I
search for?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.