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
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
m_q_upper = property(_libBornAgainBase.Bin1DCVector_m_q_upper_get, _libBornAgainBase.Bin1DCVector_m_q_upper_set, doc=r"""m_q_upper : cvector_t""")
__swig_destroy__ = _libBornAgainBase.delete_Bin1DCVector
# Register Bin1DCVector in _libBornAgainBase:
_libBornAgainBase.Bin1DCVector_swigregister(Bin1DCVector)
class IAxis(object):
r"""
Interface for one-dimensional axes.
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)
def getBin(self, index):
r"""
getBin(IAxis self, size_t index) -> Bin1D
virtual Bin1D IAxis::getBin(size_t index) const =0
retrieve a 1d bin for the given index
"""
return _libBornAgainBase.IAxis_getBin(self, index)
def getMin(self):
r"""
getMin(IAxis self) -> double
virtual double IAxis::getMin() const =0
Returns value of first point of axis.
"""
return _libBornAgainBase.IAxis_getMin(self)
def getMax(self):
r"""
getMax(IAxis self) -> double
virtual double IAxis::getMax() const =0
Returns value of last point of axis.
"""
return _libBornAgainBase.IAxis_getMax(self)
def getBinCenter(self, index):
r"""
getBinCenter(IAxis self, size_t index) -> double
virtual double IAxis::getBinCenter(size_t index) const =0
"""
return _libBornAgainBase.IAxis_getBinCenter(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)
def getBinCenters(self):
r"""
getBinCenters(IAxis self) -> vdouble1d_t
std::vector< double > IAxis::getBinCenters() const
"""
return _libBornAgainBase.IAxis_getBinCenters(self)
def getBinBoundaries(self):
r"""
getBinBoundaries(IAxis self) -> vdouble1d_t
std::vector< double > IAxis::getBinBoundaries() const
"""
return _libBornAgainBase.IAxis_getBinBoundaries(self)
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)
def pyString(self, units, offset):
r"""
pyString(IAxis self, std::string const & units, size_t offset) -> std::string
virtual std::string IAxis::pyString(const std::string &units, size_t offset) const =0
"""
return _libBornAgainBase.IAxis_pyString(self, units, offset)
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
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
# 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)
def getBin(self, index):
r"""
getBin(VariableBinAxis self, size_t index) -> Bin1D
Bin1D VariableBinAxis::getBin(size_t index) const
retrieve a 1d bin for the given index
"""
return _libBornAgainBase.VariableBinAxis_getBin(self, index)
def getMin(self):
r"""
getMin(VariableBinAxis self) -> double
double VariableBinAxis::getMin() const
Returns value of first point of axis.
"""
return _libBornAgainBase.VariableBinAxis_getMin(self)
def getMax(self):
r"""
getMax(VariableBinAxis self) -> double
double VariableBinAxis::getMax() const
Returns value of last point of axis.
"""
return _libBornAgainBase.VariableBinAxis_getMax(self)
def getBinCenter(self, index):
r"""
getBinCenter(VariableBinAxis self, size_t index) -> double
double VariableBinAxis::getBinCenter(size_t index) const
"""
return _libBornAgainBase.VariableBinAxis_getBinCenter(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)
def getBinCenters(self):
r"""
getBinCenters(VariableBinAxis self) -> vdouble1d_t
std::vector< double > VariableBinAxis::getBinCenters() const
"""
return _libBornAgainBase.VariableBinAxis_getBinCenters(self)
def getBinBoundaries(self):
r"""
getBinBoundaries(VariableBinAxis self) -> vdouble1d_t
std::vector<double> VariableBinAxis::getBinBoundaries() const
"""
return _libBornAgainBase.VariableBinAxis_getBinBoundaries(self)
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 pyString(self, units, offset):
r"""
pyString(VariableBinAxis self, std::string const & units, size_t offset) -> std::string
std::string VariableBinAxis::pyString(const std::string &units, size_t offset) const final
"""
return _libBornAgainBase.VariableBinAxis_pyString(self, units, offset)
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
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
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
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
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
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
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 final
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 final
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)
def getBin(self, index):
r"""
getBin(CustomBinAxis self, size_t index) -> Bin1D
Bin1D CustomBinAxis::getBin(size_t index) const
retrieve a 1d bin for the given index
"""
return _libBornAgainBase.CustomBinAxis_getBin(self, index)
def getBinCenters(self):
r"""
getBinCenters(CustomBinAxis self) -> vdouble1d_t
std::vector< double > CustomBinAxis::getBinCenters() const
"""
return _libBornAgainBase.CustomBinAxis_getBinCenters(self)
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)
def getBin(self, index):
r"""
getBin(FixedBinAxis self, size_t index) -> Bin1D
Bin1D FixedBinAxis::getBin(size_t index) const
retrieve a 1d bin for the given index
"""
return _libBornAgainBase.FixedBinAxis_getBin(self, index)
def getMin(self):
r"""
getMin(FixedBinAxis self) -> double
double FixedBinAxis::getMin() const
Returns value of first point of axis.
"""
return _libBornAgainBase.FixedBinAxis_getMin(self)
def getMax(self):
r"""
getMax(FixedBinAxis self) -> double
double FixedBinAxis::getMax() const
Returns value of last point of axis.
"""
return _libBornAgainBase.FixedBinAxis_getMax(self)
def getBinCenter(self, index):
r"""
getBinCenter(FixedBinAxis self, size_t index) -> double
double FixedBinAxis::getBinCenter(size_t index) const
"""
return _libBornAgainBase.FixedBinAxis_getBinCenter(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)
def getBinCenters(self):
r"""
getBinCenters(FixedBinAxis self) -> vdouble1d_t
std::vector< double > FixedBinAxis::getBinCenters() const
"""
return _libBornAgainBase.FixedBinAxis_getBinCenters(self)
def getBinBoundaries(self):
r"""
getBinBoundaries(FixedBinAxis self) -> vdouble1d_t
std::vector< double > FixedBinAxis::getBinBoundaries() const
"""
return _libBornAgainBase.FixedBinAxis_getBinBoundaries(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 pyString(self, units, arg3):
r"""
pyString(FixedBinAxis self, std::string const & units, size_t arg3) -> std::string
std::string FixedBinAxis::pyString(const std::string &units, size_t) const final
"""
return _libBornAgainBase.FixedBinAxis_pyString(self, units, arg3)
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. Pure virtual base class for SphericalPixel and RectangularPixel.
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
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
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)
def getIntegrationFactor(self, x, y):
r"""
getIntegrationFactor(IPixel self, double x, double y) -> double
virtual double IPixel::getIntegrationFactor(double x, double y) const =0
"""
return _libBornAgainBase.IPixel_getIntegrationFactor(self, x, y)
def getSolidAngle(self):
r"""
getSolidAngle(IPixel self) -> double
virtual double IPixel::getSolidAngle() const =0
"""
return _libBornAgainBase.IPixel_getSolidAngle(self)
# Register IPixel in _libBornAgainBase:
_libBornAgainBase.IPixel_swigregister(IPixel)
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
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
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
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
"""
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.
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)"""