Virtual Testbed
Ship dynamics simulator for extreme conditions
Classes | Functions
blitz Namespace Reference

New and missing Blitz++ functions. More...

Classes

class  Statistics
 Estimates sample mean and variance without overflows. More...
 

Functions

bool isfinite (float rhs) noexcept
 
bool isfinite (double rhs) noexcept
 
 BZ_DECLARE_FUNCTION (isfinite)
 
int is_power_of_two (int n)
 
 BZ_DECLARE_FUNCTION (is_power_of_two)
 
int next_power_of_two (int n)
 
 BZ_DECLARE_FUNCTION (next_power_of_two)
 
float radians_to_degrees (float x)
 
double radians_to_degrees (double x)
 
 BZ_DECLARE_FUNCTION (radians_to_degrees)
 
template<class T , int N>
vtb::core::bstreamoperator<< (vtb::core::bstream &out, const blitz::TinyVector< T, N > &rhs)
 
template<class T , int N>
vtb::core::bstreamoperator>> (vtb::core::bstream &in, blitz::TinyVector< T, N > &rhs)
 
template<class T , int N, int M>
vtb::core::bstreamoperator<< (vtb::core::bstream &out, const blitz::TinyMatrix< T, N, M > &rhs)
 
template<class T , int N, int M>
vtb::core::bstreamoperator>> (vtb::core::bstream &in, blitz::TinyMatrix< T, N, M > &rhs)
 
template<class T , int N>
vtb::core::bstreamoperator<< (vtb::core::bstream &out, const blitz::Array< T, N > &rhs)
 
template<class T , int N>
vtb::core::bstreamoperator>> (vtb::core::bstream &in, blitz::Array< T, N > &rhs)
 
template<class T , int N>
blitz::TinyVector< T, N > zero (blitz::TinyVector< T, N >)
 
template<class T , int N>
blitz::TinyVector< T, N > one (blitz::TinyVector< T, N >)
 
template<class T , int N, int M>
TinyVector< T, N > product (const TinyMatrix< T, N, M > &lhs, const TinyVector< T, M > &rhs)
 
template<class T , int N, int M>
blitz::TinyVector< T, N > operator * (const TinyMatrix< T, N, M > &lhs, const TinyVector< T, M > &rhs)
 
template<class T , int N, int M, int K>
TinyMatrix< T, N, M > product (const TinyMatrix< T, N, K > &lhs, const TinyMatrix< T, K, M > &rhs)
 
template<class T , int N, int M, int K>
TinyMatrix< T, N, M > operator * (const TinyMatrix< T, N, K > &lhs, const TinyMatrix< T, K, M > &rhs)
 
template<class T , int N>
bool near (const blitz::TinyVector< T, N > &lhs, const blitz::TinyVector< T, N > &rhs, const T eps)
 
template<class T , int N>
bool near (const blitz::TinyVector< T, N > &lhs, const T rhs, const T eps)
 
template<int N>
bool empty (const RectDomain< N > &rect)
 
template<class T , int N, int M>
MinMaxValue< TinyVector< T, N > > minmax (Array< TinyVector< T, N >, M > x)
 
template<class T , int N>
blitz::TinyVector< T, N > min_vector (Array< blitz::TinyVector< T, N >, 1 > x)
 
template<class T , int N>
blitz::TinyVector< T, N > max_vector (Array< blitz::TinyVector< T, N >, 1 > x)
 
template<class T , int N, int M>
TinyVector< T, N *M > flatten (const TinyVector< T, N > x[M])
 
template<class T , int N, class ... Args>
TinyVector< T, N *(sizeof...(Args)+1)> flatten (const TinyVector< T, N > &head, const Args &... tail)
 
template<class T , int N, class ... Args>
bits::Tie< T, N, sizeof...(Args)+1 > tie (TinyVector< T, N > &head, Args &... tail)
 
template<class T , int N>
blitz::TinyMatrix< T, N, N > identity_matrix ()
 
template<class T , int N>
blitz::TinyMatrix< T, N, N > const_matrix (const std::array< T, N *N > &rhs)
 
template<class T , int N>
blitz::TinyVector< T, N > const_vector (T value)
 
template<class T , int N>
blitz::TinyVector< T, 1 > slice (const blitz::TinyVector< T, N > &x, int i)
 
template<class T , int N>
blitz::TinyVector< T, 2 > slice (const blitz::TinyVector< T, N > &x, int i, int j)
 
template<class T , int N>
blitz::TinyVector< T, 3 > slice (const blitz::TinyVector< T, N > &x, int i, int j, int k)
 
template<class T , int N>
blitz::TinyVector< T, 4 > slice (const blitz::TinyVector< T, N > &x, int i, int j, int k, int l)
 
template<class T >
clamp (T x, T x_min, T x_max)
 
template<class T , int N>
blitz::TinyVector< T, N > clamp (const blitz::TinyVector< T, N > &x, const blitz::TinyVector< T, N > &x_min, const blitz::TinyVector< T, N > &x_max)
 
int div_ceil (int lhs, int rhs) noexcept
 
 BZ_DECLARE_FUNCTION2 (div_ceil)
 
template<class T , int N>
Statistics< T > statistics (const Array< T, N > &rhs)
 Estimate sample mean and variance. More...
 
template<class T , int N>
variance (const Array< T, N > &rhs)
 Sample variance.
 
template<class T , int N>
const Array< T, N > & real (const Array< T, N > &x)
 
template<class T , int N>
length (const blitz::TinyVector< T, N > &x)
 Computes vector length without overflow.
 
template<class T >
length (const blitz::TinyVector< T, 2 > &x)
 Computes vector length without overflow.
 
template<class T >
length (const blitz::TinyVector< T, 1 > &x)
 
template<class T , int N>
sum_of_squares (const blitz::TinyVector< T, N > &x)
 
template<class T >
sum_of_squares (const blitz::TinyVector< T, 2 > &x)
 
template<class T >
sum_of_squares (const blitz::TinyVector< T, 3 > &x)
 
template<class T >
sum_of_squares (const blitz::TinyVector< T, 4 > &x)
 
template<class T , int N>
distance (const blitz::TinyVector< T, N > &v1, const blitz::TinyVector< T, N > &v2)
 
template<class T , int N>
void transpose (TinyMatrix< T, N, N > &m)
 
template<class T , int N>
TinyVector< T, N-1 > puncture (const TinyVector< T, N > &v, int j)
 Remove j dimension of vector v. More...
 
template<class T , int N>
TinyVector< T, N+1 > restore (const TinyVector< T, N > &v, int j)
 Add dimension j to vector v. More...
 
template<class T >
TinyVector< T, 1 > cross (const TinyVector< T, 2 > &a, const TinyVector< T, 2 > &b)
 Two-dimensional cross product.
 

Detailed Description

New and missing Blitz++ functions.

Function Documentation

◆ puncture()

template<class T , int N>
TinyVector<T,N-1> blitz::puncture ( const TinyVector< T, N > &  v,
int  j 
)
inline

Remove j dimension of vector v.

Date
2019-04-09
Author
Ivan Gankevich

Definition at line 545 of file blitz.hh.

◆ restore()

template<class T , int N>
TinyVector<T,N+1> blitz::restore ( const TinyVector< T, N > &  v,
int  j 
)
inline

Add dimension j to vector v.

Date
2019-04-09
Author
Ivan Gankevich

Definition at line 559 of file blitz.hh.

◆ statistics()

template<class T , int N>
Statistics<T> blitz::statistics ( const Array< T, N > &  rhs)
inline

Estimate sample mean and variance.

Date
2018-11-19
Author
Ivan Gankevich
  • Uses Welford algorithm [welford1962].

Definition at line 445 of file blitz.hh.