OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
floatarray.C File Reference
#include "floatarray.h"
#include "intarray.h"
#include "floatmatrix.h"
#include "mathfem.h"
#include "error.h"
#include "datastream.h"
#include <cstdarg>
#include <cstdlib>
#include <cstring>
#include <ostream>
#include <memory>
#include <numeric>
#include <cmath>
#include <iostream>
#include <fstream>
#include <iomanip>

Go to the source code of this file.

Namespaces

 oofem
 the oofem namespace is to define a context or scope in which all oofem names are defined.
 

Macros

#define FAST_RESIZE(newsize)
 

Functions

std::ostream & oofem::operator<< (std::ostream &out, const FloatArray &x)
 
IML compatibility
FloatArray & oofem::operator*= (FloatArray &x, const double &a)
 Vector multiplication by scalar. More...
 
FloatArray oofem::operator* (const double &a, const FloatArray &x)
 
FloatArray oofem::operator* (const FloatArray &x, const double &a)
 
FloatArray oofem::operator+ (const FloatArray &x, const FloatArray &y)
 
FloatArray oofem::operator- (const FloatArray &x, const FloatArray &y)
 
FloatArray & oofem::operator+= (FloatArray &x, const FloatArray &y)
 
FloatArray & oofem::operator-= (FloatArray &x, const FloatArray &y)
 
double oofem::dot (const FloatArray &x, const FloatArray &y)
 
double oofem::norm (const FloatArray &x)
 

Macro Definition Documentation

#define FAST_RESIZE (   newsize)
Value:
if ( (newsize) < this->giveSize() ) { \
this->values.resize((newsize)); \
} else if ( (newsize) > this->giveSize() ) { \
this->values.assign((newsize), 0.); \
}

Definition at line 54 of file floatarray.C.

Referenced by oofem::FloatArray::beDifferenceOf(), oofem::FloatArray::beMaxOf(), oofem::FloatArray::beMinOf(), oofem::FloatArray::beProductOf(), oofem::FloatArray::beScaled(), oofem::FloatArray::beSubArrayOf(), oofem::FloatArray::beTProductOf(), oofem::FloatArray::beVectorProductOf(), and oofem::FloatArray::subtract().


This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:32 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011