scitbx.matrix
index
/net/chevy/raid1/nat/src/cctbx_project/scitbx/matrix/__init__.py

Note: this module can be used in isolation (without the rest of scitbx).
All external dependencies (other than plain Python) are optional.
 
The primary purpose of this module is to provide compact
implementations of essential matrix/vector algorithms with minimal
external dependencies. Optimizations for execution performance are
used only if compactness is not affected. The scitbx/math module
provides faster C++ alternatives to some algorithms included here.

 
Package Contents
       
row_echelon

 
Classes
       
__builtin__.object
col_mixin
col(col_mixin, rec)
mutable_col(col_mixin, mutable_rec)
rec
diag
identity
inversion
mutable_rec
sqr
sym
row_mixin
mutable_row(row_mixin, mutable_rec)
row(row_mixin, rec)
rt

 
class col(col_mixin, rec)
    
Method resolution order:
col
col_mixin
rec
__builtin__.object

Methods inherited from col_mixin:
__init__(self, elems)

Class methods inherited from col_mixin:
random(cls, n, a, b) from __builtin__.type

Data descriptors inherited from col_mixin:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from rec:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

Data and other attributes inherited from rec:
container_type = <type 'tuple'>
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items
 
If the argument is a tuple, the return value is the same object.

 
class col_mixin(__builtin__.object)
     Methods defined here:
__init__(self, elems)

Class methods defined here:
random(cls, n, a, b) from __builtin__.type

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class diag(rec)
    
Method resolution order:
diag
rec
__builtin__.object

Methods defined here:
__init__(self, diag_elems)

Methods inherited from rec:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

Data descriptors inherited from rec:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from rec:
container_type = <type 'tuple'>
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items
 
If the argument is a tuple, the return value is the same object.

 
class identity(diag)
    
Method resolution order:
identity
diag
rec
__builtin__.object

Methods defined here:
__init__(self, n)

Methods inherited from rec:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

Data descriptors inherited from rec:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from rec:
container_type = <type 'tuple'>
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items
 
If the argument is a tuple, the return value is the same object.

 
class inversion(diag)
    
Method resolution order:
inversion
diag
rec
__builtin__.object

Methods defined here:
__init__(self, n)

Methods inherited from rec:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

Data descriptors inherited from rec:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from rec:
container_type = <type 'tuple'>
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items
 
If the argument is a tuple, the return value is the same object.

 
class mutable_col(col_mixin, mutable_rec)
    
Method resolution order:
mutable_col
col_mixin
mutable_rec
rec
__builtin__.object

Methods inherited from col_mixin:
__init__(self, elems)

Class methods inherited from col_mixin:
random(cls, n, a, b) from __builtin__.type

Data descriptors inherited from col_mixin:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from mutable_rec:
__setitem__(self, i, x)

Data and other attributes inherited from mutable_rec:
container_type = <type 'list'>
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

Methods inherited from rec:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

 
class mutable_rec(rec)
    
Method resolution order:
mutable_rec
rec
__builtin__.object

Methods defined here:
__setitem__(self, i, x)

Data and other attributes defined here:
container_type = <type 'list'>
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

Methods inherited from rec:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__init__(self, elems, n)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

Data descriptors inherited from rec:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class mutable_row(row_mixin, mutable_rec)
    
Method resolution order:
mutable_row
row_mixin
mutable_rec
rec
__builtin__.object

Methods inherited from row_mixin:
__init__(self, elems)

Data descriptors inherited from row_mixin:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from mutable_rec:
__setitem__(self, i, x)

Data and other attributes inherited from mutable_rec:
container_type = <type 'list'>
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

Methods inherited from rec:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

 
class rec(__builtin__.object)
     Methods defined here:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__init__(self, elems, n)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
container_type = <type 'tuple'>
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items
 
If the argument is a tuple, the return value is the same object.

 
class row(row_mixin, rec)
    
Method resolution order:
row
row_mixin
rec
__builtin__.object

Methods inherited from row_mixin:
__init__(self, elems)

Data descriptors inherited from row_mixin:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from rec:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

Data and other attributes inherited from rec:
container_type = <type 'tuple'>
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items
 
If the argument is a tuple, the return value is the same object.

 
class row_mixin(__builtin__.object)
     Methods defined here:
__init__(self, elems)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class rt(__builtin__.object)
     Methods defined here:
__add__(self, other)
__init__(self, tuple_r_t)
__mul__(self, other)
__sub__(self, other)
as_augmented_matrix(self)
as_float(self)
inverse(self)
inverse_assuming_orthogonal_r(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class sqr(rec)
    
Method resolution order:
sqr
rec
__builtin__.object

Methods defined here:
__init__(self, elems)

Methods inherited from rec:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

Data descriptors inherited from rec:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from rec:
container_type = <type 'tuple'>
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items
 
If the argument is a tuple, the return value is the same object.

 
class sym(rec)
    
Method resolution order:
sym
rec
__builtin__.object

Methods defined here:
__init__(self, elems=None, sym_mat3=None)

Methods inherited from rec:
__abs__(self)
__add__(self, other)
__call__(self, ir, ic)
__div__(self, other)
__eq__(self, other)
__floordiv__(self, other)
__getitem__(self, i)
__len__(self)
__mod__(self, other)
__mul__(self, other)
__ne__(self, other)
__neg__(self)
__repr__(self)
__rmul__(self, other)
scalar * matrix
__str__(self)
__sub__(self, other)
__truediv__(self, other)
accute_angle(self, other, value_if_undefined=None, deg=False)
angle(self, other, value_if_undefined=None, deg=False)
as_boost_rational(self)
as_flex_double_matrix(self)
as_flex_int_matrix(self)
as_float(self)
as_int(self, rounding=True)
as_list_of_lists(self)
as_mat3(self)
as_numpy_array(self)
as_sym_mat3(self)
axis_and_angle_as_r3_derivative_wrt_angle(self, angle, deg=False)
axis_and_angle_as_r3_rotation_matrix(self, angle, deg=False)
axis_and_angle_as_unit_quaternion(self, angle, deg=False)
co_factor_matrix_transposed(self)
cos_angle(self, other, value_if_undefined=None)
cross(self, other)
determinant(self)
dot(self, other=None)
each_abs(self)
each_mod_short(self, period=1)
extract_block(self, stop, start=(0, 0), step=(1, 1))
inverse(self)
is_col_zero(self)
Is the translation vector zero
is_r3_identity_matrix(self)
is_r3_rotation_matrix(self, rms_tolerance=1e-08)
is_r3_rotation_matrix_rms(self)
is_square(self)
length = __abs__(self)
length_sq = norm_sq(self)
mathematica_form(self, label='', one_row_per_line=False, format=None, prefix='', matrix_form=False)
matlab_form(self, label='', one_row_per_line=False, format=None, prefix='')
max(self)
max_index(self)
min(self)
min_index(self)
n_columns(self)
n_rows(self)
norm_sq(self)
normalize(self)
ortho(self)
outer_product(self, other=None)
product(self)
quaternion_inverse(self)
r3_rotation_matrix_as_unit_quaternion(self)
resolve_partitions(self)
rotate(self, axis, angle, deg=False)
rotate_2d(self, angle, deg=False)
rotate_around_origin(self, axis, angle, deg=False)
round(self, digits)
rt_for_rotation_around_axis_through(self, point, angle, deg=False)
sum(self)
trace(self)
transpose(self)
transpose_multiply(self, other=None)
unit_quaternion_as_axis_and_angle(self, deg=False)
unit_quaternion_as_r3_rotation_matrix(self)
unit_quaternion_product(self, other)
vector_to_001_rotation(self, sin_angle_is_zero_threshold=1e-10, is_normal_vector_threshold=1e-10)

Data descriptors inherited from rec:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from rec:
container_type = <type 'tuple'>
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items
 
If the argument is a tuple, the return value is the same object.

 
Functions
       
all_in_plane(points, tolerance)
col_list(seq)
cross_product_matrix((v0, v1, v2))
Matrix associated with vector cross product:
  a.cross(b) is equivalent to cross_product_matrix(a) * b
Useful for simplification of equations. Used frequently in
robotics and classical mechanics literature.
determinant_via_lu(m)
dihedral_angle(sites, deg=False)
distance_from_plane(xyz, points)
http://mathworld.wolfram.com/Point-PlaneDistance.html
Given three points describing a plane and a fourth point outside the plane,
return the distance from the fourth point to the plane.
exercise_1()
exercise_2()
flex_proxy()
inverse_via_lu(m)
linearly_dependent_pair_scaling_factor(vector_1, vector_2)
lu_back_substitution(a, n, pivot_indices, b, raise_if_singular=True)
lu_decomposition_in_place(a, n, raise_if_singular=True)
mutable_zeros(n)
numpy_proxy()
plane_equation(point_1, point_2, point_3)
rotate_point_around_axis(axis_point_1, axis_point_2, point, angle, deg=False)
row_list(seq)
sum(iterable)
The sum of the given sequence of matrices
zeros(n, mutable=False)

 
Data
        division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)