1 /* 2 * $Id$ 3 * 4 * Copyright (c) 2010, Novartis Institutes for BioMedical Research Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are 9 * met: 10 * 11 * * Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * * Redistributions in binary form must reproduce the above 14 * copyright notice, this list of conditions and the following 15 * disclaimer in the documentation and/or other materials provided 16 * with the distribution. 17 * * Neither the name of Novartis Institutes for BioMedical Research Inc. 18 * nor the names of its contributors may be used to endorse or promote 19 * products derived from this software without specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34 %{ 35 #include <Numerics/SquareMatrix.h> 36 #include <Geometry/Transform.h> 37 #include <Geometry/Transform2D.h> 38 #include <Geometry/Transform3D.h> 39 #include <Numerics/SymmMatrix.h> 40 %} 41 42 43 %include <Numerics/Vector.h> 44 %include <Numerics/Matrix.h> 45 %include <Numerics/SquareMatrix.h> 46 %include <Numerics/SymmMatrix.h> 47 48 /* These template definitions need to come after the C++ template definition code, but before the 49 instantiation by other modules. */ 50 51 %template(IntMatrix) RDNumeric::Matrix<int>; 52 %template(DoubleMatrix) RDNumeric::Matrix<double>; 53 %template(IntSymmMatrix) RDNumeric::SymmMatrix<int>; 54 %template(DoubleSymmMatrix) RDNumeric::SymmMatrix<double>; 55 %template(DoubleSquareMatrix) RDNumeric::SquareMatrix<double>; 56 57 %include <Geometry/Transform.h> 58 %include <Geometry/Transform2D.h> 59 %include <Geometry/Transform3D.h> 60 61