Theoretica
A C++ numerical and automatic mathematical library
vec.h File Reference

Vector class and operations. More...

#include <sstream>
#include <ostream>
#include "../core/error.h"
#include "../core/real_analysis.h"
#include "./algebra.h"
#include <vector>

Go to the source code of this file.

Classes

class  theoretica::vec_iterator< Vector, ReturnType >
 A sequential iterator for traversing vector-like containers. More...
 
class  theoretica::vec< Type, N >
 A statically allocated N-dimensional vector with elements of the given type. More...
 
class  theoretica::vec< Type, 0 >
 

Namespaces

 theoretica
 Main namespace of the library which contains all functions and objects.
 

Functions

template<typename ElementType , typename Type , typename ... Args>
void theoretica::make_vec (vec< ElementType > &v, size_t index, Type last)
 Populates a vector with a single element at the specified index. More...
 
template<typename ElementType , typename Type , typename ... Args>
void theoretica::make_vec (vec< ElementType > &v, size_t index, Type first, Args... elements)
 Populates a vector with multiple elements using variadic arguments. More...
 
template<typename Type , typename ... Args>
vec< Type > theoretica::make_vec (Type first, Args... elements)
 Construct a dynamically allocated vector of type vec<Type> using variadic templates.
 

Detailed Description

Vector class and operations.