https://github.com/sueda/eol-cloth
Revision 28fad2e07ec31f0dfd2c681878904e707f6715d5 authored by Shinjiro Sueda on 11 September 2018, 15:17:28 UTC, committed by GitHub on 11 September 2018, 15:17:28 UTC
1 parent 3c3ef84
Tip revision: 28fad2e07ec31f0dfd2c681878904e707f6715d5 authored by Shinjiro Sueda on 11 September 2018, 15:17:28 UTC
Create LICENSE
Create LICENSE
Tip revision: 28fad2e
matlabOutputs.h
#pragma once
#ifndef __matlabOutputs__
#define __matlabOutputs__
#include "external\ArcSim\mesh.hpp"
#define EIGEN_DONT_ALIGN_STATICALLY
#include <Eigen\Dense>
#include <Eigen\Sparse>
#include <string>
void mat_s2s_file(const Eigen::SparseMatrix<double>& mat, const std::string &var_name, const std::string &file_name, const bool& overwrite);
void mat_to_file(const Eigen::MatrixXd& mat, const std::string &var_name, const std::string &file_name, const bool &overwrite);
void mat_to_file(const Eigen::MatrixXi& mat, const std::string &var_name, const std::string &file_name, const bool &overwrite);
void vec_to_file(const Eigen::VectorXd& vec, const std::string &var_name, const std::string &file_name, const bool &overwrite);
void vec_to_file(const Eigen::VectorXi& vec, const std::string &var_name, const std::string &file_name, const bool &overwrite);
void mesh2m(const Mesh& mesh, const std::string &file_name, const bool &overwrite);
void double_to_file(double d, const std::string &var_name, const std::string &file_name, const bool &overwrite);
#endif
Computing file changes ...