Data Model version 2.0.6
Acknowledgements
Diagram | Class Map | Attribute Map | Method Map | Help | License
Home | Package | Class: { prev | next } | Attribute | Method

Data Obj Type: AbstractMatrix


Abstract Data Obj Type

    nD Matrix of simple data type elements
Attributes
Attribute Methods
Class Methods
Other Methods

Inheritance:


Details:

isChangeable: 0
Mandatory Attributes: data, shape
Known Subtypes: BooleanMatrix, FloatMatrix, IntMatrix, StringMatrix

Attributes

Go to Top
Attribute Type Multiplicity Description
data Any 1..*  
ndim NonNegativeInt 1..1 Derived. Number of dimensions of matrix  
shape PositiveInt 1..* Dimension sizes of matrix - slowest varying first.  
size NonNegativeInt 1..1 Derived. Number of elements in matrix  
strides PositiveInt 0..* Derived. strides[i] is the distance between two points in the linear data representation that differ by 1 in dimension i. strides[i] is equal to the product of the length of all faster-changing dimensions.  
value Any 0..* Derived. Matrix value, represented as nested tuples of elements.  

Inherited Attributes: classNamefieldNamesinConstructormetaclassoverridepackageNamepackageShortNamequalifiedName

Attribute Methods (in class)

Go to Top
Attribute Method Return Parameters Comment
data
getData Any Tuple -
setData - Any List
ndim
getNdim NonNegativeInt - non-std.
shape
getShape PositiveInt Tuple -
setShape - PositiveInt List
size
getSize NonNegativeInt - non-std.
strides
getStrides PositiveInt Tuple - non-std.
value
getValue Any Tuple - non-std.

Class Methods (in class)

Go to Top
Method Return Parameters Comment
None

Other Methods (in class)

Go to Top
Method Return Parameters Comment
pointValue Any NonNegativeInt List non-std. get value of point - type is the type of the matrix element
subMatrix Any List Int List, Int List non-std. get subMatrix of current Matrix, in ranges point:point+width. Type is the same type as the current matrix

Appendix

Go to Top

guid:

www.ccpn.ac.uk_Fogh_2010-05-12-17:30:22_00001

isImplicit:

False

Tag

Value
repositoryId $Id: AbstractMatrix.xml,v 1.7 2011-04-18 12:44:27 rhfogh Exp $

Tag

Value
repositoryTag $Name: not supported by cvs2svn $

Special constructor code:

None

Constraint name:

matrix_size_eq_data_size
Constraint code: self.size == len(self.data)
Attributes using DataObjType: None

  Data Model Version 2.0.6
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Wed Aug 7 15:06:12 2013    from data model package  memops.api.Implementation.AbstractMatrix   revision 1.7  
  Work done by the CCPN team.
www.ccpn.ac.uk