A Boost C++ library directed towards scientific computing on the level of basic linear algebra constructions with matrices and vectors and their corresponding abstract operations.
Questions tagged [boost-ublas]
50 questions
0
votes
1 answer
Subclass of a boost vector in C++
How can I make a subclass of a boost::numeric::ublas::c_vector whose three elements can be accessed with .x .y or .z and have a constructor in the form vec3(float x, float y, float z);. I wanted to use the boost vector because I didn't…

mcjohnalds45
- 667
- 1
- 8
- 16
0
votes
2 answers
Operator overloading Boost ublas Vector
Is there a way I can overload the "/" operator for a boost vector in C++?
#include
#include
#include
#include
#include…

Pat
- 627
- 1
- 9
- 24
0
votes
1 answer
How do I use zero_vector to initialize in boost / c++?
I was looking at one of the answers to:
filling a boost vector or matrix
but I think I'm new to boost(and xcode, for that matter) and am trying to wrap my head around the boost zero_vector.
I tried a simple program that I thought was about the same…

Steve Hwan
- 459
- 1
- 6
- 12
-1
votes
1 answer
Why does the application compile but fails at linking stage, after adding new functions to a class?
My project is being built using the following:
Eclipse,
CMakeLists.txt,
MinGW 4.8.1
The project compiles and application links normally. But after adding,
3 Functions in 'Helper.cpp' and 2 Functions in 'CamData.cpp' , of the type…

Tomar
- 174
- 1
- 12
-1
votes
2 answers
How to emulate back() method for array?
There is no back() method in boost::numeric::ublas::vector,
is it possible to emulate it in user code with preprocessor macro defining somehow array_name[array_name.size()-1]?
array_name[i].rbegin()->operator[] (i) = 1.0 or…

morte
- 325
- 1
- 10