Top
Back: intmat expressions
Forward: intmat operations
FastBack: int
FastForward: intvec
Up: intmat
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.6.3 intmat type cast

Syntax:
intmat ( expression )
intmat ( expression, int_n, int_m )
Type:
intmat
Purpose:
Converts expression to an intmat, where expression must be of type intvec, intmat, or bigintmat. If int_n and int_m are supplied, then they specify the dimension of the intmat. Otherwise, the size (resp. dimensions) of the intmat are determined by the size (resp. dimensions) of the expression. If expression is a bigintmat containing an entry larger the the limit of int, it is set to 0 in the returning intmat.
Example:
 
  intmat(intvec(1));
==> 1
  intmat(intvec(1), 1, 2);
==> 1,0 
  intmat(intvec(1,2,3,4), 2, 2);
==> 1,2,
==> 3,4 
  intmat(_, 2, 3);
==> 1,2,3,
==> 4,0,0 
  intmat(_, 2, 1);
==> 1,2
  bigintmat bim[2][3]=34, 64, 345553234, 35553, 6434, 6563335675;
  intmat(bim);
==> 34,64,345553234,
==> 35553,6434,-2026598917 
See Type conversion and casting; intmat; matrix type cast.

Top Back: intmat expressions Forward: intmat operations FastBack: int FastForward: intvec Up: intmat Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.