libigl v2.5.0
Loading...
Searching...
No Matches
parse_rhs.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_PARSE_RHS_H
9#define IGL_MATLAB_PARSE_RHS_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 mxArray *prhs[],
25 Eigen::PlainObjectBase<DerivedV> & V);
27 template <typename VType>
29 const mxArray *prhs[],
30 Eigen::SparseMatrix<VType> & M);
35 template <typename DerivedV>
37 const mxArray *prhs[],
38 Eigen::PlainObjectBase<DerivedV> & V);
39 }
40};
41#ifndef IGL_STATIC_LIBRARY
42# include "parse_rhs.cpp"
43#endif
44#endif
#define IGL_INLINE
Definition igl_inline.h:15
void parse_rhs_double(const mxArray *prhs[], Eigen::PlainObjectBase< DerivedV > &V)
Reads in a matrix as a double.
void parse_rhs(const mxArray *prhs[], Eigen::SparseMatrix< VType > &M)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void parse_rhs_index(const mxArray *prhs[], Eigen::PlainObjectBase< DerivedV > &V)
Reads in a matrix and subtracts 1.
Definition AABB.h:17