Originally Posted by
peacebyinches
???
Uhh. Really? LOL.
1. "Matrix append (const DiagMatrix &a) const" is an Octave class method. It is not an overloaded ostream& operator.
2. Your words seem to imply (since its mostly empty bumbling jargon) that you're attempting to apply vector autoregression (or at least time series analysis) to find inefficiencies between moneylines and spreads. That's like building an F-16 so you can fly to your neighbor's house.
3. 3-dimensional vectors (matrices) are trivial entities in virtually any compiled language such as C++ (see std::vector). The entire append method that you listed is a whole 6 lines of code without error checking.
Code:
Matrix::append (const DiagMatrix& a) const
**
octave_idx_type nr = rows ();
octave_idx_type nc = cols ();
if (nr != a.rows ())
**
(*current_liboctave_error_handler) ("row dimension mismatch for append");
return *this;
**
octave_idx_type nc_insert = nc;
Matrix retval (nr, nc + a.cols ());
retval.insert (*this, 0, 0);
retval.insert (a, 0, nc_insert);
return retval;
**
Any more questions?
P.S. - Do you have any idea what packet switching is? I guess I already know the answer.