tmp
This commit is contained in:
parent
a0f0ceca52
commit
a6b57b6639
@ -910,12 +910,10 @@ namespace gctl
|
|||||||
template <typename ArrValType>
|
template <typename ArrValType>
|
||||||
array<ArrValType> array<ArrValType>::operator+ (const array<ArrValType> &b)
|
array<ArrValType> array<ArrValType>::operator+ (const array<ArrValType> &b)
|
||||||
{
|
{
|
||||||
#ifdef GCTL_CHECK_SIZE
|
|
||||||
if (b.size() != length_)
|
if (b.size() != length_)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("[gctl::array<T>::operator+] Incompatible array sizes.");
|
throw std::runtime_error("[gctl::array<T>::operator+] Incompatible array sizes.");
|
||||||
}
|
}
|
||||||
#endif // GCTL_CHECK_SIZE
|
|
||||||
|
|
||||||
array<ArrValType> out(length_);
|
array<ArrValType> out(length_);
|
||||||
for (size_t i = 0; i < length_; i++)
|
for (size_t i = 0; i < length_; i++)
|
||||||
@ -928,12 +926,10 @@ namespace gctl
|
|||||||
template <typename ArrValType>
|
template <typename ArrValType>
|
||||||
array<ArrValType> array<ArrValType>::operator- (const array<ArrValType> &b)
|
array<ArrValType> array<ArrValType>::operator- (const array<ArrValType> &b)
|
||||||
{
|
{
|
||||||
#ifdef GCTL_CHECK_SIZE
|
|
||||||
if (b.size() != length_)
|
if (b.size() != length_)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("[gctl::array<T>::operator-] Incompatible array sizes.");
|
throw std::runtime_error("[gctl::array<T>::operator-] Incompatible array sizes.");
|
||||||
}
|
}
|
||||||
#endif // GCTL_CHECK_SIZE
|
|
||||||
|
|
||||||
array<ArrValType> out(length_);
|
array<ArrValType> out(length_);
|
||||||
for (size_t i = 0; i < length_; i++)
|
for (size_t i = 0; i < length_; i++)
|
||||||
@ -946,12 +942,10 @@ namespace gctl
|
|||||||
template <typename ArrValType>
|
template <typename ArrValType>
|
||||||
array<ArrValType> array<ArrValType>::operator* (const array<ArrValType> &b)
|
array<ArrValType> array<ArrValType>::operator* (const array<ArrValType> &b)
|
||||||
{
|
{
|
||||||
#ifdef GCTL_CHECK_SIZE
|
|
||||||
if (b.size() != length_)
|
if (b.size() != length_)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("[gctl::array<T>::operator*] Incompatible array sizes.");
|
throw std::runtime_error("[gctl::array<T>::operator*] Incompatible array sizes.");
|
||||||
}
|
}
|
||||||
#endif // GCTL_CHECK_SIZE
|
|
||||||
|
|
||||||
array<ArrValType> out(length_);
|
array<ArrValType> out(length_);
|
||||||
for (size_t i = 0; i < length_; i++)
|
for (size_t i = 0; i < length_; i++)
|
||||||
@ -964,12 +958,10 @@ namespace gctl
|
|||||||
template <typename ArrValType>
|
template <typename ArrValType>
|
||||||
array<ArrValType> array<ArrValType>::operator/ (const array<ArrValType> &b)
|
array<ArrValType> array<ArrValType>::operator/ (const array<ArrValType> &b)
|
||||||
{
|
{
|
||||||
#ifdef GCTL_CHECK_SIZE
|
|
||||||
if (b.size() != length_)
|
if (b.size() != length_)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("[gctl::array<T>::operator/] Incompatible array sizes.");
|
throw std::runtime_error("[gctl::array<T>::operator/] Incompatible array sizes.");
|
||||||
}
|
}
|
||||||
#endif // GCTL_CHECK_SIZE
|
|
||||||
|
|
||||||
array<ArrValType> out(length_);
|
array<ArrValType> out(length_);
|
||||||
for (size_t i = 0; i < length_; i++)
|
for (size_t i = 0; i < length_; i++)
|
||||||
@ -982,12 +974,10 @@ namespace gctl
|
|||||||
template <typename ArrValType>
|
template <typename ArrValType>
|
||||||
array<ArrValType>& array<ArrValType>::operator+= (const array<ArrValType> &b)
|
array<ArrValType>& array<ArrValType>::operator+= (const array<ArrValType> &b)
|
||||||
{
|
{
|
||||||
#ifdef GCTL_CHECK_SIZE
|
|
||||||
if (b.size() != length_)
|
if (b.size() != length_)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("[gctl::array<T>::operator+=] Incompatible array sizes.");
|
throw std::runtime_error("[gctl::array<T>::operator+=] Incompatible array sizes.");
|
||||||
}
|
}
|
||||||
#endif // GCTL_CHECK_SIZE
|
|
||||||
|
|
||||||
for (size_t i = 0; i < length_; i++)
|
for (size_t i = 0; i < length_; i++)
|
||||||
{
|
{
|
||||||
@ -999,12 +989,10 @@ namespace gctl
|
|||||||
template <typename ArrValType>
|
template <typename ArrValType>
|
||||||
array<ArrValType>& array<ArrValType>::operator-= (const array<ArrValType> &b)
|
array<ArrValType>& array<ArrValType>::operator-= (const array<ArrValType> &b)
|
||||||
{
|
{
|
||||||
#ifdef GCTL_CHECK_SIZE
|
|
||||||
if (b.size() != length_)
|
if (b.size() != length_)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("[gctl::array<T>::operator-=] Incompatible array sizes.");
|
throw std::runtime_error("[gctl::array<T>::operator-=] Incompatible array sizes.");
|
||||||
}
|
}
|
||||||
#endif // GCTL_CHECK_SIZE
|
|
||||||
|
|
||||||
for (size_t i = 0; i < length_; i++)
|
for (size_t i = 0; i < length_; i++)
|
||||||
{
|
{
|
||||||
@ -1016,12 +1004,10 @@ namespace gctl
|
|||||||
template <typename ArrValType>
|
template <typename ArrValType>
|
||||||
array<ArrValType>& array<ArrValType>::operator*= (const array<ArrValType> &b)
|
array<ArrValType>& array<ArrValType>::operator*= (const array<ArrValType> &b)
|
||||||
{
|
{
|
||||||
#ifdef GCTL_CHECK_SIZE
|
|
||||||
if (b.size() != length_)
|
if (b.size() != length_)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("[gctl::array<T>::operator*=] Incompatible array sizes.");
|
throw std::runtime_error("[gctl::array<T>::operator*=] Incompatible array sizes.");
|
||||||
}
|
}
|
||||||
#endif // GCTL_CHECK_SIZE
|
|
||||||
|
|
||||||
for (size_t i = 0; i < length_; i++)
|
for (size_t i = 0; i < length_; i++)
|
||||||
{
|
{
|
||||||
@ -1033,12 +1019,10 @@ namespace gctl
|
|||||||
template <typename ArrValType>
|
template <typename ArrValType>
|
||||||
array<ArrValType>& array<ArrValType>::operator/= (const array<ArrValType> &b)
|
array<ArrValType>& array<ArrValType>::operator/= (const array<ArrValType> &b)
|
||||||
{
|
{
|
||||||
#ifdef GCTL_CHECK_SIZE
|
|
||||||
if (b.size() != length_)
|
if (b.size() != length_)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("[gctl::array<T>::operator/=] Incompatible array sizes.");
|
throw std::runtime_error("[gctl::array<T>::operator/=] Incompatible array sizes.");
|
||||||
}
|
}
|
||||||
#endif // GCTL_CHECK_SIZE
|
|
||||||
|
|
||||||
for (size_t i = 0; i < length_; i++)
|
for (size_t i = 0; i < length_; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user