type(matrix) mod_matrix::m_extract ( type(matrix),intent(in)  m,
integer,intent(in),optional  r_lbound,
integer,intent(in),optional  r_ubound,
integer,intent(in),optional  c_lbound,
integer,intent(in),optional  c_ubound 
)

extract sub matrix of

Author:
Abal-Kassim Cheik Ahamed <akcheik@gmail.com>
Parameters:
m : type(matrix)
r_lbound : lower row boundary (optional)
r_ubound : upper row boundary (optional)
c_lbound : lower column boundary (optional)
c_ubound : upper column boundary (optional)
Date:
29th of March, 2011
Remarks:
Returns:
res : sub matrix element
Exceptions:
boundary :

  • $ 1 \ge r\_lbound \le m%rows $
  • $ 1 \ge r\_ubound \le m%rows $
  • $ 1 \ge c\_lbound \le m%cols $
  • $ 1 \ge c\_ubound \le m%cols $

Definition at line 925 of file matrix.f90.

 All Classes Namespaces Files Functions Variables Defines