GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
fCColVector.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 1994-2025 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_fCColVector_h)
27#define octave_fCColVector_h 1
28
29#include "octave-config.h"
30
31#include "MArray.h"
32#include "mx-defs.h"
33
34class OCTAVE_API FloatComplexColumnVector : public MArray<FloatComplex>
35{
36 friend class FloatComplexMatrix;
38
39public:
40
43
46
48 : MArray<FloatComplex> (dv.as_column ()) { }
49
52
55
58
60 : MArray<FloatComplex> (a.as_column ()) { }
61
63
65 {
67 return *this;
68 }
69
71
74
75 // destructive insert/delete/reorder operations
76
78 insert (const FloatColumnVector& a, octave_idx_type r);
80 insert (const FloatComplexColumnVector& a, octave_idx_type r);
81
82 OCTAVE_API FloatComplexColumnVector& fill (float val);
85 fill (float val, octave_idx_type r1, octave_idx_type r2);
87 fill (const FloatComplex& val, octave_idx_type r1, octave_idx_type r2);
88
91 stack (const FloatComplexColumnVector& a) const;
92
93 OCTAVE_API FloatComplexRowVector hermitian () const;
94 OCTAVE_API FloatComplexRowVector transpose () const;
95
98
99 // resize is the destructive equivalent for this one
100
102 extract (octave_idx_type r1, octave_idx_type r2) const;
103
105 extract_n (octave_idx_type r1, octave_idx_type n) const;
106
107 // column vector by column vector -> column vector operations
108
113
114 // matrix by column vector -> column vector operations
115
118
121
122 // matrix by column vector -> column vector operations
123
126
127 // diagonal matrix by column vector -> column vector operations
128
131
134
137
138 // other operations
139
140 OCTAVE_API FloatComplex min () const;
141 OCTAVE_API FloatComplex max () const;
142
144
145 // i/o
146
147 friend OCTAVE_API std::ostream&
148 operator << (std::ostream& os, const FloatComplexColumnVector& a);
149 friend OCTAVE_API std::istream&
150 operator >> (std::istream& is, FloatComplexColumnVector& a);
151
153 {
155 }
156
159
160};
161
163
164#endif
template std::ostream & operator<<(std::ostream &, const Array< bool > &)
ComplexColumnVector conj(const ComplexColumnVector &a)
ComplexColumnVector operator*(const ComplexMatrix &m, const ColumnVector &a)
ComplexColumnVector operator+=(ComplexColumnVector &x, const Complex &y)
Definition CColVector.h:156
ComplexColumnVector operator-=(ComplexColumnVector &x, const Complex &y)
Definition CColVector.h:156
#define MARRAY_FORWARD_DEFS(B, R, T)
Definition MArray.h:128
std::istream & operator>>(std::istream &is, SparseBoolMatrix &a)
charNDArray max(char d, const charNDArray &m)
Definition chNDArray.cc:230
charNDArray min(char d, const charNDArray &m)
Definition chNDArray.cc:207
N Dimensional Array with copy-on-write semantics.
Definition Array.h:130
void clear()
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
void resize(octave_idx_type n, const FloatComplex &rfv=FloatComplex(0))
FloatComplexColumnVector(octave_idx_type n)
Definition fCColVector.h:44
FloatComplexColumnVector(const MArray< FloatComplex > &a)
Definition fCColVector.h:56
void clear(octave_idx_type n)
FloatComplexColumnVector(const dim_vector &dv)
Definition fCColVector.h:47
~FloatComplexColumnVector()=default
FloatComplexColumnVector(const Array< FloatComplex > &a)
Definition fCColVector.h:59
FloatComplexColumnVector(const FloatComplexColumnVector &a)
Definition fCColVector.h:53
FloatComplexColumnVector(octave_idx_type n, const FloatComplex &val)
Definition fCColVector.h:50
Template for N-dimensional array classes with like-type math operators.
Definition MArray.h:61
MArray< T > & operator=(const MArray< T > &a)
Definition MArray.h:79
Vector representing the dimensions (size) of an Array.
Definition dim-vector.h:90
bool operator!=(const dim_vector &a, const dim_vector &b)
Definition dim-vector.h:532
bool operator==(const dim_vector &a, const dim_vector &b)
Definition dim-vector.h:516
#define OCTAVE_API
Definition main.in.cc:55
std::complex< float > FloatComplex
Definition oct-cmplx.h:34
template int8_t abs(int8_t)