Lines Matching refs:BASE
179 * operators on a vector of type BASE<T>.
181 * BASE only needs to implement operator[] and size().
182 * By simply inheriting from TMatProductOperators<BASE, T> BASE will automatically
186 template <template<typename T> class BASE, typename T>
190 BASE<T>& operator *= (T v) {
191 BASE<T>& lhs(static_cast< BASE<T>& >(*this));
199 BASE<T>& operator /= (T v) {
200 BASE<T>& lhs(static_cast< BASE<T>& >(*this));
209 friend BASE<T> PURE operator *(const BASE<T>& lhs, const BASE<U>& rhs) {
210 return matrix::multiply<BASE<T> >(lhs, rhs);
216 * TMatSquareFunctions implements functions on a matrix of type BASE<T>.
218 * BASE only needs to implement:
225 * By simply inheriting from TMatSquareFunctions<BASE, T> BASE will automatically
229 template<template<typename U> class BASE, typename T>
237 * (the first one, BASE<T> being known).
239 friend BASE<T> PURE inverse(const BASE<T>& m) { return matrix::inverse(m); }
240 friend BASE<T> PURE transpose(const BASE<T>& m) { return matrix::transpose(m); }
241 friend T PURE trace(const BASE<T>& m) { return matrix::trace(m); }
244 template <template<typename T> class BASE, typename T>
248 return matrix::asString( static_cast< const BASE<T>& >(*this) );