Resizing a diagonal matrix

Vishwanathan S V N <[email protected]>
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
Can anyone tell me how to resize a diagonal matrix?
I am trying to get the following code snippet to work:

</begin>

#include <mtl/matrix.h>
#include <mtl/mtl.h>

using namespace mtl;

int main()
{
  matrix<double, diagonal<>, dense<>, row_major>::type B(10,10);
  
  B.resize(3, 3);
  print_all_matrix(B);

  return 0;
}

</end>

Another question I have is:

Is it possible to delete a particular row or column from a Matrix in
MTL?

I am a newbie to MTL and am *not* subscribed to the mailing list. So
please send me a cc of your reply to my email id.


vishy

-- 
----------------------------------------------------------------------------
"You are never given a wish without also being given the power to make it come 
true"
Richard Bach, from Illusions
---------------------------------------------------------------------------- 	
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.