GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
fCRowVector.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_fCRowVector_h)
27#define octave_fCRowVector_h 1
28
29#include "octave-config.h"
30
31#include "MArray.h"
32#include "fRowVector.h"
33#include "mx-defs.h"
34
35class OCTAVE_API FloatComplexRowVector : public MArray<FloatComplex>
36{
38
39public:
40
43
46
47 explicit FloatComplexRowVector (const dim_vector& dv)
48 : MArray<FloatComplex> (dv.as_row ()) { }
49
52
55
58
61
63 : MArray<FloatComplex> (a) { }
64
70
72
75
76 // destructive insert/delete/reorder operations
77
82
86 fill (float val, octave_idx_type c1, octave_idx_type c2);
89
90 OCTAVE_API FloatComplexRowVector append (const FloatRowVector& a) const;
92 append (const FloatComplexRowVector& a) const;
93
96
98 conj (const FloatComplexRowVector& a);
99
100 // resize is the destructive equivalent for this one
101
103 extract (octave_idx_type c1, octave_idx_type c2) const;
104
106 extract_n (octave_idx_type c1, octave_idx_type n) const;
107
108 // row vector by row vector -> row vector operations
109
112
113 // row vector by matrix -> row vector
114
117
120
121 // other operations
122
123 OCTAVE_API FloatComplex min () const;
124 OCTAVE_API FloatComplex max () const;
125
126 // i/o
127
128 friend OCTAVE_API std::ostream&
129 operator << (std::ostream& os, const FloatComplexRowVector& a);
130 friend OCTAVE_API std::istream&
131 operator >> (std::istream& is, FloatComplexRowVector& a);
132
134 {
136 }
137
140
141};
142
143// row vector by column vector -> scalar
144
147
150
151// other operations
152
154linspace (const FloatComplex& x1, const FloatComplex& x2, octave_idx_type n);
155
157
158#endif
template std::ostream & operator<<(std::ostream &, const Array< bool > &)
ComplexColumnVector conj(const ComplexColumnVector &a)
#define MARRAY_FORWARD_DEFS(B, R, T)
Definition MArray.h:128
MArray< T > operator*(const MArray< T > &, const T &)
Definition MArray.cc:329
MArray< T > & operator-=(MArray< T > &, const T &)
Definition MArray.cc:240
MArray< T > & operator+=(MArray< T > &, const T &)
Definition MArray.cc:229
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.
Array< T, Alloc > & insert(const Array< T, Alloc > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
void fill(const T &val)
Definition Array-base.cc:96
void clear(octave_idx_type n)
FloatComplexRowVector(octave_idx_type n)
Definition fCRowVector.h:44
void resize(octave_idx_type n, const FloatComplex &rfv=FloatComplex(0))
FloatComplexRowVector(const Array< FloatComplex > &a)
Definition fCRowVector.h:59
~FloatComplexRowVector()=default
FloatComplexRowVector(const FloatComplexRowVector &a)
Definition fCRowVector.h:53
FloatComplexRowVector(const MArray< FloatComplex > &a)
Definition fCRowVector.h:56
FloatComplexRowVector(const FloatRowVector &a)
Definition fCRowVector.h:62
FloatComplexRowVector(octave_idx_type n, const FloatComplex &val)
Definition fCRowVector.h:50
FloatComplexRowVector(const dim_vector &dv)
Definition fCRowVector.h:47
Template for N-dimensional array classes with like-type math operators.
Definition MArray.h:61
MArray< T > transpose() const
Definition MArray.h:97
MArray< T > & operator=(const MArray< T > &a)
Definition MArray.h:79
MArray< T > hermitian(T(*fcn)(const T &)=nullptr) const
Definition MArray.h:100
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
FloatComplexRowVector linspace(const FloatComplex &x1, const FloatComplex &x2, octave_idx_type n)
FloatComplex operator*(const FloatComplexRowVector &a, const ColumnVector &b)
#define OCTAVE_API
Definition main.in.cc:55
std::complex< float > FloatComplex
Definition oct-cmplx.h:34