Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.maple > #245

Test for Matrix type

From Rainer Rosenthal <r.rosenthal@web.de>
Newsgroups comp.soft-sys.math.maple
Subject Test for Matrix type
Date 2011-09-23 11:42 +0200
Message-ID <9e32joFto3U1@mid.individual.net> (permalink)

Show all headers | View raw


restart:
with(LinearAlgebra):
A := Matrix([[1,2],[3,4]]);
if type(A,integer) then
   print("I'd be suprised");
else
   print("I thought so.");
fi;
if type(A,MatrixType) then
   print("I'd be glad");
else
   print("Oops, why not?");
fi;

Is there a nice substitute for "MatrixType"?

Cheers,
Rainer

Back to comp.soft-sys.math.maple | Previous | NextNext in thread | Find similar


Thread

Test for Matrix type Rainer Rosenthal <r.rosenthal@web.de> - 2011-09-23 11:42 +0200
  Re: Test for Matrix type rouben@shady.(none) (Rouben Rostamian) - 2011-09-23 14:00 +0000
    Re: Test for Matrix type Joe Riel <joer@san.rr.com> - 2011-09-23 07:45 -0700
      Re: Test for Matrix type Rainer Rosenthal <r.rosenthal@web.de> - 2011-09-23 17:03 +0200
    Re: Test for Matrix type Rainer Rosenthal <r.rosenthal@web.de> - 2011-09-23 16:46 +0200

csiph-web