blitz++

GoogleTest Fixture for blitz++ class with arguments in constructor

假如想象 提交于 2019-12-13 02:48:06
问题 I have got a question that is related to this one: GTest fixture when constructor takes parameters?. I that question I wanted to know how to set up a GTest fixture when the tested class takes a parameter for the constructor. I tried to replicate the answer for blitz++ instead of arma, and I fail. Any clues? The test class: #include <blitz/array.h> #include <vector> class TClass { private: std::vector<blitz::Array<double,2> * > mats; public: TClass(std::vector<blitz::Array<double,2> * > m_);

blitz++ and visual C++ 2013 namespace conflict with rank type

强颜欢笑 提交于 2019-12-11 10:25:17
问题 I am trying to get the example project Blitz-Examples/array to compile i n Microsoft Visual Studio 2013. We seem to get stuck on the following error: (This error does not exist in VS 2012) error C2955:’std::rank’ use of class template requires template argument list. File blitz/slice.h, line 57. template<> class ArraySectionInfo<Range> { public: static const int isValidType = 1, rank = 1, isPick = 0; }; The example program does not include the type_traits header file. Also in no place the

Get rid of “type qualifier” warnings on functions using the restrict keyword

六眼飞鱼酱① 提交于 2019-12-11 08:19:37
问题 I'm trying to clean up warnings that I'm getting when compiling Blitz++ of the form: /opt/local/include/blitz/tinyvec2.h:261:35: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] /opt/local/include/blitz/tinyvec2.h:264:43: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] /opt/local/include/blitz/tinyvec2.h:267:40: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] <<etc.>> From these kinds of member

Compare blitz++, armadillo, boost::MultiArray

醉酒当歌 提交于 2019-11-30 01:24:24
I did a comparison between blitz++, armadillo, boost::MultiArray with the following code (borrowed from an old post ) #include <iostream> using namespace std; #include <windows.h> #define _SCL_SECURE_NO_WARNINGS #define BOOST_DISABLE_ASSERTS #include <boost/multi_array.hpp> #include <blitz/array.h> #include <armadillo> int main(int argc, char* argv[]) { const int X_SIZE = 1000; const int Y_SIZE = 1000; const int ITERATIONS = 100; unsigned int startTime = 0; unsigned int endTime = 0; // Create the boost array //------------------Measure boost Loop------------------------------------------ {

Compare blitz++, armadillo, boost::MultiArray

青春壹個敷衍的年華 提交于 2019-11-28 22:13:51
问题 I did a comparison between blitz++, armadillo, boost::MultiArray with the following code (borrowed from an old post) #include <iostream> using namespace std; #include <windows.h> #define _SCL_SECURE_NO_WARNINGS #define BOOST_DISABLE_ASSERTS #include <boost/multi_array.hpp> #include <blitz/array.h> #include <armadillo> int main(int argc, char* argv[]) { const int X_SIZE = 1000; const int Y_SIZE = 1000; const int ITERATIONS = 100; unsigned int startTime = 0; unsigned int endTime = 0; // Create