Skip to content
Snippets Groups Projects
Commit 039408f8 authored by BIOPZ-Johner Niklaus's avatar BIOPZ-Johner Niklaus
Browse files

Added 3 and 4-dimensional Float matrices.

parent 5635751a
Branches
Tags
No related merge requests found
......@@ -18,7 +18,7 @@
#------------------------------------------------------------------------------
__all__=['CharList','Correl', 'FileLogSink', 'FloatList', 'FloatMatrix', 'GetCurrentLogSink', 'GetPrefixPath', 'GetSharedDataPath', 'GetVerbosityLevel', 'Histogram', 'IntList', 'LogDebug', 'LogError', 'LogInfo', 'LogScript', 'LogSink', 'LogTrace', 'LogVerbose', 'LogWarning', 'Max', 'Mean', 'Median', 'Min', 'MultiLogSink', 'PopLogSink', 'PopVerbosityLevel', 'PushLogSink', 'PushVerbosityLevel', 'Range', 'SetPrefixPath', 'StdDev', 'StreamLogSink', 'StringList', 'StringLogSink', 'Units', 'VERSION', 'VERSION_MAJOR', 'VERSION_MINOR', 'VERSION_PATCH', 'WITH_NUMPY', 'conop', 'geom', 'io', 'mol', 'seq', 'stutil' @ALL_ADDITIONAL_MODULES@]
__all__=['CharList','Correl', 'FileLogSink', 'FloatList', 'FloatMatrix', 'FloatMatrix3', 'FloatMatrix4', 'GetCurrentLogSink', 'GetPrefixPath', 'GetSharedDataPath', 'GetVerbosityLevel', 'Histogram', 'IntList', 'LogDebug', 'LogError', 'LogInfo', 'LogScript', 'LogSink', 'LogTrace', 'LogVerbose', 'LogWarning', 'Max', 'Mean', 'Median', 'Min', 'MultiLogSink', 'PopLogSink', 'PopVerbosityLevel', 'PushLogSink', 'PushVerbosityLevel', 'Range', 'SetPrefixPath', 'StdDev', 'StreamLogSink', 'StringList', 'StringLogSink', 'Units', 'VERSION', 'VERSION_MAJOR', 'VERSION_MINOR', 'VERSION_PATCH', 'WITH_NUMPY', 'conop', 'geom', 'io', 'mol', 'seq', 'stutil' @ALL_ADDITIONAL_MODULES@]
from _ost_base import *
from stutil import *
......
......@@ -114,9 +114,21 @@ BOOST_PYTHON_MODULE(_ost_base)
.def(vector_indexing_suite<std::vector<int> >())
.def(geom::VectorAdditions<IntList>())
;
typedef std::vector< FloatList > FloatMatrix;
class_<FloatMatrix>("FloatMatrix", init<>())
.def(vector_indexing_suite<FloatMatrix>())
;
typedef std::vector< FloatMatrix > FloatMatrix3;
class_<FloatMatrix3>("FloatMatrix3", init<>())
.def(vector_indexing_suite<FloatMatrix3>())
;
typedef std::vector< FloatMatrix3 > FloatMatrix4;
class_<FloatMatrix4>("FloatMatrix4", init<>())
.def(vector_indexing_suite<FloatMatrix4>())
;
;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment