[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Matrices in liboctave
From: |
Eduardo Gallestey |
Subject: |
Matrices in liboctave |
Date: |
Sat, 08 May 1999 10:49:52 +1000 |
Hi,
I am transforming some of my "octave" code into C++ programs. For that,
of course, I am using "liboctave". Now, by looking at the "liboctave"
code, I have been able to figure out, how most of the operations should
be carried out. However, I've got problems with commands like:
A=[A11 A12; A21 A22];
where Aij are given matrices. I guess, it must be some combination of
template <class T>
void
Array2<T>::resize (int r, int c, const T& val)
with
template <class T>
Array2<T>&
Array2<T>::insert (const Array2<T>& a, int r, int c)
but, what I get is something awkward.
Has somebody tried that? I would appreciate any hints.
Thanks,
Eduardo
-
Dr Eduardo Gallestey
Dept. of Engineering
Faculty of Engineering and Information Technology
Australian National University
Canberra ACT 0200 Australia
Tel : 0061 2 6279 8295
Fax : 0061 2 6249 0506
email: address@hidden
www: : http://spigot.anu.edu.au/~eduardo/home.html
- Matrices in liboctave,
Eduardo Gallestey <=