Source code for pyaml.magnet.matrix
from abc import ABCMeta, abstractmethod
from numpy import array
[docs]
class Matrix(metaclass=ABCMeta):
"""
Abstract class providing access to a matrix
"""
[docs]
@abstractmethod
def get_matrix(self) -> array:
"""Returns the matrix"""
pass