proteindf_bridge.matrix モジュール¶
- class proteindf_bridge.matrix.Matrix(*args, **kwargs)[ソース]¶
ベースクラス:
object>>> a = Matrix() >>> a.rows 1 >>> a.cols 1 >>> B = Matrix(3, 5) >>> B.rows 3 >>> B.cols 5 >>> B.set(0, 1, 1.0) >>> math.fabs(B.get(0, 1) - 1.0) < 1.0E-5 True >>> C = Matrix([[7, 4, -1], [3, 0, 5]]) >>> math.fabs(C.get(0, 1) - 4.0) < 1.0E-5 True >>> D = Matrix([[8, 4, 2], [1, 3, -6], [-7, 0, 5]]) >>> CD = C * D >>> (CD == Matrix([[67, 40, -15], [-11, 12, 31]])) True
- property cols¶
- property data¶
numpy配列を返す
- property rows¶
- property type¶