Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

""" 

Abstract base class for matrices 

  

For design documentation see matrix/docs.py. 

  

TESTS:: 

  

sage: from sage.matrix.matrix import Matrix 

doctest:...: DeprecationWarning: the module sage.matrix.matrix is deprecated 

See http://trac.sagemath.org/24096 for details. 

sage: Matrix 

<type 'sage.matrix.matrix2.Matrix'> 

""" 

  

################################################################################ 

# Copyright (C) 2005, 2006 William Stein <wstein@gmail.com> 

# 

# Distributed under the terms of the GNU General Public License (GPL). 

# The full text of the GPL is available at: 

# 

# http://www.gnu.org/licenses/ 

################################################################################ 

  

from sage.misc.superseded import deprecation 

deprecation(24096, "the module sage.matrix.matrix is deprecated") 

  

def is_Matrix(x): 

""" 

EXAMPLES:: 

  

sage: from sage.matrix.matrix import is_Matrix 

sage: is_Matrix(0) 

False 

sage: is_Matrix(matrix([[1,2],[3,4]])) 

True 

""" 

return isinstance(x, Matrix) 

  

  

globals()["Matrix"] = Matrix