Newer
Older
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
C++ includes: IAxis.h
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
def clone(self):
r"""
clone(IAxis self) -> IAxis
virtual IAxis* IAxis::clone() const =0
clone function
"""
return _libBornAgainBase.IAxis_clone(self)
__swig_destroy__ = _libBornAgainBase.delete_IAxis
def size(self):
r"""
size(IAxis self) -> size_t
virtual size_t IAxis::size() const =0
retrieve the number of bins
"""
return _libBornAgainBase.IAxis_size(self)
def getName(self):
r"""
getName(IAxis self) -> std::string
std::string IAxis::getName() const
retrieve the label of the axis
"""
return _libBornAgainBase.IAxis_getName(self)
def setName(self, name):
r"""
setName(IAxis self, std::string name)
void IAxis::setName(std::string name)
Sets the axis label.
"""
return _libBornAgainBase.IAxis_setName(self, name)
bin(IAxis self, size_t index) -> Bin1D
virtual Bin1D IAxis::bin(size_t index) const =0
retrieve a 1d bin for the given index
"""
return _libBornAgainBase.IAxis_bin(self, index)
def lowerBound(self):
lowerBound(IAxis self) -> double
virtual double IAxis::lowerBound() const =0
Returns value of first point of axis.
"""
return _libBornAgainBase.IAxis_lowerBound(self)
def upperBound(self):
upperBound(IAxis self) -> double
virtual double IAxis::upperBound() const =0
Returns value of last point of axis.
"""
return _libBornAgainBase.IAxis_upperBound(self)
def span(self):
r"""
span(IAxis self) -> double
double IAxis::span() const
Returns distance from first to last point.
"""
return _libBornAgainBase.IAxis_span(self)
binCenter(IAxis self, size_t index) -> double
virtual double IAxis::binCenter(size_t index) const =0
return _libBornAgainBase.IAxis_binCenter(self, index)
def findClosestIndex(self, value):
r"""
findClosestIndex(IAxis self, double value) -> size_t
virtual size_t IAxis::findClosestIndex(double value) const =0
find bin index which is best match for given value
"""
return _libBornAgainBase.IAxis_findClosestIndex(self, value)
def __eq__(self, right):
r"""__eq__(IAxis self, IAxis right) -> bool"""
return _libBornAgainBase.IAxis___eq__(self, right)
def __ne__(self, right):
r"""__ne__(IAxis self, IAxis right) -> bool"""
return _libBornAgainBase.IAxis___ne__(self, right)
binCenters(IAxis self) -> vdouble1d_t
std::vector< double > IAxis::binCenters() const
return _libBornAgainBase.IAxis_binCenters(self)
binBoundaries(IAxis self) -> vdouble1d_t
std::vector< double > IAxis::binBoundaries() const
return _libBornAgainBase.IAxis_binBoundaries(self)
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
def createClippedAxis(self, left, right):
r"""
createClippedAxis(IAxis self, double left, double right) -> IAxis
IAxis * IAxis::createClippedAxis(double left, double right) const
Creates a new clipped axis.
"""
return _libBornAgainBase.IAxis_createClippedAxis(self, left, right)
def contains(self, value):
r"""
contains(IAxis self, double value) -> bool
bool IAxis::contains(double value) const
Returns true if axis contains given point.
"""
return _libBornAgainBase.IAxis_contains(self, value)
# Register IAxis in _libBornAgainBase:
_libBornAgainBase.IAxis_swigregister(IAxis)
def HaveSameNameAndShape(left, right):
r"""
HaveSameNameAndShape(IAxis left, IAxis right) -> bool
bool HaveSameNameAndShape(const IAxis &left, const IAxis &right)
global helper function for comparison of axes
"""
return _libBornAgainBase.HaveSameNameAndShape(left, right)
class VariableBinAxis(IAxis):
r"""
Axis with variable bin size.
C++ includes: VariableBinAxis.h
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, name, nbins, bin_boundaries):
r"""
__init__(VariableBinAxis self, std::string const & name, size_t nbins, vdouble1d_t bin_boundaries) -> VariableBinAxis
VariableBinAxis::VariableBinAxis(const std::string &name, size_t nbins, const std::vector< double > &bin_boundaries)
VariableBinAxis constructor.
Parameters:
-----------
name:
Axis name
nbins:
number of bins
bin_boundaries:
Array of size nbins+1 containing low-edges for each bin and upper edge of last bin.
"""
_libBornAgainBase.VariableBinAxis_swiginit(self, _libBornAgainBase.new_VariableBinAxis(name, nbins, bin_boundaries))
__swig_destroy__ = _libBornAgainBase.delete_VariableBinAxis
def clone(self):
r"""
clone(VariableBinAxis self) -> VariableBinAxis
VariableBinAxis * VariableBinAxis::clone() const
clone function
"""
return _libBornAgainBase.VariableBinAxis_clone(self)
def size(self):
r"""
size(VariableBinAxis self) -> size_t
size_t VariableBinAxis::size() const
retrieve the number of bins
"""
return _libBornAgainBase.VariableBinAxis_size(self)
bin(VariableBinAxis self, size_t index) -> Bin1D
Bin1D VariableBinAxis::bin(size_t index) const
retrieve a 1d bin for the given index
"""
return _libBornAgainBase.VariableBinAxis_bin(self, index)
def lowerBound(self):
lowerBound(VariableBinAxis self) -> double
double VariableBinAxis::lowerBound() const
Returns value of first point of axis.
"""
return _libBornAgainBase.VariableBinAxis_lowerBound(self)
def upperBound(self):
upperBound(VariableBinAxis self) -> double
double VariableBinAxis::upperBound() const
Returns value of last point of axis.
"""
return _libBornAgainBase.VariableBinAxis_upperBound(self)
binCenter(VariableBinAxis self, size_t index) -> double
double VariableBinAxis::binCenter(size_t index) const
return _libBornAgainBase.VariableBinAxis_binCenter(self, index)
def findClosestIndex(self, value):
r"""
findClosestIndex(VariableBinAxis self, double value) -> size_t
size_t VariableBinAxis::findClosestIndex(double value) const
find bin index which is best match for given value
"""
return _libBornAgainBase.VariableBinAxis_findClosestIndex(self, value)
binCenters(VariableBinAxis self) -> vdouble1d_t
std::vector< double > VariableBinAxis::binCenters() const
return _libBornAgainBase.VariableBinAxis_binCenters(self)
binBoundaries(VariableBinAxis self) -> vdouble1d_t
std::vector<double> VariableBinAxis::binBoundaries() const
return _libBornAgainBase.VariableBinAxis_binBoundaries(self)
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
def createClippedAxis(self, left, right):
r"""
createClippedAxis(VariableBinAxis self, double left, double right) -> VariableBinAxis
VariableBinAxis * VariableBinAxis::createClippedAxis(double left, double right) const
Creates a new clipped axis.
"""
return _libBornAgainBase.VariableBinAxis_createClippedAxis(self, left, right)
def __getitem__(self, i):
r"""__getitem__(VariableBinAxis self, unsigned int i) -> double"""
return _libBornAgainBase.VariableBinAxis___getitem__(self, i)
# Register VariableBinAxis in _libBornAgainBase:
_libBornAgainBase.VariableBinAxis_swigregister(VariableBinAxis)
class ConstKBinAxis(VariableBinAxis):
r"""
Axis with fixed bin size in sin(angle) space.
C++ includes: ConstKBinAxis.h
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, name, nbins, start, end):
r"""
__init__(ConstKBinAxis self, std::string const & name, size_t nbins, double start, double end) -> ConstKBinAxis
ConstKBinAxis::ConstKBinAxis(const std::string &name, size_t nbins, double start, double end)
ConstKBinAxis constructor.
Parameters:
-----------
name:
Axis name
nbins:
number of bins
start:
low edge of first bin
end:
upper edge of last bin
"""
_libBornAgainBase.ConstKBinAxis_swiginit(self, _libBornAgainBase.new_ConstKBinAxis(name, nbins, start, end))
__swig_destroy__ = _libBornAgainBase.delete_ConstKBinAxis
def clone(self):
r"""
clone(ConstKBinAxis self) -> ConstKBinAxis
ConstKBinAxis * ConstKBinAxis::clone() const override
clone function
"""
return _libBornAgainBase.ConstKBinAxis_clone(self)
def createClippedAxis(self, left, right):
r"""
createClippedAxis(ConstKBinAxis self, double left, double right) -> ConstKBinAxis
ConstKBinAxis * ConstKBinAxis::createClippedAxis(double left, double right) const override
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
Creates a new clipped axis.
"""
return _libBornAgainBase.ConstKBinAxis_createClippedAxis(self, left, right)
# Register ConstKBinAxis in _libBornAgainBase:
_libBornAgainBase.ConstKBinAxis_swigregister(ConstKBinAxis)
class CustomBinAxis(VariableBinAxis):
r"""
Axis with fixed bin size in sin(angle) space used for numerical comparison with IsGisaxs. The main feature of the axis is that it produces zero bin sizes.
C++ includes: CustomBinAxis.h
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, name, nbins, start, end):
r"""
__init__(CustomBinAxis self, std::string const & name, size_t nbins, double start, double end) -> CustomBinAxis
CustomBinAxis::CustomBinAxis(const std::string &name, size_t nbins, double start, double end)
CustomBinAxis constructor.
Parameters:
-----------
name:
Axis name
nbins:
number of bins
start:
center of first bin (IsGisaxs convention)
end:
center of last bin (IsGisaxs convention)
"""
_libBornAgainBase.CustomBinAxis_swiginit(self, _libBornAgainBase.new_CustomBinAxis(name, nbins, start, end))
__swig_destroy__ = _libBornAgainBase.delete_CustomBinAxis
def clone(self):
r"""
clone(CustomBinAxis self) -> CustomBinAxis
CustomBinAxis * CustomBinAxis::clone() const
clone function
"""
return _libBornAgainBase.CustomBinAxis_clone(self)
bin(CustomBinAxis self, size_t index) -> Bin1D
Bin1D CustomBinAxis::bin(size_t index) const
retrieve a 1d bin for the given index
"""
return _libBornAgainBase.CustomBinAxis_bin(self, index)
binCenters(CustomBinAxis self) -> vdouble1d_t
std::vector< double > CustomBinAxis::binCenters() const
return _libBornAgainBase.CustomBinAxis_binCenters(self)
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
def createClippedAxis(self, left, right):
r"""
createClippedAxis(CustomBinAxis self, double left, double right) -> CustomBinAxis
CustomBinAxis * CustomBinAxis::createClippedAxis(double left, double right) const
Creates a new clipped axis.
"""
return _libBornAgainBase.CustomBinAxis_createClippedAxis(self, left, right)
# Register CustomBinAxis in _libBornAgainBase:
_libBornAgainBase.CustomBinAxis_swigregister(CustomBinAxis)
class FixedBinAxis(IAxis):
r"""
Axis with fixed bin size.
C++ includes: FixedBinAxis.h
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, name, nbins, start, end):
r"""
__init__(FixedBinAxis self, std::string const & name, size_t nbins, double start, double end) -> FixedBinAxis
FixedBinAxis::FixedBinAxis(const std::string &name, size_t nbins, double start, double end)
FixedBinAxis constructor.
Parameters:
-----------
name:
Axis name
nbins:
number of bins
start:
low edge of first bin
end:
upper edge of last bin
"""
_libBornAgainBase.FixedBinAxis_swiginit(self, _libBornAgainBase.new_FixedBinAxis(name, nbins, start, end))
__swig_destroy__ = _libBornAgainBase.delete_FixedBinAxis
def clone(self):
r"""
clone(FixedBinAxis self) -> FixedBinAxis
FixedBinAxis * FixedBinAxis::clone() const
clone function
"""
return _libBornAgainBase.FixedBinAxis_clone(self)
def size(self):
r"""
size(FixedBinAxis self) -> size_t
size_t FixedBinAxis::size() const
retrieve the number of bins
"""
return _libBornAgainBase.FixedBinAxis_size(self)
bin(FixedBinAxis self, size_t index) -> Bin1D
Bin1D FixedBinAxis::bin(size_t index) const
retrieve a 1d bin for the given index
"""
return _libBornAgainBase.FixedBinAxis_bin(self, index)
def lowerBound(self):
lowerBound(FixedBinAxis self) -> double
double FixedBinAxis::lowerBound() const
Returns value of first point of axis.
"""
return _libBornAgainBase.FixedBinAxis_lowerBound(self)
def upperBound(self):
upperBound(FixedBinAxis self) -> double
double FixedBinAxis::upperBound() const
Returns value of last point of axis.
"""
return _libBornAgainBase.FixedBinAxis_upperBound(self)
binCenter(FixedBinAxis self, size_t index) -> double
double FixedBinAxis::binCenter(size_t index) const
return _libBornAgainBase.FixedBinAxis_binCenter(self, index)
def findClosestIndex(self, value):
r"""
findClosestIndex(FixedBinAxis self, double value) -> size_t
size_t FixedBinAxis::findClosestIndex(double value) const
find bin index which is best match for given value
"""
return _libBornAgainBase.FixedBinAxis_findClosestIndex(self, value)
binCenters(FixedBinAxis self) -> vdouble1d_t
std::vector< double > FixedBinAxis::binCenters() const
return _libBornAgainBase.FixedBinAxis_binCenters(self)
binBoundaries(FixedBinAxis self) -> vdouble1d_t
std::vector< double > FixedBinAxis::binBoundaries() const
return _libBornAgainBase.FixedBinAxis_binBoundaries(self)
def createClippedAxis(self, left, right):
r"""
createClippedAxis(FixedBinAxis self, double left, double right) -> FixedBinAxis
FixedBinAxis * FixedBinAxis::createClippedAxis(double left, double right) const
Creates a new clipped axis.
"""
return _libBornAgainBase.FixedBinAxis_createClippedAxis(self, left, right)
def __getitem__(self, i):
r"""__getitem__(FixedBinAxis self, unsigned int i) -> double"""
return _libBornAgainBase.FixedBinAxis___getitem__(self, i)
# Register FixedBinAxis in _libBornAgainBase:
_libBornAgainBase.FixedBinAxis_swigregister(FixedBinAxis)
Interface for a function that maps [0,1]x[0,1] to the kvectors in a pixel. Abstract base class for SphericalPixel and RectangularPixel.
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
C++ includes: IPixel.h
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _libBornAgainBase.delete_IPixel
def clone(self):
r"""
clone(IPixel self) -> IPixel
virtual IPixel* IPixel::clone() const =0
"""
return _libBornAgainBase.IPixel_clone(self)
def createZeroSizePixel(self, x, y):
r"""
createZeroSizePixel(IPixel self, double x, double y) -> IPixel
virtual IPixel* IPixel::createZeroSizePixel(double x, double y) const =0
"""
return _libBornAgainBase.IPixel_createZeroSizePixel(self, x, y)
def getK(self, x, y, wavelength):
r"""
getK(IPixel self, double x, double y, double wavelength) -> kvector_t
virtual kvector_t IPixel::getK(double x, double y, double wavelength) const =0
"""
return _libBornAgainBase.IPixel_getK(self, x, y, wavelength)
integrationFactor(IPixel self, double x, double y) -> double
virtual double IPixel::integrationFactor(double x, double y) const =0
return _libBornAgainBase.IPixel_integrationFactor(self, x, y)
solidAngle(IPixel self) -> double
virtual double IPixel::solidAngle() const =0
return _libBornAgainBase.IPixel_solidAngle(self)
# Register IPixel in _libBornAgainBase:
_libBornAgainBase.IPixel_swigregister(IPixel)
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
class kvector_t(object):
r"""
Forked from CLHEP/Geometry by E. Chernyaev Evgueni.Tcherniaev@cern.ch, then reworked beyond recognition. Removed split of point and vector semantics. Transforms are relegated to a separate class Transform3D. Three-dimensional vector template, for use with integer, double, or complex components.
C++ includes: BasicVector3D.h
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
__init__(kvector_t self) -> kvector_t
__init__(kvector_t self, double const x1, double const y1, double const z1) -> kvector_t
BasicVector3D< T >::BasicVector3D(const T x1, const T y1, const T z1)
Constructor from cartesian components.
"""
_libBornAgainBase.kvector_t_swiginit(self, _libBornAgainBase.new_kvector_t(*args))
def x(self):
r"""
x(kvector_t self) -> double
T BasicVector3D< T >::x() const
Returns x-component in cartesian coordinate system.
"""
return _libBornAgainBase.kvector_t_x(self)
def y(self):
r"""
y(kvector_t self) -> double
T BasicVector3D< T >::y() const
Returns y-component in cartesian coordinate system.
"""
return _libBornAgainBase.kvector_t_y(self)
def z(self):
r"""
z(kvector_t self) -> double
T BasicVector3D< T >::z() const
Returns z-component in cartesian coordinate system.
"""
return _libBornAgainBase.kvector_t_z(self)
def setX(self, a):
r"""
setX(kvector_t self, double const & a)
void BasicVector3D< T >::setX(const T &a)
Sets x-component in cartesian coordinate system.
"""
return _libBornAgainBase.kvector_t_setX(self, a)
def setY(self, a):
r"""
setY(kvector_t self, double const & a)
void BasicVector3D< T >::setY(const T &a)
Sets y-component in cartesian coordinate system.
"""
return _libBornAgainBase.kvector_t_setY(self, a)
def setZ(self, a):
r"""
setZ(kvector_t self, double const & a)
void BasicVector3D< T >::setZ(const T &a)
Sets z-component in cartesian coordinate system.
"""
return _libBornAgainBase.kvector_t_setZ(self, a)
def __iadd__(self, v):
r"""__iadd__(kvector_t self, kvector_t v) -> kvector_t"""
return _libBornAgainBase.kvector_t___iadd__(self, v)
def __isub__(self, v):
r"""__isub__(kvector_t self, kvector_t v) -> kvector_t"""
return _libBornAgainBase.kvector_t___isub__(self, v)
def conj(self):
r"""
conj(kvector_t self) -> kvector_t
BasicVector3D< complex_t > BasicVector3D< complex_t >::conj() const
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
"""
return _libBornAgainBase.kvector_t_conj(self)
def mag2(self):
r"""
mag2(kvector_t self) -> double
double BasicVector3D< T >::mag2() const
Returns magnitude squared of the vector.
"""
return _libBornAgainBase.kvector_t_mag2(self)
def mag(self):
r"""
mag(kvector_t self) -> double
double BasicVector3D< T >::mag() const
Returns magnitude of the vector.
"""
return _libBornAgainBase.kvector_t_mag(self)
def magxy2(self):
r"""
magxy2(kvector_t self) -> double
double BasicVector3D< T >::magxy2() const
Returns squared distance from z axis.
"""
return _libBornAgainBase.kvector_t_magxy2(self)
def magxy(self):
r"""
magxy(kvector_t self) -> double
double BasicVector3D< T >::magxy() const
Returns distance from z axis.
"""
return _libBornAgainBase.kvector_t_magxy(self)
def phi(self):
r"""
phi(kvector_t self) -> double
double BasicVector3D< T >::phi() const
Returns azimuth angle.
"""
return _libBornAgainBase.kvector_t_phi(self)
def theta(self):
r"""
theta(kvector_t self) -> double
double BasicVector3D< T >::theta() const
Returns polar angle.
"""
return _libBornAgainBase.kvector_t_theta(self)
def cosTheta(self):
r"""
cosTheta(kvector_t self) -> double
double BasicVector3D< T >::cosTheta() const
Returns cosine of polar angle.
"""
return _libBornAgainBase.kvector_t_cosTheta(self)
def sin2Theta(self):
r"""
sin2Theta(kvector_t self) -> double
double BasicVector3D< T >::sin2Theta() const
Returns squared sine of polar angle.
"""
return _libBornAgainBase.kvector_t_sin2Theta(self)
def unit(self):
r"""
unit(kvector_t self) -> kvector_t
BasicVector3D< complex_t > BasicVector3D< complex_t >::unit() const
"""
return _libBornAgainBase.kvector_t_unit(self)
def complex(self):
r"""
complex(kvector_t self) -> cvector_t
BasicVector3D<std::complex<double> > BasicVector3D< T >::complex() const
Returns this, trivially converted to complex type.
"""
return _libBornAgainBase.kvector_t_complex(self)
def real(self):
r"""
real(kvector_t self) -> kvector_t
BasicVector3D< double > BasicVector3D< complex_t >::real() const
"""
return _libBornAgainBase.kvector_t_real(self)
def angle(self, v):
r"""
angle(kvector_t self, kvector_t v) -> double
double BasicVector3D< T >::angle(const BasicVector3D< T > &v) const
Returns angle with respect to another vector.
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
"""
return _libBornAgainBase.kvector_t_angle(self, v)
def project(self, v):
r"""
project(kvector_t self, kvector_t v) -> kvector_t
BasicVector3D<T> BasicVector3D< T >::project(const BasicVector3D< T > &v) const
Returns projection of this onto other vector: (this*v)*v/|v|^2.
"""
return _libBornAgainBase.kvector_t_project(self, v)
__swig_destroy__ = _libBornAgainBase.delete_kvector_t
# Register kvector_t in _libBornAgainBase:
_libBornAgainBase.kvector_t_swigregister(kvector_t)
class vector_kvector_t(object):
r"""Proxy of C++ std::vector< BasicVector3D< double > > class."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def iterator(self):
r"""iterator(vector_kvector_t self) -> SwigPyIterator"""
return _libBornAgainBase.vector_kvector_t_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
r"""__nonzero__(vector_kvector_t self) -> bool"""
return _libBornAgainBase.vector_kvector_t___nonzero__(self)
def __bool__(self):
r"""__bool__(vector_kvector_t self) -> bool"""
return _libBornAgainBase.vector_kvector_t___bool__(self)
def __len__(self):
r"""__len__(vector_kvector_t self) -> std::vector< BasicVector3D< double > >::size_type"""
return _libBornAgainBase.vector_kvector_t___len__(self)
def __getslice__(self, i, j):
r"""__getslice__(vector_kvector_t self, std::vector< BasicVector3D< double > >::difference_type i, std::vector< BasicVector3D< double > >::difference_type j) -> vector_kvector_t"""
return _libBornAgainBase.vector_kvector_t___getslice__(self, i, j)
def __setslice__(self, *args):
r"""
__setslice__(vector_kvector_t self, std::vector< BasicVector3D< double > >::difference_type i, std::vector< BasicVector3D< double > >::difference_type j)
__setslice__(vector_kvector_t self, std::vector< BasicVector3D< double > >::difference_type i, std::vector< BasicVector3D< double > >::difference_type j, vector_kvector_t v)
"""
return _libBornAgainBase.vector_kvector_t___setslice__(self, *args)
def __delslice__(self, i, j):
r"""__delslice__(vector_kvector_t self, std::vector< BasicVector3D< double > >::difference_type i, std::vector< BasicVector3D< double > >::difference_type j)"""
return _libBornAgainBase.vector_kvector_t___delslice__(self, i, j)
def __delitem__(self, *args):
r"""
__delitem__(vector_kvector_t self, std::vector< BasicVector3D< double > >::difference_type i)
__delitem__(vector_kvector_t self, PySliceObject * slice)
"""
return _libBornAgainBase.vector_kvector_t___delitem__(self, *args)
def __getitem__(self, *args):
r"""
__getitem__(vector_kvector_t self, PySliceObject * slice) -> vector_kvector_t
__getitem__(vector_kvector_t self, std::vector< BasicVector3D< double > >::difference_type i) -> kvector_t
"""
return _libBornAgainBase.vector_kvector_t___getitem__(self, *args)
def __setitem__(self, *args):
r"""
__setitem__(vector_kvector_t self, PySliceObject * slice, vector_kvector_t v)
__setitem__(vector_kvector_t self, PySliceObject * slice)
__setitem__(vector_kvector_t self, std::vector< BasicVector3D< double > >::difference_type i, kvector_t x)
"""
return _libBornAgainBase.vector_kvector_t___setitem__(self, *args)
def pop(self):
r"""pop(vector_kvector_t self) -> kvector_t"""
return _libBornAgainBase.vector_kvector_t_pop(self)
def append(self, x):
r"""append(vector_kvector_t self, kvector_t x)"""
return _libBornAgainBase.vector_kvector_t_append(self, x)
def empty(self):
r"""empty(vector_kvector_t self) -> bool"""
return _libBornAgainBase.vector_kvector_t_empty(self)
def size(self):
r"""size(vector_kvector_t self) -> std::vector< BasicVector3D< double > >::size_type"""
return _libBornAgainBase.vector_kvector_t_size(self)
def swap(self, v):
r"""swap(vector_kvector_t self, vector_kvector_t v)"""
return _libBornAgainBase.vector_kvector_t_swap(self, v)
def begin(self):
r"""begin(vector_kvector_t self) -> std::vector< BasicVector3D< double > >::iterator"""
return _libBornAgainBase.vector_kvector_t_begin(self)
def end(self):
r"""end(vector_kvector_t self) -> std::vector< BasicVector3D< double > >::iterator"""
return _libBornAgainBase.vector_kvector_t_end(self)
def rbegin(self):
r"""rbegin(vector_kvector_t self) -> std::vector< BasicVector3D< double > >::reverse_iterator"""
return _libBornAgainBase.vector_kvector_t_rbegin(self)
def rend(self):
r"""rend(vector_kvector_t self) -> std::vector< BasicVector3D< double > >::reverse_iterator"""
return _libBornAgainBase.vector_kvector_t_rend(self)
def clear(self):
r"""clear(vector_kvector_t self)"""
return _libBornAgainBase.vector_kvector_t_clear(self)
def get_allocator(self):
r"""get_allocator(vector_kvector_t self) -> std::vector< BasicVector3D< double > >::allocator_type"""
return _libBornAgainBase.vector_kvector_t_get_allocator(self)
def pop_back(self):
r"""pop_back(vector_kvector_t self)"""
return _libBornAgainBase.vector_kvector_t_pop_back(self)
def erase(self, *args):
r"""
erase(vector_kvector_t self, std::vector< BasicVector3D< double > >::iterator pos) -> std::vector< BasicVector3D< double > >::iterator
erase(vector_kvector_t self, std::vector< BasicVector3D< double > >::iterator first, std::vector< BasicVector3D< double > >::iterator last) -> std::vector< BasicVector3D< double > >::iterator
"""
return _libBornAgainBase.vector_kvector_t_erase(self, *args)
def __init__(self, *args):
r"""
__init__(vector_kvector_t self) -> vector_kvector_t
__init__(vector_kvector_t self, vector_kvector_t other) -> vector_kvector_t
__init__(vector_kvector_t self, std::vector< BasicVector3D< double > >::size_type size) -> vector_kvector_t
__init__(vector_kvector_t self, std::vector< BasicVector3D< double > >::size_type size, kvector_t value) -> vector_kvector_t
"""
_libBornAgainBase.vector_kvector_t_swiginit(self, _libBornAgainBase.new_vector_kvector_t(*args))