資源簡介
vs2015 64bit下編譯Ceres庫所需的第三方庫及編譯完的Ceres庫
代碼片段和文件信息
//?This?file?is?part?of?Eigen?a?lightweight?C++?template?library
//?for?linear?algebra.
//
//?Copyright?(C)?2015?Benoit?Jacob?
//
//?This?Source?Code?Form?is?subject?to?the?terms?of?the?Mozilla
//?Public?License?v.?2.0.?If?a?copy?of?the?MPL?was?not?distributed
//?with?this?file?You?can?obtain?one?at?http://mozilla.org/MPL/2.0/.
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
using?namespace?std;
const?int?default_precision?=?4;
//?see?--only-cubic-sizes
bool?only_cubic_sizes?=?false;
//?see?--dump-tables
bool?dump_tables?=?false;
uint8_t?log2_pot(size_t?x)?{
??size_t?l?=?0;
??while?(x?>>=?1)?l++;
??return?l;
}
uint16_t?compact_size_triple(size_t?k?size_t?m?size_t?n)
{
??return?(log2_pot(k)?<8)?|?(log2_pot(m)?<4)?|?log2_pot(n);
}
//?just?a?helper?to?store?a?triple?of?KMN?sizes?for?matrix?product
struct?size_triple_t
{
??uint16_t?k?m?n;
??size_triple_t()?:?k(0)?m(0)?n(0)?{}
??size_triple_t(size_t?_k?size_t?_m?size_t?_n)?:?k(_k)?m(_m)?n(_n)?{}
??size_triple_t(const?size_triple_t&?o)?:?k(o.k)?m(o.m)?n(o.n)?{}
??size_triple_t(uint16_t?compact)
??{
????k?=?1?<((compact?&?0xf00)?>>?8);
????m?=?1?<((compact?&?0x0f0)?>>?4);
????n?=?1?<((compact?&?0x00f)?>>?0);
??}
??bool?is_cubic()?const?{?return?k?==?m?&&?m?==?n;?}
};
ostream&?operator<<(ostream&?s?const?size_triple_t&?t)
{
??return?s?<“(“?<}
struct?inputfile_entry_t
{
??uint16_t?product_size;
??uint16_t?pot_block_size;
??size_triple_t?nonpot_block_size;
??float?gflops;
};
struct?inputfile_t
{
??enum?class?type_t?{
????unknown
????all_pot_sizes
????default_sizes
??};
??string?filename;
??vector?entries;
??type_t?type;
??inputfile_t(const?string&?fname)
????:?filename(fname)
?????type(type_t::unknown)
??{
????ifstream?stream(filename);
????if?(!stream.is_open())?{
??????cerr?<“couldn‘t?open?input?file:?“?<??????exit(1);
????}
????string?line;
????while?(getline(stream?line))?{
??????if?(line.empty())?continue;
??????if?(line.find(“BEGIN?MEASUREMENTS?ALL?POT?SIZES“)?==?0)?{
????????if?(type?!=?type_t::unknown)?{
??????????cerr?<“Input?file?“?<??????????exit(1);
????????}
????????type?=?type_t::all_pot_sizes;
????????continue;
??????}
??????if?(line.find(“BEGIN?MEASUREMENTS?DEFAULT?SIZES“)?==?0)?{
????????if?(type?!=?type_t::unknown)?{
??????????cerr?<“Input?file?“?<??????????exit(1);
????????}
????????type?=?type_t::default_sizes;
????????continue;
??????}
??????
??????if?(type?==?type_t::unknown)?{
????????continue;
??????}
??????switch(type)?{
????????case?type_t::all_pot_sizes:?{
??????????unsigned?int?product_size?block_size;
??????????float?gf
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???14208512??2018-10-04?15:37??編譯好的庫\Ceres\bin\ceres-debug.dll
?????文件????2204160??2018-10-04?15:32??編譯好的庫\Ceres\bin\ceres.dll
?????文件??????19566??2018-10-04?15:24??編譯好的庫\Ceres\CMake\CeresConfig.cmake
?????文件???????2663??2018-10-04?15:21??編譯好的庫\Ceres\CMake\CeresConfigVersion.cmake
?????文件????????929??2018-10-04?15:24??編譯好的庫\Ceres\CMake\CeresTargets-debug.cmake
?????文件????????917??2018-10-04?15:24??編譯好的庫\Ceres\CMake\CeresTargets-release.cmake
?????文件???????3072??2018-10-04?15:24??編譯好的庫\Ceres\CMake\CeresTargets.cmake
?????文件??????12795??2018-10-01?14:28??編譯好的庫\Ceres\CMake\FindEigen.cmake
?????文件??????27685??2018-10-01?14:28??編譯好的庫\Ceres\CMake\FindGflags.cmake
?????文件??????16008??2018-10-01?14:28??編譯好的庫\Ceres\CMake\FindGlog.cmake
?????文件??????10902??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\autodiff_cost_function.h
?????文件???????6397??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\autodiff_local_parameterization.h
?????文件???????2689??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\ceres.h
?????文件???????4221??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\conditioned_cost_function.h
?????文件???????6362??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\cost_function.h
?????文件??????21622??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\cost_function_to_functor.h
?????文件??????18974??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\covariance.h
?????文件???????3125??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\crs_matrix.h
?????文件??????15962??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\cubic_interpolation.h
?????文件???????5938??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\c_api.h
?????文件??????10582??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\dynamic_autodiff_cost_function.h
?????文件???????2405??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\dynamic_cost_function.h
?????文件???????7728??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\dynamic_cost_function_to_functor.h
?????文件???????7530??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\dynamic_numeric_diff_cost_function.h
?????文件???????2870??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\fpclassify.h
?????文件???????6473??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\gradient_checker.h
?????文件???????5001??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\gradient_problem.h
?????文件??????15238??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\gradient_problem_solver.h
?????文件??????14165??2018-10-01?14:28??編譯好的庫\Ceres\include\ceres\internal\autodiff.h
?????文件???????4170??2018-10-04?15:24??編譯好的庫\Ceres\include\ceres\internal\config.h
............此處省略4403個文件信息
評論
共有 條評論