00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #if !defined (octave_FloatColumnVector_h)
00025 #define octave_FloatColumnVector_h 1
00026
00027 #include "MArray.h"
00028
00029 #include "mx-defs.h"
00030
00031 class
00032 OCTAVE_API
00033 FloatColumnVector : public MArray<float>
00034 {
00035 public:
00036
00037 FloatColumnVector (void) : MArray<float> () { }
00038
00039 explicit FloatColumnVector (octave_idx_type n) : MArray<float> (n) { }
00040
00041 explicit FloatColumnVector (const dim_vector& dv) : MArray<float> (dv) { }
00042
00043 FloatColumnVector (octave_idx_type n, float val) : MArray<float> (n, val) { }
00044
00045 FloatColumnVector (const FloatColumnVector& a) : MArray<float> (a) { }
00046
00047 FloatColumnVector (const MArray<float>& a) : MArray<float> (a) { }
00048
00049 FloatColumnVector& operator = (const FloatColumnVector& a)
00050 {
00051 MArray<float>::operator = (a);
00052 return *this;
00053 }
00054
00055 bool operator == (const FloatColumnVector& a) const;
00056 bool operator != (const FloatColumnVector& a) const;
00057
00058
00059
00060 FloatColumnVector& insert (const FloatColumnVector& a, octave_idx_type r);
00061
00062 FloatColumnVector& fill (float val);
00063 FloatColumnVector& fill (float val, octave_idx_type r1, octave_idx_type r2);
00064
00065 FloatColumnVector stack (const FloatColumnVector& a) const;
00066
00067 FloatRowVector transpose (void) const;
00068
00069 friend OCTAVE_API FloatColumnVector real (const FloatComplexColumnVector& a);
00070 friend OCTAVE_API FloatColumnVector imag (const FloatComplexColumnVector& a);
00071
00072
00073
00074 FloatColumnVector extract (octave_idx_type r1, octave_idx_type r2) const;
00075
00076 FloatColumnVector extract_n (octave_idx_type r1, octave_idx_type n) const;
00077
00078
00079
00080 friend OCTAVE_API FloatColumnVector operator * (const FloatMatrix& a, const FloatColumnVector& b);
00081
00082
00083
00084 friend OCTAVE_API FloatColumnVector operator * (const FloatDiagMatrix& a, const FloatColumnVector& b);
00085
00086
00087
00088 typedef float (*dmapper) (float);
00089 typedef FloatComplex (*cmapper) (const FloatComplex&);
00090
00091 FloatColumnVector map (dmapper fcn) const;
00092 FloatComplexColumnVector map (cmapper fcn) const;
00093
00094 float min (void) const;
00095 float max (void) const;
00096
00097
00098
00099 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const FloatColumnVector& a);
00100 friend OCTAVE_API std::istream& operator >> (std::istream& is, FloatColumnVector& a);
00101
00102 private:
00103
00104 FloatColumnVector (float *d, octave_idx_type l) : MArray<float> (d, l) { }
00105 };
00106
00107
00108
00109 extern OCTAVE_API FloatColumnVector real (const FloatComplexColumnVector& a);
00110 extern OCTAVE_API FloatColumnVector imag (const FloatComplexColumnVector& a);
00111
00112 MARRAY_FORWARD_DEFS (MArray, FloatColumnVector, float)
00113
00114 #endif
00115
00116
00117
00118
00119
00120