libigl v2.5.0
Loading...
Searching...
No Matches
matlab_format.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) 2013 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_FORMAT_H
9#define IGL_MATLAB_FORMAT_H
10
11#include "igl_inline.h"
12
13#include <Eigen/Core>
14#include <Eigen/Sparse>
15#include <string>
16
17namespace igl
18{
43 template <typename DerivedM>
44 IGL_INLINE const Eigen::WithFormat< DerivedM > matlab_format(
45 const Eigen::DenseBase<DerivedM> & M,
46 const std::string name = "");
50 template <typename DerivedM>
52 const Eigen::MatrixBase<DerivedM> & M,
53 const std::string name = "");
71 template <typename DerivedS>
72 IGL_INLINE const std::string matlab_format(
73 const Eigen::SparseMatrix<DerivedS> & S,
74 const std::string name = "");
77 IGL_INLINE const std::string matlab_format(
78 const double v,
79 const std::string name = "");
81 IGL_INLINE const std::string matlab_format(
82 const float v,
83 const std::string name = "");
97 IGL_INLINE Eigen::IOFormat matlab_format();
98}
99
100#ifndef IGL_STATIC_LIBRARY
101# include "matlab_format.cpp"
102#endif
103
104#endif
105
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
Eigen::IOFormat matlab_format()
Just build and return the format.
std::string matlab_format_index(const Eigen::MatrixBase< DerivedM > &M, const std::string name="")
This is an overloaded member function, provided for convenience. It differs from the above function o...