This chapter describes how the function operator()(int,int) works for the different matrix types. Basically, for all matrix types, the function operator()(int,int) returns a reference to an element of the matrix. This reference can be used as a right-side value, like this:
x = A(i,j);
or as a left-side value (lvalue), like this:
A(i,j) = x;
What C++ data type does operator()(int,int) return? We consider only the double precision matrix types in the following sections; the rest work exactly the same way.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.