libigl v2.5.0
Loading...
Searching...
No Matches
prepare_lhs.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_MATLAB_PREPARE_LHS_H
9#define IGL_MATLAB_PREPARE_LHS_H
10#include "../igl_inline.h"
11#include <mex.h>
12#include <Eigen/Dense>
13#include <Eigen/Sparse>
14namespace igl
15{
16 namespace matlab
17 {
22 template <typename DerivedV>
24 const Eigen::PlainObjectBase<DerivedV> & V,
25 mxArray *plhs[]);
27 template <typename Vtype>
29 const Eigen::SparseMatrix<Vtype> & V,
30 mxArray *plhs[]);
33 template <typename DerivedV>
35 const Eigen::PlainObjectBase<DerivedV> & V,
36 mxArray *plhs[]);
41 template <typename DerivedV>
43 const Eigen::PlainObjectBase<DerivedV> & V,
44 mxArray *plhs[]);
48 template <typename Vtype>
50 const std::vector<Vtype> & V,
51 mxArray *plhs[]);
52 };
53}
54#ifndef IGL_STATIC_LIBRARY
55# include "prepare_lhs.cpp"
56#endif
57#endif
58
#define IGL_INLINE
Definition igl_inline.h:15
void prepare_lhs_index(const Eigen::PlainObjectBase< DerivedV > &V, mxArray *plhs[])
Writes out a matrix and adds 1.
void prepare_lhs_double(const Eigen::PlainObjectBase< DerivedV > &V, mxArray *plhs[])
Writes out a matrix as a double.
void prepare_lhs_logical(const Eigen::PlainObjectBase< DerivedV > &V, mxArray *plhs[])
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition AABB.h:17