block module

Python3 wrapper for block 1.5.3 (spin adapted).

class block.DiagonalMatrix(*args, **kwargs)

Bases: object

NEWMAT10 diagonal matrix.

cols
ref

A numpy.ndarray reference.

resize(self: block.DiagonalMatrix, nr: int) → None
rows
class block.Matrix(*args, **kwargs)

Bases: object

NEWMAT10 matrix.

cols
ref

A numpy.ndarray reference.

rows
class block.VectorBool(*args, **kwargs)

Bases: object

append(self: block.VectorBool, x: bool) → None

Add an item to the end of the list

count(self: block.VectorBool, x: bool) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.VectorBool, L: block.VectorBool) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.VectorBool, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.VectorBool, i: int, x: bool) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.VectorBool) -> bool

Remove and return the last item

  1. pop(self: block.VectorBool, i: int) -> bool

Remove and return the item at index i

remove(self: block.VectorBool, x: bool) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.VectorDouble(*args, **kwargs)

Bases: object

append(self: block.VectorDouble, x: float) → None

Add an item to the end of the list

count(self: block.VectorDouble, x: float) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.VectorDouble, L: block.VectorDouble) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.VectorDouble, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.VectorDouble, i: int, x: float) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.VectorDouble) -> float

Remove and return the last item

  1. pop(self: block.VectorDouble, i: int) -> float

Remove and return the item at index i

remove(self: block.VectorDouble, x: float) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.VectorInt(*args, **kwargs)

Bases: object

append(self: block.VectorInt, x: int) → None

Add an item to the end of the list

count(self: block.VectorInt, x: int) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.VectorInt, L: block.VectorInt) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.VectorInt, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.VectorInt, i: int, x: int) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.VectorInt) -> int

Remove and return the last item

  1. pop(self: block.VectorInt, i: int) -> int

Remove and return the item at index i

remove(self: block.VectorInt, x: int) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.VectorMatrix(*args, **kwargs)

Bases: object

append(self: block.VectorMatrix, x: block.Matrix) → None

Add an item to the end of the list

count(self: block.VectorMatrix, x: block.Matrix) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.VectorMatrix, L: block.VectorMatrix) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.VectorMatrix, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.VectorMatrix, i: int, x: block.Matrix) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.VectorMatrix) -> block.Matrix

Remove and return the last item

  1. pop(self: block.VectorMatrix, i: int) -> block.Matrix

Remove and return the item at index i

remove(self: block.VectorMatrix, x: block.Matrix) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.VectorVectorInt(*args, **kwargs)

Bases: object

append(self: block.VectorVectorInt, x: block.VectorInt) → None

Add an item to the end of the list

count(self: block.VectorVectorInt, x: block.VectorInt) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.VectorVectorInt, L: block.VectorVectorInt) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.VectorVectorInt, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.VectorVectorInt, i: int, x: block.VectorInt) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.VectorVectorInt) -> block.VectorInt

Remove and return the last item

  1. pop(self: block.VectorVectorInt, i: int) -> block.VectorInt

Remove and return the item at index i

remove(self: block.VectorVectorInt, x: block.VectorInt) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

class block.VectorVectorMatrix(*args, **kwargs)

Bases: object

append(self: block.VectorVectorMatrix, x: block.VectorMatrix) → None

Add an item to the end of the list

count(self: block.VectorVectorMatrix, x: block.VectorMatrix) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: block.VectorVectorMatrix, L: block.VectorVectorMatrix) -> None

Extend the list by appending all the items in the given list

  1. extend(self: block.VectorVectorMatrix, L: iterable) -> None

Extend the list by appending all the items in the given list

insert(self: block.VectorVectorMatrix, i: int, x: block.VectorMatrix) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: block.VectorVectorMatrix) -> block.VectorMatrix

Remove and return the last item

  1. pop(self: block.VectorVectorMatrix, i: int) -> block.VectorMatrix

Remove and return the item at index i

remove(self: block.VectorVectorMatrix, x: block.VectorMatrix) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.

block.load_rotation_matrix(arg0: block.VectorInt, arg1: block.VectorMatrix, arg2: int) → None

Load rotation matrix.

block.save_rotation_matrix(arg0: block.VectorInt, arg1: block.VectorMatrix, arg2: int) → None

Save rotation matrix.