libigl v2.5.0
Loading...
Searching...
No Matches
writeDMAT.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_WRITEDMAT_H
9#define IGL_WRITEDMAT_H
10#include "igl_inline.h"
11// See writeDMAT.h for a description of the .dmat file type
12#include <Eigen/Core>
13#include <string>
14#include <vector>
15namespace igl
16{
26 template <typename DerivedW>
28 const std::string file_name,
29 const Eigen::MatrixBase<DerivedW> & W,
30 const bool ascii=true);
32 template <typename Scalar>
34 const std::string file_name,
35 const std::vector<std::vector<Scalar> > & W,
36 const bool ascii=true);
38 template <typename Scalar>
40 const std::string file_name,
41 const std::vector<Scalar > &W,
42 const bool ascii=true);
43}
44
45#ifndef IGL_STATIC_LIBRARY
46# include "writeDMAT.cpp"
47#endif
48
49#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
bool writeDMAT(const std::string file_name, const Eigen::MatrixBase< DerivedW > &W, const bool ascii=true)
Write a matrix using ascii dmat file type.