blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 905
values | visit_date timestamp[us]date 2015-08-09 11:21:18 2023-09-06 10:45:07 | revision_date timestamp[us]date 1997-09-14 05:04:47 2023-09-17 19:19:19 | committer_date timestamp[us]date 1997-09-14 05:04:47 2023-09-06 06:22:19 | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-07 00:51:45 2023-09-14 21:58:39 ⌀ | gha_created_at timestamp[us]date 2008-03-27 23:40:48 2023-08-21 23:17:38 ⌀ | gha_language stringclasses 141
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 10.4M | extension stringclasses 115
values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
901044311b4db3998111fe9c4abc06378c8f53c6 | b566c824f7afef50605bc51c254f49f521bde44d | /iyan3d/trunk/assimp-master/code/OptimizeGraph.h | 7b3a1d0de15aac89622b4664868da7781e2118a7 | [
"LGPL-2.0-or-later",
"BSD-3-Clause",
"MIT"
] | permissive | lanping100/Iyan3d | c8292a0a7e4a34b5cb921c00f8bbe4ee30ba78aa | c21bb191cec06039a3f6e9b2f19381cbd7537757 | refs/heads/master | 2020-06-17T13:53:58.907502 | 2019-07-02T07:43:39 | 2019-07-02T07:43:39 | 195,943,149 | 1 | 0 | MIT | 2019-07-09T06:06:31 | 2019-07-09T06:06:31 | null | UTF-8 | C++ | false | false | 4,650 | h | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2016, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following conditions are met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
* Neither the name of the assimp team, nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission of the assimp team.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
----------------------------------------------------------------------
*/
/** @file OptimizeGraph.h
* @brief Declares a post processing step to optimize the scenegraph
*/
#ifndef AI_OPTIMIZEGRAPHPROCESS_H_INC
#define AI_OPTIMIZEGRAPHPROCESS_H_INC
#include "BaseProcess.h"
#include "ProcessHelper.h"
#include <assimp/types.h>
#include <set>
struct aiMesh;
class OptimizeGraphProcessTest;
namespace Assimp {
// -----------------------------------------------------------------------------
/** @brief Postprocessing step to optimize the scenegraph
*
* The implementation tries to merge nodes, even if they use different
* transformations. Animations are preserved.
*
* @see aiProcess_OptimizeGraph for a detailed description of the
* algorithm being applied.
*/
class OptimizeGraphProcess : public BaseProcess
{
public:
OptimizeGraphProcess();
~OptimizeGraphProcess();
public:
// -------------------------------------------------------------------
bool IsActive( unsigned int pFlags) const;
// -------------------------------------------------------------------
void Execute( aiScene* pScene);
// -------------------------------------------------------------------
void SetupProperties(const Importer* pImp);
// -------------------------------------------------------------------
/** @brief Add a list of node names to be locked and not modified.
* @param in List of nodes. See #AI_CONFIG_PP_OG_EXCLUDE_LIST for
* format explanations.
*/
inline void AddLockedNodeList(std::string& in)
{
ConvertListToStrings (in,locked_nodes);
}
// -------------------------------------------------------------------
/** @brief Add another node to be locked and not modified.
* @param name Name to be locked
*/
inline void AddLockedNode(std::string& name)
{
locked_nodes.push_back(name);
}
// -------------------------------------------------------------------
/** @brief Rmeove a node from the list of locked nodes.
* @param name Name to be unlocked
*/
inline void RemoveLockedNode(std::string& name)
{
locked_nodes.remove(name);
}
protected:
void CollectNewChildren(aiNode* nd, std::list<aiNode*>& nodes);
void FindInstancedMeshes (aiNode* pNode);
private:
#ifdef AI_OG_USE_HASHING
typedef std::set<unsigned int> LockedSetType;
#else
typedef std::set<std::string> LockedSetType;
#endif
//! Scene we're working with
aiScene* mScene;
//! List of locked names. Stored is the hash of the name
LockedSetType locked;
//! List of nodes to be locked in addition to those with animations, lights or cameras assigned.
std::list<std::string> locked_nodes;
//! Node counters for logging purposes
unsigned int nodes_in,nodes_out, count_merged;
//! Reference counters for meshes
std::vector<unsigned int> meshes;
};
} // end of namespace Assimp
#endif // AI_OPTIMIZEGRAPHPROCESS_H_INC
| [
"harishankar@19668fbc-42bf-4728-acef-d3afb4f12ffe"
] | harishankar@19668fbc-42bf-4728-acef-d3afb4f12ffe |
43531d1deaf65f0f34c4e7ca7ae8f7babeb5a0cc | 98584e4c0b5ca18185ef6bc36e68fb65d750a20a | /groups/bsl/bsls/bsls_systemtime.t.cpp | 5fc1de5b279037d26d83ed5506f4b24d6c56ce49 | [
"Apache-2.0"
] | permissive | gongfuPanada/bde | 9a14fb24a29ae1cbf9c4610d24ccb2e62ef8e797 | c647bfc3c489ede879221bec9f0d56e0fafe1635 | refs/heads/master | 2020-12-07T17:21:44.418758 | 2014-12-20T22:46:35 | 2014-12-20T22:46:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,181 | cpp | // bsls_systemtime.t.cpp -*-C++-*-
#include <bsls_systemtime.h>
#include <bsls_bsltestutil.h>
#include <bsls_platform.h>
#if defined(BSLS_PLATFORM_OS_WINDOWS)
#include <windows.h>
#else
#include <unistd.h>
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
using namespace BloombergLP;
using namespace std;
// ============================================================================
// TEST PLAN
// ----------------------------------------------------------------------------
// Overview
// --------
// 'bsls_systemtime' defines 'static' functions for obtaining the current clock
// time. The operations for obtaining the real-time clock can be tested
// against the C library function 'time'. Operations for obtaining the
// monotonic clock simply test that the monotonic clock is a uniformly
// increasing value whose relative difference between calls is similar to the
// relative difference between calls to the C library function 'time'. A
// couple negative test cases are defined to allow stress testing of
// monotonicity in ways that are not compatible with automated testing.
//-----------------------------------------------------------------------------
// [ 3] TimeInterval now(SystemClockType::Enum);
// [ 2] TimeInterval nowMonotonicClock();
// [ 1] TimeInterval nowRealtimeClock();
//-----------------------------------------------------------------------------
// [ 4] USAGE EXAMPLE
// [-1] CONCERN: STRESS TEST FOR MONOTONICITY
// [-2] CONCERN: MONOTONICITY UNDER SYSTEM CLOCK CHANGES
// ============================================================================
// STANDARD BSL ASSERT TEST FUNCTION
// ----------------------------------------------------------------------------
namespace {
int testStatus = 0;
void aSsErT(bool condition, const char *message, int line)
{
if (condition) {
printf("Error " __FILE__ "(%d): %s (failed)\n", line, message);
if (0 <= testStatus && testStatus <= 100) {
++testStatus;
}
}
}
} // close unnamed namespace
// ============================================================================
// STANDARD BSL TEST DRIVER MACRO ABBREVIATIONS
// ----------------------------------------------------------------------------
#define ASSERT BSLS_BSLTESTUTIL_ASSERT
#define ASSERTV BSLS_BSLTESTUTIL_ASSERTV
#define LOOP_ASSERT BSLS_BSLTESTUTIL_LOOP_ASSERT
#define LOOP0_ASSERT BSLS_BSLTESTUTIL_LOOP0_ASSERT
#define LOOP1_ASSERT BSLS_BSLTESTUTIL_LOOP1_ASSERT
#define LOOP2_ASSERT BSLS_BSLTESTUTIL_LOOP2_ASSERT
#define LOOP3_ASSERT BSLS_BSLTESTUTIL_LOOP3_ASSERT
#define LOOP4_ASSERT BSLS_BSLTESTUTIL_LOOP4_ASSERT
#define LOOP5_ASSERT BSLS_BSLTESTUTIL_LOOP5_ASSERT
#define LOOP6_ASSERT BSLS_BSLTESTUTIL_LOOP6_ASSERT
#define Q BSLS_BSLTESTUTIL_Q // Quote identifier literally.
#define P BSLS_BSLTESTUTIL_P // Print identifier and value.
#define P_ BSLS_BSLTESTUTIL_P_ // P(X) without '\n'.
#define T_ BSLS_BSLTESTUTIL_T_ // Print a tab (w/o newline).
#define L_ BSLS_BSLTESTUTIL_L_ // current Line number
// ============================================================================
// GLOBAL TYPEDEFS FOR TESTING
// ----------------------------------------------------------------------------
typedef bsls::SystemClockType::Enum ClockType;
typedef bsls::SystemTime Obj;
typedef bsls::TimeInterval TimeInterval;
typedef bsls::SystemClockType SystemClockType;
// ============================================================================
// HELPER FUNCTIONS FOR TESTING
// ----------------------------------------------------------------------------
namespace BloombergLP {
namespace bsls {
void debugprint(const bsls::TimeInterval& timeInterval)
// Print the specified 'timeInterval' to the console. Note that this free
// function overload works in coordination with 'bsls_bsltestutil'.
{
debugprint(timeInterval.totalSecondsAsDouble());
}
} // close package namespace
} // close enterprise namespace
#if defined(BSLS_PLATFORM_OS_WINDOWS)
void sleep(unsigned int seconds)
{
Sleep(seconds * 1000);
}
#endif
// ============================================================================
// MAIN PROGRAM
// ----------------------------------------------------------------------------
int main(int argc, char *argv[])
{
const int test = argc > 1 ? atoi(argv[1]) : 0;
const bool verbose = argc > 2;
const bool veryVerbose = argc > 3;
const bool veryVeryVerbose = argc > 4;
const bool veryVeryVeryVerbose = argc > 5;
(void) veryVeryVerbose;
(void) veryVeryVeryVerbose;
printf("TEST " __FILE__ " CASE %d\n", test);
switch (test) { case 0:
case 4: {
// --------------------------------------------------------------------
// USAGE EXAMPLE
//
// Concerns:
//: 1 The usage example provided in the component header file must
//: compile, link, and run as shown.
//
// Plan:
//: 1 Incorporate usage example from header into test driver, replace
//: leading comment characters with spaces, replace 'assert' with
//: 'ASSERT', and insert 'if (veryVerbose)' before all output
//: operations. (C-1)
//
// Testing:
// USAGE EXAMPLE
// --------------------------------------------------------------------
if (verbose) printf("\nUSAGE EXAMPLE"
"\n=============\n");
///Example 1: Getting Current Wall Clock Time
/// - - - - - - - - - - - - - - - - - - - - -
// The following snippets of code illustrate how to use this utility component
// to obtain the system time by calling 'now' and 'nowRealtimeClock'.
//
// First, we call 'nowRealtimeClock', and set 't1', to the current time
// according to the real-time clock:
//..
bsls::TimeInterval t1 = bsls::SystemTime::nowRealtimeClock();
//
ASSERT(bsls::TimeInterval() != t1);
//..
// Next, we sleep for 1 second:
//..
sleep(1);
//..
// Now, we call 'now', and supply 'e_REALTIME' to indicate a real-time clock
// value should be returned, and then set 't2' to the current time according
// to the real-time clock:
//..
bsls::TimeInterval t2 = bsls::SystemTime::now(
bsls::SystemClockType::e_REALTIME);
//
ASSERT(bsls::TimeInterval() != t2);
//..
// Finally, we verify the interval between 't1' and 't2' is close to 1 second:
//..
bsls::TimeInterval interval = t2 - t1;
//
ASSERT(bsls::TimeInterval(.9) <= interval &&
interval <= bsls::TimeInterval(1.1));
//..
} break;
case 3: {
// --------------------------------------------------------------------
// CLASS METHODS: 'now(SystemClockType::Enum)'
// Ensure the returned 'TimeInterval' value represents the current
// system time as per the specified 'SystemClockType::Enum'.
//
// Concerns:
//: 1 'now(e_REALTIME)' provides the current "wall" time.
//:
//: 2 'now(e_MONOTONIC)' provides the current monotonic clock time.
//
// Plan:
//: 1 Verify 'now(e_REALTIME)' closely approximates the value returned
//: by 'nowRealtimeClock'. (C-1)
//:
//: 2 Verify 'now(e_MONOTONIC)' closely approximates the value returned
//: by 'nowMonotonicClock'. (C-2)
//
// Testing:
// TimeInterval now(SystemClockType::Enum);
// --------------------------------------------------------------------
if (verbose) printf("\nCLASS METHODS: 'now(SystemClockType::Enum)'"
"\n===========================================\n");
if (veryVerbose) printf("\tCompare results w/ monotonic clock\n");
{
TimeInterval first = Obj::nowMonotonicClock();
TimeInterval second = Obj::now(SystemClockType::e_MONOTONIC);
ASSERT(second - first < TimeInterval(1, 0));
}
if (veryVerbose) printf("\tCompare results w/ real-time clock\n");
{
TimeInterval first = Obj::nowRealtimeClock();
TimeInterval second = Obj::now(SystemClockType::e_REALTIME);
ASSERT(second - first < TimeInterval(1, 0));
}
} break;
case 2: {
// --------------------------------------------------------------------
// CLASS METHODS: 'nowMonotonicClock'
//
// Concerns:
//: 1 Consecutive calls to 'nowMonotonicClock' measure time intervals
//: that match those measured by calls to the (previously tested)
//: 'nowRealtimeClock'.
//:
//: 2 That consecutive values do not decrease.
//:
//: 3 QoI: The resolution of the monotonic clock is < 1 second.
//
// Plan:
//: 1 Call 'nowMonotonicClock' in a loop for a couple seconds; verify
//: the results do not decrease between iterations, and that
//: increments of the clock are less than 1 second. (C-1..3)
//
// Testing:
// TimeInterval nowMonotonicClock();
// --------------------------------------------------------------------
if (verbose) printf("\nCLASS METHODS: 'nowMonotonicClock'"
"\n==================================\n");
if (veryVerbose) printf("\tCompare results w/ real-time clock\n");
{
// Test sequential values are increasing and have a resolution of
// less than 1 second.
TimeInterval ONE_SEC = TimeInterval(1, 0);
TimeInterval realOrigin = Obj::nowRealtimeClock();
TimeInterval monoOrigin = Obj::nowMonotonicClock();
TimeInterval prev = monoOrigin;
TimeInterval now = monoOrigin;
while (TimeInterval(1.5) > now - monoOrigin) {
if (veryVerbose) {
P_(prev); P(now);
}
now = Obj::nowMonotonicClock();
ASSERT(prev <= now);
ASSERT(prev + ONE_SEC > now);
prev = now;
}
TimeInterval realInterval = Obj::nowRealtimeClock() - realOrigin;
TimeInterval monoInterval = now - monoOrigin;
TimeInterval delta = monoInterval - realInterval;
const TimeInterval TOLERANCE = TimeInterval(.1);
ASSERT(-TOLERANCE <= delta && delta <= TOLERANCE);
}
} break;
case 1: {
// --------------------------------------------------------------------
// CLASS METHODS: 'nowRealtimeClock'
//
// Concerns:
//: 1 'nowRealtimeClock' returns values that are intervals from the
//: Unix epoch.
//:
//: 2 'nowRealtimeClock' returns time values that are consistent with
//: the current wall clock time.
//:
//: 3 QoI: That consecutive values do not decrease (under normal
//: conditions).
//:
//: 4 QoI: The resolution of the real-time clock is < 1 second.
//
// Plan:
//: 1 Call 'nowRealtimeClock' and verify the value returned, when
//: treated as an interval from the Unix epoch, corresponds to a
//: possible wall clock time. (C-1)
//:
//: 2 Call 'nowRealtimeClock' and compare the value returned to an
//: oracle clock, i.e., the standard library function 'time'. (C-2)
//:
//: 3 Call 'nowRealtimeClock' in a loop for a couple seconds; verify
//: the results do not decrease between iterations, and that
//: increments of the clock are less than 1 second. (C-3..4)
//
// Testing:
// TimeInterval nowRealtimeClock();
// --------------------------------------------------------------------
if (verbose) printf("\nCLASS METHODS: 'nowRealtimeClock'"
"\n=================================\n");
if (veryVerbose) printf("\tTest result is relative to Unix epoch\n");
{
const int64_t SEPT_27_2014 = 1411833584;
const int64_t HUNDRED_YEARS_APPROX = 60ull * 60 * 24 * 365 * 100;
TimeInterval t = Obj::nowRealtimeClock();
ASSERT(SEPT_27_2014 <= t.seconds());
ASSERT(SEPT_27_2014 + HUNDRED_YEARS_APPROX >= t.seconds());
}
if (veryVerbose) printf("\tCompare results to 'time'\n");
{
time_t timeValue = time(0);
TimeInterval systemTimeValue = Obj::nowRealtimeClock();
ASSERT(timeValue - 1 <= systemTimeValue.seconds());
ASSERT(timeValue + 1 >= systemTimeValue.seconds());
}
if (veryVerbose) printf("\tVerify sequential values'\n");
{
// Test sequential values are increasing and have a resolution of
// less than 1 second.
TimeInterval ONE_SEC = TimeInterval(1, 0);
TimeInterval origin = Obj::nowRealtimeClock();
TimeInterval prev = origin;
TimeInterval now = origin;
while (TimeInterval(1.5) > now - origin) {
if (veryVerbose) {
P_(prev); P(now);
}
now = Obj::nowRealtimeClock();
ASSERT(prev <= now);
ASSERT(prev + ONE_SEC > now);
prev = now;
}
}
} break;
case -1: {
// --------------------------------------------------------------------
// CONCERN: STRESS TEST FOR MONOTONICITY
// Verify that each subsequent call to 'now' reports a time that is
// non-decreasing.
//
// Plan:
// Exercise the method in a loop a large, configurable number of
// times, verifying in each iteration that the system time is
// non-decreasing for all support clock types.
//
// Testing:
// CONCERN: STRESS TEST FOR MONOTONICITY
// --------------------------------------------------------------------
if (verbose)
printf("\nCONCERN: STRESS TEST FOR MONOTONICITY"
"\n=====================================\n");
SystemClockType::Enum TYPES[] = {
SystemClockType::e_REALTIME,
SystemClockType::e_MONOTONIC
};
const int NUM_TYPES = sizeof TYPES / sizeof *TYPES;
for (int type = 0; type < NUM_TYPES; ++type) {
SystemClockType::Enum TYPE = TYPES[type];
if (veryVerbose) {
printf("\nType: %s\n", SystemClockType::toAscii(TYPE));
}
TimeInterval TOLERANCE(0.001); // 1ms
enum {
NUM_ITERATIONS = 120,
NUM_TEST_PER_ITERATION = 1000,
OUTPUT_WIDTH = 60,
OUTPUT_FREQ = NUM_ITERATIONS / OUTPUT_WIDTH
};
int iterations = verbose ? atoi(argv[2]) : NUM_ITERATIONS;
int output_freq = iterations < OUTPUT_WIDTH ? 1
: iterations / OUTPUT_WIDTH;
int testsPerIteration = NUM_TEST_PER_ITERATION;
if (veryVerbose) {
testsPerIteration = atoi(argv[3]);
const char P1[] = "0%";
const char P2[] = "50%";
const char P3[] = "100%";
int hl = OUTPUT_WIDTH / 2;
printf("%s", P1);
for (unsigned i=0; i < hl - sizeof(P1) - sizeof(P2) + 4; ++i) {
printf("-");
}
printf("%s", P2);
for (unsigned i = 0; i < hl - sizeof(P3); ++i) {
printf("-");
}
printf("%s\n", P3);
}
for (int i = 0; i < iterations; ++i) {
TimeInterval prev = Obj::now(TYPE);
for (int j = 0; j < testsPerIteration; ++j) {
TimeInterval now = Obj::now(TYPE);
if (prev > now) {
printf("*** Warning: system time is not "
"reliably monotonic on this platform\n."
"*** Allowing a tolerance of 1ms "
"in test driver.\n");
ASSERTV(i, j, prev, now, prev - TOLERANCE <= now);
}
ASSERTV(i, j, prev, now, prev <= now);
prev = now;
}
if (veryVerbose && 0 == i % output_freq) {
if (0 == i % (OUTPUT_WIDTH / 4 * output_freq)) {
printf("|");
fflush(stdout);
}
else {
printf("+");
fflush(stdout);
}
}
}
if (veryVerbose) printf("\n");
}
} break;
case -2: {
// --------------------------------------------------------------------
// CONCERN: MONOTONICITY UNDER SYSTEM CLOCK CHANGES
// Changes to the system clock do not impact the monotonic clock.
//
// Plan:
// Record the current monotonoic and real-time clock times, pause the
// task to allow the current system time to be set to some time in
// the past, then capture the system times again. Ensure that the
// second monotonic clock time is subsequent to the first, while the
// second real clock time is before the first.
//
// Testing:
// CONCERN: MONOTONICITY UNDER SYSTEM CLOCK CHANGES
// --------------------------------------------------------------------
if (verbose)
printf("\nCONCERN: MONOTONICITY UNDER SYSTEM CLOCK CHANGES"
"\n================================================\n");
{
TimeInterval t1Real = Obj::nowRealtimeClock();
TimeInterval t1Monotonic = Obj::nowMonotonicClock();
int dummy;
printf("Set the system clock back and then"
" enter a number to continue\n");
scanf("%d", &dummy);
TimeInterval t2Real = Obj::nowRealtimeClock();
TimeInterval t2Monotonic = Obj::nowMonotonicClock();
ASSERTV(t1Real, t2Real, t2Real < t1Real);
ASSERTV(t1Monotonic, t2Monotonic, t2Monotonic >= t2Monotonic);
if (veryVerbose) {
P(t2Real - t1Real);
P(t2Monotonic - t1Monotonic);
}
}
} break;
default: {
fprintf(stderr, "WARNING: CASE `%d' NOT FOUND.\n", test);
testStatus = -1;
}
}
if (testStatus > 0) {
fprintf(stderr, "Error, non-zero test status = %d.\n", testStatus);
}
return testStatus;
}
// ----------------------------------------------------------------------------
// Copyright 2014 Bloomberg Finance L.P.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------- END-OF-FILE ----------------------------------
| [
"abeels@bloomberg.net"
] | abeels@bloomberg.net |
e332718fe9b624c44caa2589710a86a148eb1f2c | e622336571eb454a9d20f3c3db1855b695876cb8 | /io_test/orangefs_client.cc | 7f3ee79135dea2c919ce08b7498b18fdaa5db430 | [] | no_license | jwma2012/indexfs | 79c14bd8cb51b189a036d062249e87d031e4ca0c | 7d3a60a97b3ac7a616d73095b6f9c62f84e2a598 | refs/heads/master | 2021-08-31T13:27:04.912830 | 2017-12-21T13:16:43 | 2017-12-21T13:16:43 | 115,006,315 | 0 | 0 | null | 2017-12-21T13:00:24 | 2017-12-21T13:00:24 | null | UTF-8 | C++ | false | false | 6,742 | cc | // Copyright (c) 2014 The IndexFS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifdef PVFS
extern "C" {
#include <orange.h>
}
#endif
#include <string>
#include <sstream>
#include "io_client.h"
namespace indexfs { namespace mpi {
DEFINE_string(pvfs_mnt, "/m/pvfs", "OrangeFS mount point (OrangeFS only)");
#ifdef PVFS
namespace {
static
Status CreateErrorStatus(const char* msg, Path &path) {
std::stringstream ss;
ss << msg << ": " << path << ", " << strerror(errno);
return Status::IOError(ss.str());
}
static
Status CreateErrStatusWeak(const char* msg, Path &path) {
if (errno == EEXIST) {
if (FLAGS_print_ops) {
fprintf(stderr, "warning: %s already exists\n", path.c_str());
}
return Status::OK();
}
return CreateErrorStatus(msg, path); // Fall back to normal
}
// An IO client implementation that is backed by OrangeFS, or PVFS version 2.
// OrangeFS exposes two levels of user interface, with one at system level,
// and another user level. This implementation is linked with orangefs user
// level interface, which might be slower than the system level version.
//
class OrangeFSClient: public IOClient {
public:
OrangeFSClient()
: IOClient() {
buffer_.reserve(256);
buffer_.append(FLAGS_pvfs_mnt);
mp_size_ = buffer_.size();
}
virtual ~OrangeFSClient() { }
virtual Status NewFile ( Path &path );
virtual Status MakeDirectory ( Path &path );
virtual Status MakeDirectories ( Path &path );
virtual Status SyncDirectory ( Path &path );
virtual Status ResetMode ( Path &path );
virtual Status GetAttr ( Path &path );
virtual Status ListDirectory ( Path &path );
virtual Status Remove ( Path &path );
virtual Status Rename ( Path &from ,
Path &dest );
virtual Status Init() { return Status::OK() ;}
virtual Status Dispose() { return Status::OK() ;}
protected:
size_t mp_size_; // Length of the mount point path
std::string buffer_; // A buffered path prefixed with the mount point
private:
// No copying allowed
OrangeFSClient(const OrangeFSClient&);
OrangeFSClient& operator=(const OrangeFSClient&);
};
Status OrangeFSClient::NewFile
(Path &path) {
buffer_.resize(mp_size_);
buffer_.append(path);
const char* filename = buffer_.c_str();
if (FLAGS_print_ops) {
printf("mknod %s ... ", filename);
}
int fno = pvfs_creat(filename, (S_IRWXU | S_IRWXG | S_IRWXO));
Status s = fno < 0
? CreateErrorStatus("cannot create file", buffer_)
: Status::OK();
if (fno >= 0) {
pvfs_close(fno);
}
if (FLAGS_print_ops) {
printf("%s\n", s.ToString().c_str());
}
return s;
}
Status OrangeFSClient::MakeDirectory
(Path &path) {
buffer_.resize(mp_size_);
buffer_.append(path);
const char* dirname = buffer_.c_str();
if (FLAGS_print_ops) {
printf("mkdir %s ... ", dirname);
}
Status s = pvfs_mkdir(dirname, (S_IRWXU | S_IRWXG | S_IRWXO)) != 0
? CreateErrorStatus("cannot create directory", buffer_)
: Status::OK();
if (FLAGS_print_ops) {
printf("%s\n", s.ToString().c_str());
}
return s;
}
static
inline size_t NextEntry(Path &path, size_t start) {
size_t pos = path.find('/', start);
return pos == std::string::npos ? path.size() : pos;
}
Status OrangeFSClient::MakeDirectories
(Path &path) {
buffer_.resize(mp_size_);
buffer_.append(path);
if (FLAGS_print_ops) {
printf("mkdirs %s ... \n", buffer_.c_str());
}
std::string parent;
const char* dirname = NULL;
parent.reserve(buffer_.size());
size_t entry = buffer_.rfind('/');
size_t idx = mp_size_;
while ((idx = NextEntry(buffer_, idx + 1)) <= entry) {
parent = buffer_.substr(0, idx);
dirname = parent.c_str();
if (pvfs_access(dirname, F_OK) != 0) {
if (errno == ENOENT) {
if (FLAGS_print_ops) {
printf(" mkdir %s ... ", dirname);
}
Status s = pvfs_mkdir(dirname, (S_IRWXU | S_IRWXG | S_IRWXO)) != 0
? CreateErrStatusWeak("cannot create directory", parent)
: Status::OK();
if (FLAGS_print_ops) {
printf("%s\n", s.ToString().c_str());
}
if (!s.ok()) return s;
} else {
return CreateErrorStatus("cannot access entry", parent);
}
}
} // end while
dirname = buffer_.c_str();
if (FLAGS_print_ops) {
printf(" mkdir %s ... ", dirname);
}
Status s = pvfs_mkdir(dirname, (S_IRWXU | S_IRWXG | S_IRWXO)) != 0
? CreateErrStatusWeak("cannot create directory", buffer_)
: Status::OK();
if (FLAGS_print_ops) {
printf("%s\n", s.ToString().c_str());
printf("mkdirs done\n");
}
return s;
}
Status OrangeFSClient::SyncDirectory
(Path &path) {
return Status::OK(); // Nothing to do
}
Status OrangeFSClient::ResetMode
(Path &path) {
buffer_.resize(mp_size_);
buffer_.append(path);
const char* objname = buffer_.c_str();
if (FLAGS_print_ops) {
printf("chmod %s ... ", objname);
}
Status s = pvfs_chmod(objname, (S_IRWXU | S_IRWXG | S_IRWXO)) != 0
? CreateErrorStatus("cannot chmod on entry", buffer_)
: Status::OK();
if (FLAGS_print_ops) {
printf("%s\n", s.ToString().c_str());
}
return s;
}
Status OrangeFSClient::Rename
(Path &from, Path &dest) {
return Status::Corruption("Op Not Supported", "Rename");
}
Status OrangeFSClient::Remove
(Path &path) {
buffer_.resize(mp_size_);
buffer_.append(path);
const char* objname = buffer_.c_str();
if (FLAGS_print_ops) {
printf("remove %s ... ", objname);
}
Status s = pvfs_unlink(objname) != 0
? CreateErrorStatus("cannot remove entry", buffer_)
: Status::OK();
if (FLAGS_print_ops) {
printf("%s\n", s.ToString().c_str());
}
return s;
}
Status OrangeFSClient::GetAttr
(Path &path) {
buffer_.resize(mp_size_);
buffer_.append(path);
const char* objname = buffer_.c_str();
if (FLAGS_print_ops) {
printf("getattr %s ... ", objname);
}
struct stat stats;
Status s = pvfs_stat(objname, &stats) != 0
? CreateErrorStatus("cannot getattr on entry", buffer_)
: Status::OK();
if (FLAGS_print_ops) {
printf("%s\n", s.ToString().c_str());
}
return s;
}
Status OrangeFSClient::ListDirectory
(Path &path) {
return Status::Corruption("Op Not Supported", "ListDirectory");
}
} /* anonymous namepsace */
#endif
IOClient* IOClient::NewOrangeFSClient() {
#ifdef PVFS
return new OrangeFSClient();
#else
return NULL;
#endif
}
} /* namespace mpi */ } /* namespace indexfs */
| [
"zhengq@cs.cmu.edu"
] | zhengq@cs.cmu.edu |
1a7b7a79e75716ac69765314aaad8f2a9618ffd1 | cc0b29ddd2b5967433a2d8321d95d3e43e58c622 | /leetcode/LRUCache/LRUCache.h | b3fc4632ed4e51d57bb7aabe27143f9b542f1075 | [
"MIT"
] | permissive | yiminyangguang520/myAlgorithmStudy | 81cbba6710d4d52d71240dd01e90e7bf8e3fcce3 | 1917d48debeab33436c705bf9bc2fe9cf49f95cf | refs/heads/master | 2020-12-31T03:43:08.716815 | 2015-10-17T04:41:27 | 2015-10-17T04:41:27 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,478 | h | #ifndef ZL_LRUCACHE_H
#define ZL_LRUCACHE_H
#include <list>
#include <map>
#include <algorithm>
class LRUCache
{
public:
LRUCache(int capacity) : capacity_(capacity)
{
}
int get(int key)
{
MAP::iterator iter = keyIndex_.find(key);
if (iter != keyIndex_.end())
{
valueList_.splice(valueList_.begin(), valueList_, iter->second);
//更新索引
iter->second = valueList_.begin();
int value = iter->second->second;
return value;
}
return -1;
}
void set(int key, int value)
{
MAP::iterator miter = keyIndex_.find(key);
if (miter != keyIndex_.end()) //存在
{
if (miter->second->second == value) //且相等,直接返回
return ;
remove(key); //先移除
}
//更新缓存
valueList_.push_front(std::make_pair(key, value));
//更新访问索引
LIST::iterator liter = valueList_.begin();
keyIndex_[key] = liter;
//是否超载
if (keyIndex_.size() > capacity_)
{
liter = valueList_.end();
--liter;
remove(liter->first);
}
}
private:
bool remove(const int& key)
{
MAP::iterator iter = keyIndex_.find(key);
if (iter == keyIndex_.end())
return false;
valueList_.erase(iter->second);
keyIndex_.erase(iter);
return true;
}
private:
typedef std::list<std::pair<int, int> > LIST;
typedef std::map<int, typename LIST::iterator> MAP;
LIST valueList_;
MAP keyIndex_;
size_t capacity_;
};
#endif /* ZL_LRUCACHE_H */ | [
"lizhenghn@gmail.com"
] | lizhenghn@gmail.com |
bd29c2987823c3105dcb756fc9d3f1dc8bdcb123 | 66e457f024afcd0f9e9002f1021b09bc44368973 | /codeup_c++/1098.cpp | 59ca364475e1c4a27dcad4a51cc722e3b6e6f8e1 | [] | no_license | EunSeong-Seo/coding_test | 75aa6e08daa819f97cec3280abe11ec619d6661d | 3afe9af737260cf3d53acb56fa8d14ce0ca81904 | refs/heads/master | 2023-05-13T23:38:52.099302 | 2021-05-29T14:08:38 | 2021-05-29T14:08:38 | 341,887,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 482 | cpp | #include <stdio.h>
int main()
{
int w,h;
int n;
scanf("%d %d",&w,&h);
int a[w+1][h+1]={};
scanf("%d", &n);
int l[n],d[n],x[n],y[n];
for (int i=1;i<=n;i++)
{
scanf("%d %d %d %d",&l[i],&d[i],&x[i],&y[i]);
if(d[i]==0){
for(int j=0;j<l[i];j++){
a[x[i]][y[i]+j]=1;
}
}
else if(d[i]==1){
for(int j=0;j<l[i];j++){
a[x[i]+j][y[i]]=1;
}
}
}
for (int i=1;i<=w;i++)
{
for (int j=1;j<=h;j++){
printf("%d ",a[i][j]);}
printf("\n");}
}
| [
"seoun4612@gmail.com"
] | seoun4612@gmail.com |
801256c876b4b3e1d97a9185b7ea2dd531cfb2ac | 38d50a38198640000d4e6cf8050de925ec244a1a | /zadanie/wallet_example.cc | 8c3549b74326a7cb5712160731dde2f39a6287dc | [] | no_license | a-zapala/wallet | 68a77cb1b12107c9efee007da4a6e09b7648b7af | 5054c558bfccb295b7e1a01f371767e6bf2d5a64 | refs/heads/master | 2020-04-06T16:27:29.501665 | 2019-05-14T12:41:17 | 2019-05-14T12:41:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,121 | cc | #include "../src/wallet.h"
#include <cassert>
#include <iostream>
static const uint UNITS_IN_B = 100000000;
using std::move;
int main() {
assert(Empty() == 0);
assert(Empty() < Wallet(1));
assert(Empty().getUnits() == 0);
assert(Empty().opSize() == 1);
assert(Empty()[0].getUnits() == 0);
Wallet w1;
assert(w1 == Empty());
assert(w1.opSize() == 1);
Wallet w2(1), w3(1);
assert(w2.opSize() == 1);
assert(w2.getUnits() == UNITS_IN_B);
assert(Wallet::fromBinary("100") == Wallet(4));
assert(Wallet(" 1.2000 ") == Wallet("1,2"));
assert(Wallet(2) + w2 == Wallet(3));
assert(Wallet(1) + Wallet(2) == Wallet(3));
assert(1 + 2 == Wallet(3));
Wallet w4;
assert(w4.opSize() == 1);
w4 += 2;
assert(w4.opSize() == 2);
assert(w4[0] <= w4[1]);
assert(w4[1].getUnits() == w4.getUnits());
w4 *= 3;
assert(w4.opSize() == 3);
assert(w4[2].getUnits() == 6 * UNITS_IN_B);
assert(Wallet(move(w4)).opSize() == 4);
Wallet w5{2};
Wallet w6 = Wallet(10) - w5;
assert(w5 == Wallet(4));
assert(w6 == Wallet(8));
}
| [
"zapala333@gmail.com"
] | zapala333@gmail.com |
ee1dfacbdd241d371bb8e005d64d4d979c603721 | b1a2bacb8f275e2ccaa5c53b311ee24e6bb520aa | /p48_rotate_image.cpp | f9bda5ee632e40414322d2fc89ed70b7bf7befdf | [] | no_license | angtylook/happycpp | 0eb8a8bf0f190369dafd0190e144da7b633bc7ef | c24d6b7991a62f95354bf750bdc9cb55c4657f2b | refs/heads/master | 2021-11-17T20:49:46.100409 | 2021-08-15T09:00:41 | 2021-08-15T09:00:41 | 139,601,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | cpp | #include <algorithm>
#include <iostream>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "base/util.h"
class Solution {
public:
void rotate(std::vector<std::vector<int>>& matrix) {
for (size_t r = 0; r < matrix.size()/2; r++) {
size_t len = matrix.size() - r-1;
for (size_t c = r; c < matrix.size() - r-1; c++) {
int temp = matrix[c][len];
matrix[c][len] = matrix[r][c];
std::swap(temp, matrix[len][len-(c-r)]);
std::swap(temp, matrix[len-(c-r)][r]);
std::swap(temp, matrix[r][c]);
}
}
}
};
int main(int argc, const char* argv[]) {
Solution solution;
std::vector<std::vector<int>> matrix;
const int n = 2;
int cnt = 1;
for (int i = 0; i < n; i++) {
int c = n;
std::vector<int> row;
while (c > 0) {
row.push_back(cnt++);
c--;
}
matrix.push_back(row);
}
solution.rotate(matrix);
for (auto& v : matrix) {
std::cout << v << std::endl;
}
return 0;
}
| [
"lookto2008@gmail.com"
] | lookto2008@gmail.com |
cf169cf1d1ff267348ea30e6a840e5d2b43015bf | a2f9811fda4e4da5b02cacc948b1270bd4fce436 | /visual_odometry_2/src/frame.cpp | df0140fa3bdc77e5378244a1ea30956fdd60a055 | [
"MIT"
] | permissive | LSXiang/Practice-on-SLAM | 7268f083fc6159a2bcecd5e464c09caa770e19bf | 1173bbab4e50a29a61d3affb23ceca32bcc0bf97 | refs/heads/master | 2020-03-15T00:38:16.591147 | 2019-04-01T15:05:42 | 2019-04-01T15:05:42 | 131,873,868 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,972 | cpp | /**
* @file frame.cpp
* @version v1.1.0
* @date Dec,12 2017
* @author jacob.lin
*
* @note ver1.1.0(Dec,22 2017) : add map point storage mechanism to create local-map perfect visual odometry
*/
#include "frame.h"
namespace visual_odometry
{
Frame::Frame() : _id(-1), _time_stamp(-1), _camera(nullptr), _is_key_frame(false)
{
}
Frame::Frame(long id, double time_stamp, Sophus::SE3 T_c_w, Camera::Ptr camera, cv::Mat color, cv::Mat depth) : \
_id(id), \
_time_stamp(time_stamp), \
_T_c_w(T_c_w), \
_camera(camera), \
_color(color), \
_depth(depth), \
_is_key_frame(false)
{
}
Frame::~Frame()
{
}
Frame::Ptr Frame::createFrame()
{
static long factory_id = 0;
return Frame::Ptr(new Frame(factory_id ++));
}
double Frame::findDepth(const cv::KeyPoint& kp)
{
int x = cvRound(kp.pt.x);
int y = cvRound(kp.pt.y);
ushort d = _depth.ptr<ushort>(y)[x];
if (d != 0)
{
return double(d) / _camera->depth_scale_;
}
else
{
/* check the nearby points */
int dx[4] = {-1, 0, 1, 0};
int dy[4] = {0, -1, 0, 1};
for (int i = 0; i < 4; i ++)
{
d = _depth.ptr<ushort>(y + dy[i])[x + dx[i]];
if (d != 0)
{
return double(d) / _camera->depth_scale_;
}
}
}
return -1.0;
}
Eigen::Vector3d Frame::getCamCenter() const
{
return _T_c_w.inverse().translation();
}
void Frame::setPose(const Sophus::SE3& T_c_w)
{
_T_c_w = T_c_w;
}
bool Frame::isInFrame(const Eigen::Vector3d& pt_world)
{
Eigen::Vector3d p_cam = _camera->world2camera(pt_world, _T_c_w);
if (p_cam(2, 0) < 0)
{
return false;
}
Eigen::Vector2d pixel = _camera->world2pixel(pt_world, _T_c_w);
return pixel(0, 0) > 0 && pixel(1, 0) > 0 && pixel(0, 0) < _color.cols && pixel(1, 0) < _color.rows;
}
}
| [
"lsx499285437@163.com"
] | lsx499285437@163.com |
aeeb0c7f8b3ef64c063b599f5e0c3af4f785e98b | 807c766a846c09547a57df9cd4b2f01b530b6345 | /src/compression/Config.hpp | 9658e4d33d965a29155ce357aff0994a23920f8c | [
"BSL-1.0"
] | permissive | PubFork/KTL | 8b11edf83bc3346f1eb26100274ccf9a1579cab2 | 8314bf574f48e78ed90c10cdb34c5dd5e95a0211 | refs/heads/master | 2021-05-30T22:03:05.578003 | 2015-09-06T13:29:59 | 2015-09-06T13:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | hpp | /*=============================================================================
Copyright (c) 2010-2015 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/KTL
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SRC_COMPRESSION_CONFIG_HPP
#define SRC_COMPRESSION_CONFIG_HPP
#include <ktl/default_config.hpp>
// CONFIG: user config
#define SPRIG_CONFIG_LIB_USERCONFIG
#endif // #ifndef SRC_COMPRESSION_CONFIG_HPP
| [
"bolero.murakami@gmail.com"
] | bolero.murakami@gmail.com |
d9ad0a90b4c19a9c807b29b22d3cffc7c273a819 | fc48cd25cd7a6a1061a15826c4d5502bee88fe2a | /MyDungreed/MyDungreed/ShopWindow.h | cd1199961d9c49c87ea2a0924a0f44b39425da3e | [] | no_license | Daruria/CopyProject | 9e3b5ba0f607930b6f58104e9eb52c4f04e2f98f | 672bc7c90aff617d2aa5f087e77f30129565d9a0 | refs/heads/master | 2022-11-20T12:19:03.801310 | 2020-07-26T17:02:55 | 2020-07-26T17:02:55 | 282,668,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | h | #pragma once
#include "UIWindow.h"
class CInvenSlot;
class CShopSlot;
class CShopWindow :
public CUIWindow
{
public:
CShopWindow();
virtual ~CShopWindow();
public:
virtual void Initialize();
virtual void Initialize(const string& strKey, const wchar_t* pPath);
virtual int Update();
virtual void LateUpdate();
virtual void Render(HDC hDC);
virtual void Release();
public:
list<CShopSlot*> m_ItemSlotList;
public:
list<CShopSlot*>* GetItemSlotList() { return &m_ItemSlotList; }
public:
void AddItem(CItem* pItem);
public:
virtual void WindowOn();
virtual void WindowOff();
};
| [
"56038721+Daruria@users.noreply.github.com"
] | 56038721+Daruria@users.noreply.github.com |
032a313d90e7c7b29f5e6012416392cc5bf50904 | 5815ea16d4624ce357d0f0af8ce5f3fda0196177 | /graph/Strongly_Connected_Components.cpp | f767f65b9dd9515d894adc54f897af94cde4708b | [] | no_license | rajharsh81070/Algorithms | eda89218b4a0fb600ee22446f912cfd89ec957f5 | 6721be83f9d31ad2d7d13e4474c206ab1c8efbe1 | refs/heads/master | 2020-04-21T03:12:14.196186 | 2020-01-29T12:39:49 | 2020-01-29T12:39:49 | 169,277,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | cpp | #include <bits/stdc++.h>
using namespace std;
void dfs(vector<int> visited, int src, map<int, int>adjList){
visited[src] = 1;
for(int node: adjList[src]){
if(!visited[node])
dfs(&visited, node, adjList);
}
}
bool check_SCC(int src){
vector <int> visited(V, 0);
dfs(&visited, node, adjList);
if(V!=accumulate(visited.begin(), visited.end(), 0))
return false;
memset(visited, 0, sizeof(visited));
dfs(&visited, node, adjList);
if(V!=accumulate(visited.begin(), visited.end(), 0))
return false;
return true;
}
int main(){
} | [
"rajharsh81070@gmail.com"
] | rajharsh81070@gmail.com |
2973125ef470bf48389bc4c67cb33d53e85f6646 | eeb32df6fb54b058e586b60586d0c74616bcbbe7 | /src/Shape.cpp | 4370e91dd9893d55fe3bd93909e679a77ef56359 | [] | no_license | aaronsanchez01/BlendShapes | c45a57167cbd2065101b67aea19c803d9ee9725a | 2c8ff3b6e9c2b75b69d446f6394e69a3c8a81844 | refs/heads/master | 2023-08-24T16:43:35.531794 | 2021-10-21T14:49:52 | 2021-10-21T14:49:52 | 419,781,757 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,952 | cpp | #include <iostream>
#include <fstream>
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#define TINYOBJLOADER_IMPLEMENTATION
#include "tiny_obj_loader.h"
#include "Shape.h"
#include "GLSL.h"
#include "Program.h"
using namespace std;
using namespace glm;
Shape::Shape() :
prog(NULL),
posBufID(0),
norBufID(0),
texBufID(0),
dPos1BufID(0),
dPos2BufID(0),
dNor1BufID(0),
dNor2BufID(0),
deltas()
{
}
Shape::~Shape()
{
}
void Shape::loadObj(const string &filename, vector<float> &pos, vector<float> &nor, vector<float> &tex, bool loadNor, bool loadTex)
{
tinyobj::attrib_t attrib;
std::vector<tinyobj::shape_t> shapes;
std::vector<tinyobj::material_t> materials;
std::string warn;
std::string err;
bool ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &warn, &err, filename.c_str());
if(!warn.empty()) {
//std::cout << warn << std::endl;
}
if(!err.empty()) {
std::cerr << err << std::endl;
}
if(!ret) {
return;
}
// Loop over shapes
for (size_t s = 0; s < shapes.size(); s++) {
// Loop over faces(polygon)
size_t index_offset = 0;
for(size_t f = 0; f < shapes[s].mesh.num_face_vertices.size(); f++) {
int fv = shapes[s].mesh.num_face_vertices[f];
// Loop over vertices in the face.
for(size_t v = 0; v < fv; v++) {
// access to vertex
tinyobj::index_t idx = shapes[s].mesh.indices[index_offset + v];
pos.push_back(attrib.vertices[3*idx.vertex_index+0]);
pos.push_back(attrib.vertices[3*idx.vertex_index+1]);
pos.push_back(attrib.vertices[3*idx.vertex_index+2]);
if(!attrib.normals.empty() && loadNor) {
nor.push_back(attrib.normals[3*idx.normal_index+0]);
nor.push_back(attrib.normals[3*idx.normal_index+1]);
nor.push_back(attrib.normals[3*idx.normal_index+2]);
}
if(!attrib.texcoords.empty() && loadTex) {
tex.push_back(attrib.texcoords[2*idx.texcoord_index+0]);
tex.push_back(attrib.texcoords[2*idx.texcoord_index+1]);
}
}
index_offset += fv;
}
}
}
void Shape::loadMesh(const string &meshName)
{
// Load geometry
meshFilename = meshName;
loadObj(meshFilename, posBuf, norBuf, texBuf);
}
void Shape::init()
{
// Send the position array to the GPU
glGenBuffers(1, &posBufID);
glBindBuffer(GL_ARRAY_BUFFER, posBufID);
glBufferData(GL_ARRAY_BUFFER, posBuf.size()*sizeof(float), &posBuf[0], GL_STATIC_DRAW);
// Send the normal array to the GPU
glGenBuffers(1, &norBufID);
glBindBuffer(GL_ARRAY_BUFFER, norBufID);
glBufferData(GL_ARRAY_BUFFER, norBuf.size()*sizeof(float), &norBuf[0], GL_STATIC_DRAW);
// Send the texcoord array to the GPU
glGenBuffers(1, &texBufID);
glBindBuffer(GL_ARRAY_BUFFER, texBufID);
glBufferData(GL_ARRAY_BUFFER, texBuf.size()*sizeof(float), &texBuf[0], GL_STATIC_DRAW);
// Unbind the arrays
glBindBuffer(GL_ARRAY_BUFFER, 0);
GLSL::checkError(GET_FILE_LINE);
}
void Shape::draw() const
{
assert(prog);
int h_pos = prog->getAttribute("aPos");
glEnableVertexAttribArray(h_pos);
glBindBuffer(GL_ARRAY_BUFFER, posBufID);
glVertexAttribPointer(h_pos, 3, GL_FLOAT, GL_FALSE, 0, (const void *)0);
int h_nor = prog->getAttribute("aNor");
glEnableVertexAttribArray(h_nor);
glBindBuffer(GL_ARRAY_BUFFER, norBufID);
glVertexAttribPointer(h_nor, 3, GL_FLOAT, GL_FALSE, 0, (const void *)0);
int h_tex = prog->getAttribute("aTex");
glEnableVertexAttribArray(h_tex);
glBindBuffer(GL_ARRAY_BUFFER, texBufID);
glVertexAttribPointer(h_tex, 2, GL_FLOAT, GL_FALSE, 0, (const void *)0);
// Draw
int count = posBuf.size()/3; // number of indices to be rendered
glDrawArrays(GL_TRIANGLES, 0, count);
glDisableVertexAttribArray(h_tex);
glDisableVertexAttribArray(h_nor);
glDisableVertexAttribArray(h_pos);
glBindBuffer(GL_ARRAY_BUFFER, 0);
GLSL::checkError(GET_FILE_LINE);
}
// Code for CPU
void Shape::drawBlends(float t)
{
if (blends.size() > 1) {
std::vector<float> currPosBuf;
std::vector<float> currNorBuf;
float w1 = fabs(sin(t));
float w2 = fabs(sin(-2 * t));
for (int i = 0; i < posBuf.size() / 3; i++) {
float p1 = posBuf.at(3 * i) + (w1 * (blends.at(0)->getPos(3 * i) - posBuf.at(3 * i))) + (w2 * (blends.at(1)->getPos(3 * i) - posBuf.at(3 * i)));
currPosBuf.push_back(p1);
float p2 = posBuf.at(3 * i + 1) + (w1 * (blends.at(0)->getPos(3 * i + 1) - posBuf.at(3 * i + 1))) + (w2 * (blends.at(1)->getPos(3 * i + 1) - posBuf.at(3 * i + 1)));
currPosBuf.push_back(p2);
float p3 = posBuf.at(3 * i + 2) + (w1 * (blends.at(0)->getPos(3 * i + 2) - posBuf.at(3 * i + 2))) + (w2 * (blends.at(1)->getPos(3 * i + 2) - posBuf.at(3 * i + 2)));
currPosBuf.push_back(p3);
float n1 = norBuf.at(3 * i) + (w1 * (blends.at(0)->getNor(3 * i) - norBuf.at(3 * i))) + (w2 * (blends.at(1)->getNor(3 * i) - norBuf.at(3 * i)));
float n2 = norBuf.at(3 * i + 1) + (w1 * (blends.at(0)->getNor(3 * i + 1) - norBuf.at(3 * i + 1))) + (w2 * (blends.at(1)->getNor(3 * i + 1) - norBuf.at(3 * i + 1)));
float n3 = norBuf.at(3 * i + 2) + (w1 * (blends.at(0)->getNor(3 * i + 2) - norBuf.at(3 * i + 2))) + (w2 * (blends.at(1)->getNor(3 * i + 2) - norBuf.at(3 * i + 2)));
glm::vec3 n = glm::vec3(n1, n2, n3);
n = glm::normalize(n);
currNorBuf.push_back(n[0]);
currNorBuf.push_back(n[1]);
currNorBuf.push_back(n[2]);
}
// Check to see if we are reusing the same buffer, thats what it seems like
glGenBuffers(1, &posBufID);
glBindBuffer(GL_ARRAY_BUFFER, posBufID);
glBufferData(GL_ARRAY_BUFFER, currPosBuf.size() * sizeof(float), &currPosBuf[0], GL_STATIC_DRAW);
// Send the normal array to the GPU
glGenBuffers(1, &norBufID);
glBindBuffer(GL_ARRAY_BUFFER, norBufID);
glBufferData(GL_ARRAY_BUFFER, currNorBuf.size() * sizeof(float), &currNorBuf[0], GL_STATIC_DRAW);
}
}
void Shape::calculateDeltas()
{
if (blends.size() > 0) {
for (int i = 0; i < blends.size(); i++) {
vector<float> p;
vector<float> n;
for (int j = 0; j < posBuf.size(); j++) {
p.push_back(blends.at(i)->getPos(j) - posBuf.at(j));
n.push_back(blends.at(i)->getNor(j) - norBuf.at(j));
}
// Push back pos and nor deltas for each of the blend shapes we have
deltas.push_back(p);
deltas.push_back(n);
}
}
}
void Shape::sendBlends(float t)
{
assert(prog);
int h_pos = prog->getAttribute("aPos");
glEnableVertexAttribArray(h_pos);
glBindBuffer(GL_ARRAY_BUFFER, posBufID);
glVertexAttribPointer(h_pos, 3, GL_FLOAT, GL_FALSE, 0, (const void*)0);
int h_nor = prog->getAttribute("aNor");
glEnableVertexAttribArray(h_nor);
glBindBuffer(GL_ARRAY_BUFFER, norBufID);
glVertexAttribPointer(h_nor, 3, GL_FLOAT, GL_FALSE, 0, (const void*)0);
GLSL::checkError(GET_FILE_LINE);
int d_pos_1 = prog->getAttribute("dPos1");
glEnableVertexAttribArray(d_pos_1);
glBindBuffer(GL_ARRAY_BUFFER, dPos1BufID);
glVertexAttribPointer(d_pos_1, 3, GL_FLOAT, GL_FALSE, 0, (const void*)0);
GLSL::checkError(GET_FILE_LINE);
int d_pos_2 = prog->getAttribute("dPos2");
glEnableVertexAttribArray(d_pos_2);
glBindBuffer(GL_ARRAY_BUFFER, dPos2BufID);
glVertexAttribPointer(d_pos_2, 3, GL_FLOAT, GL_FALSE, 0, (const void*)0);
GLSL::checkError(GET_FILE_LINE);
int d_nor_1 = prog->getAttribute("dNor1");
GLSL::checkError(GET_FILE_LINE);
glEnableVertexAttribArray(d_nor_1);
GLSL::checkError(GET_FILE_LINE);
glBindBuffer(GL_ARRAY_BUFFER, dNor1BufID);
GLSL::checkError(GET_FILE_LINE);
glVertexAttribPointer(d_nor_1, 3, GL_FLOAT, GL_FALSE, 0, (const void*)0);
GLSL::checkError(GET_FILE_LINE);
int d_nor_2 = prog->getAttribute("dNor2");
glEnableVertexAttribArray(d_nor_2);
glBindBuffer(GL_ARRAY_BUFFER, dNor2BufID);
glVertexAttribPointer(d_nor_2, 3, GL_FLOAT, GL_FALSE, 0, (const void*)0);
GLSL::checkError(GET_FILE_LINE);
int h_tex = prog->getAttribute("aTex");
glEnableVertexAttribArray(h_tex);
glBindBuffer(GL_ARRAY_BUFFER, texBufID);
glVertexAttribPointer(h_tex, 2, GL_FLOAT, GL_FALSE, 0, (const void*)0);
// Draw
int count = posBuf.size() / 3; // number of indices to be rendered
glDrawArrays(GL_TRIANGLES, 0, count);
glDisableVertexAttribArray(h_tex);
glDisableVertexAttribArray(h_nor);
glDisableVertexAttribArray(h_pos);
glDisableVertexAttribArray(d_pos_1);
glDisableVertexAttribArray(d_pos_2);
glDisableVertexAttribArray(d_nor_1);
glDisableVertexAttribArray(d_nor_2);
glBindBuffer(GL_ARRAY_BUFFER, 0);
GLSL::checkError(GET_FILE_LINE);
}
// Code for GPU
void Shape::initDeltas()
{
// Send the position array to the GPU
glGenBuffers(1, &posBufID);
glBindBuffer(GL_ARRAY_BUFFER, posBufID);
glBufferData(GL_ARRAY_BUFFER, posBuf.size() * sizeof(float), &posBuf[0], GL_STATIC_DRAW);
// Send the delta position 1 array to the GPU
glGenBuffers(1, &dPos1BufID);
glBindBuffer(GL_ARRAY_BUFFER, dPos1BufID);
glBufferData(GL_ARRAY_BUFFER, deltas.at(0).size() * sizeof(float), &deltas.at(0)[0], GL_STATIC_DRAW);
// Send the delta position 2 array to the GPU
glGenBuffers(1, &dPos2BufID);
glBindBuffer(GL_ARRAY_BUFFER, dPos2BufID);
glBufferData(GL_ARRAY_BUFFER, deltas.at(2).size() * sizeof(float), &deltas.at(2)[0], GL_STATIC_DRAW);
// Send the normal array to the GPU
glGenBuffers(1, &norBufID);
glBindBuffer(GL_ARRAY_BUFFER, norBufID);
glBufferData(GL_ARRAY_BUFFER, norBuf.size() * sizeof(float), &norBuf[0], GL_STATIC_DRAW);
// Send the delta normal 1 array to the GPU
glGenBuffers(1, &dNor1BufID);
glBindBuffer(GL_ARRAY_BUFFER, dNor1BufID);
glBufferData(GL_ARRAY_BUFFER, deltas.at(1).size() * sizeof(float), &deltas.at(1)[0], GL_STATIC_DRAW);
// Send the delta normal 2 array to the GPU
glGenBuffers(1, &dNor2BufID);
glBindBuffer(GL_ARRAY_BUFFER, dNor2BufID);
glBufferData(GL_ARRAY_BUFFER, deltas.at(3).size() * sizeof(float), &deltas.at(3)[0], GL_STATIC_DRAW);
// Send the texcoord array to the GPU
glGenBuffers(1, &texBufID);
glBindBuffer(GL_ARRAY_BUFFER, texBufID);
glBufferData(GL_ARRAY_BUFFER, texBuf.size() * sizeof(float), &texBuf[0], GL_STATIC_DRAW);
// Unbind the arrays
glBindBuffer(GL_ARRAY_BUFFER, 0);
GLSL::checkError(GET_FILE_LINE);
}
| [
"11447+aaronsanchez01@users.noreply.github.tamu.edu"
] | 11447+aaronsanchez01@users.noreply.github.tamu.edu |
28845503046f6e2296507c2ff7c2e8046f5f40be | e3529c4ca7a5e7ac75bca8cc158d31ca415031f1 | /src/draw-fstar.cpp | 771e1c5c946c35d33aa608112870a973269c506f | [] | no_license | duckmayr/gpirt | 74ab0c07c5328d07b1c29758c955481960d596cb | 2a9751982a2c5aa7b7296459574849e414f70f8f | refs/heads/main | 2023-06-21T21:23:38.815662 | 2021-08-14T13:50:37 | 2021-08-14T13:50:37 | 187,258,515 | 7 | 1 | null | 2021-07-18T13:31:51 | 2019-05-17T17:45:27 | R | UTF-8 | C++ | false | false | 1,080 | cpp | #include "gpirt.h"
inline arma::mat double_solve(const arma::mat& L, const arma::mat& X) {
using arma::trimatl;
using arma::trimatu;
using arma::solve;
return solve(trimatu(L.t()), solve(trimatl(L), X));
}
arma::mat draw_fstar(const arma::mat& f, const arma::vec& theta,
const arma::vec& theta_star, const arma::mat& L,
const arma::mat& mu_star) {
arma::uword n = f.n_rows;
arma::uword m = f.n_cols;
arma::uword N = theta_star.n_elem;
arma::mat result(N, m);
arma::mat kstar = K(theta, theta_star);
arma::mat kstarT = kstar.t();
arma::mat tmp = arma::solve(arma::trimatl(L), kstar);
arma::vec s = 1.0 - arma::trans(arma::sqrt(arma::sum(tmp % tmp, 0)));
arma::vec alpha(n);
arma::vec draw_mean(N);
for ( arma::uword j = 0; j < m; ++j ) {
alpha = double_solve(L, f.col(j));
draw_mean = kstarT * alpha + mu_star.col(j);
for ( arma::uword i = 0; i < N; ++i ) {
result(i, j) = R::rnorm(draw_mean[i], s[i]);
}
}
return result;
}
| [
"j.duckmayr@gmail.com"
] | j.duckmayr@gmail.com |
55de29758d923f18d0a4e4368ed4c1f3bacdc43a | 336015c3f3b6cbd8e53493bc296c1af85afcde85 | /evk/poller.h | 6cc752641fdb66909ce8a697526ddd3cfb79a2e1 | [] | no_license | PumpkinGG/evk | 88b043c96043695ec577dcf22aebb3ad1dd0c0ab | 828b14fbb2539d8233fee641c1de6fb029c82f20 | refs/heads/master | 2020-04-28T02:20:45.942915 | 2019-03-19T01:26:46 | 2019-03-19T01:26:46 | 174,894,908 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,120 | h | #pragma once
#include <vector>
#include <map>
#include "evk/inner_pre.h"
#include "evk/timestamp.h"
#include "evk/event_loop.h"
struct pollfd;
namespace evk {
class Channel;
// IO Multiplexing with poll(2).
// This class doesn't own the Channel objects.
class Poller: public noncopyable {
public:
typedef std::vector<Channel*> ChannelList;
public:
Poller(EventLoop* loop);
~Poller();
// Polls the IO events.
// Must be called in the loop thread.
Timestamp poll(int timeout_ms, ChannelList* active_channels);
// Changes the interested IO events.
// Must be called in the loop thread.
void UpdateChannel(Channel* channel);
bool HasChannel(Channel* channel);
void RemoveChannel(Channel* channel);
void AssertInLoopThread() {
owner_loop_->AssertInLoopThread();
}
private:
void FillActiveChannels(int num_events, ChannelList* active_channels);
private:
typedef std::vector<struct pollfd> PollfdList;
typedef std::map<int, Channel*> ChannelMap;
EventLoop* owner_loop_;
PollfdList pollfd_list_;
ChannelMap channel_map_;
};
}
| [
"guokh888@163.com"
] | guokh888@163.com |
eacf349c68ad8eefca899348eb996ee9b7afcabe | 7127beefb2ea0abf98a32f81decb9e290a406ec8 | /source/agent/plugins/samples/common/face_detection.h | 47872fb100d167b806b85f3bf339313cbcc6304b | [
"Apache-2.0"
] | permissive | winlinvip/owt-server | 90f6652508f174b5a6ad5c501647acf1b53866b7 | 2257e304bba9bfa2bc17c27cd150c6b99004153c | refs/heads/master | 2021-01-08T03:40:45.283183 | 2020-02-13T06:06:03 | 2020-02-13T06:06:03 | 241,901,788 | 1 | 0 | Apache-2.0 | 2020-02-20T14:14:52 | 2020-02-20T14:14:51 | null | UTF-8 | C++ | false | false | 729 | h | // Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#ifndef FACE_DETECTION_H
#define FACE_DETECTION_H
#include <inference_engine.hpp>
using namespace InferenceEngine;
class FaceDetection {
public:
struct DetectedObject {
cv::Rect rect;
float confidence;
};
public:
FaceDetection(std::string device = "CPU");
virtual ~FaceDetection();
bool init();
bool infer(cv::Mat& image, std::vector<DetectedObject> &result);
private:
float m_threshold;
std::string m_device;
std::string m_model;
InferencePlugin m_plugin;
InferRequest m_infer_request;
Blob::Ptr m_input_blob;
Blob::Ptr m_output_blob;
};
#endif //FACE_DETECTION_H
| [
"xiande.duan@intel.com"
] | xiande.duan@intel.com |
bbb480a007808e91c0a691d6343675d314ad85bd | c580faee969b4e9c710885179d064fcf1ea17518 | /baekjoon/1967.cpp | 056ac6b0f5779583f563d7720d5259b95409ae4a | [] | no_license | atdavidpark/problem-solving | b4c2ecca91dc5bc46bced150d7287761eac708f2 | 0c66e16ce467b4a41aa1fa575b202386a20a9a49 | refs/heads/master | 2023-07-17T08:29:43.332135 | 2021-09-03T03:47:26 | 2021-09-03T03:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,193 | cpp | #include <iostream>
#include <cstdio>
#include <vector>
using namespace std;
const int MAX_N = 10000;
int n;
vector<pair<int, int> > adj[MAX_N + 1];
int parent[MAX_N + 1];
int diameter[MAX_N + 1];
int path[MAX_N + 1];
void construct(int i)
{
int path1 = 0, path2 = 0;
for(int v = 0; v < adj[i].size(); ++v)
{
int child = adj[i][v].first;
int cur_len = path[child] + adj[i][v].second;
if(cur_len > path[i]) path[i] = cur_len;
if(cur_len > path1)
{
path2 = path1;
path1 = cur_len;
}
else if(cur_len > path2)
path2 = cur_len;
}
diameter[i] = path1 + path2;
if(i != 1) construct(parent[i]);
}
void proc()
{
cin >> n;
for(int i = 0; i < n - 1; ++i)
{
int a, b, c;
cin >> a >> b >> c;
adj[a].push_back(make_pair(b, c));
parent[b] = a;
}
for(int i = 1; i <= n; ++i)
{
if(adj[i].empty() && parent[i])
construct(parent[i]);
}
int ans = 0;
for(int i = 1; i <= n; ++i)
if(ans < diameter[i]) ans = diameter[i];
cout << ans << "\n";
}
int main()
{
proc();
return 0;
}
| [
"kyg_516@naver.com"
] | kyg_516@naver.com |
dafb405c9574307271d52bfebc85ed45ab9943a4 | 9559bdd7ec4f0ee5937f80c514c3400dd0fd3ed7 | /OpenGL-Sandbox/Src/ExampleApp.cpp | 13d6f2b23e6a9a77cedfd796bcf8960fde0f5308 | [
"Apache-2.0"
] | permissive | lalishansh/OpenGL-TestSite | 224fba88acc6980b0db54e1892668260850209f9 | 6887725e0c268f9949050547578509e06be83eae | refs/heads/main | 2023-08-11T14:41:48.340190 | 2021-10-14T12:22:50 | 2021-10-14T12:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | #include "GLCore.h"
#include "ExampleLayer.h"
using namespace GLCore;
class Example : public Application
{
public:
Example()
: Application("OpenGL Examples")
{
PushLayer<ExampleLayer> ();
PushLayer<ExampleLayer> ("Example Layer 2");
//ActivateLayer (0);
}
};
int main()
{
std::unique_ptr<Example> app = std::make_unique<Example>();
app->Run();
} | [
"lalishansh@gmail.com"
] | lalishansh@gmail.com |
6b6d04a38c6a47eafa3249035f03c6f28d0b0988 | 5ddd0ec20099a9c3ffe865c835dcceb5b7fd0332 | /of_v0.8.0_vs_release-gesture-recognizer/apps/myApps/GRT_Predict/GRT/ClassificationModules/BAG/BAG.cpp | 6437b3f378bff6bbf4bb8078a290ce33557f250e | [
"MIT"
] | permissive | MarkusKonk/Geographic-Interaction | af81f9f4c7c201dd55843d4dd0d369f2f407d480 | b74f6f04656611df8dc4ebdea43f263cea67b366 | refs/heads/master | 2020-12-30T10:36:34.414880 | 2014-02-03T12:37:45 | 2014-02-03T12:37:45 | 13,868,029 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 15,365 | cpp | /*
GRT MIT License
Copyright (c) <2012> <Nicholas Gillian, Media Lab, MIT>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "BAG.h"
namespace GRT{
//Register the BAG module with the Classifier base class
RegisterClassifierModule< BAG > BAG::registerModule("BAG");
BAG::BAG(bool useScaling)
{
this->useScaling = useScaling;
classifierType = "BAG";
classifierMode = STANDARD_CLASSIFIER_MODE;
debugLog.setProceedingText("[DEBUG BAG]");
errorLog.setProceedingText("[ERROR BAG]");
trainingLog.setProceedingText("[TRAINING BAG]");
warningLog.setProceedingText("[WARNING BAG]");
}
BAG::~BAG(void)
{
clearEnsemble();
}
BAG& BAG::operator=(const BAG &rhs){
if( this != &rhs ){
//Clear any previous ensemble
clearEnsemble();
//Copy the weights
this->weights = rhs.weights;
//Deep copy each classifier in the ensemble
for(UINT i=0; i<rhs.getEnsembleSize(); i++){
addClassifierToEnsemble( *(rhs.ensemble[i]) );
}
//Copy the base classifier variables
copyBaseVariables( (Classifier*)&rhs );
}
return *this;
}
bool BAG::clone(const Classifier *classifier){
if( classifier == NULL ) return false;
if( this->getClassifierType() == classifier->getClassifierType() ){
BAG *ptr = (BAG*)classifier;
//Clear any previous ensemble
clearEnsemble();
//Copy the weights
this->weights = ptr->weights;
//Deep copy each classifier in the ensemble
for(UINT i=0; i<ptr->getEnsembleSize(); i++){
addClassifierToEnsemble( *(ptr->ensemble[i]) );
}
//Copy the base classifier variables
return copyBaseVariables( classifier );
}
return false;
}
bool BAG::train(LabelledClassificationData &trainingData){
const unsigned int M = trainingData.getNumSamples();
const unsigned int N = trainingData.getNumDimensions();
const unsigned int K = trainingData.getNumClasses();
trained = false;
classLabels.clear();
if( M == 0 ){
errorLog << "train(LabelledClassificationData &trainingData) - Training data has zero samples!" << endl;
return false;
}
numFeatures = N;
numClasses = K;
classLabels.resize(K);
ranges = trainingData.getRanges();
UINT ensembleSize = (UINT)ensemble.size();
if( ensembleSize == 0 ){
errorLog << "train(LabelledClassificationData &trainingData) - The ensemble size is zero! You need to add some classifiers to the ensemble first." << endl;
return false;
}
for(UINT i=0; i<ensembleSize; i++){
if( ensemble[i] == NULL ){
errorLog << "train(LabelledClassificationData &trainingData) - The classifier at ensemble index " << i << " has not been set!" << endl;
return false;
}
}
//Train the ensemble
for(UINT i=0; i<ensembleSize; i++){
LabelledClassificationData boostedDataset = trainingData.getBootstrappedDataset();
//Train the classifier with the bootstrapped dataset
if( !ensemble[i]->train( boostedDataset ) ){
errorLog << "train(LabelledClassificationData &trainingData) - The classifier at ensemble index " << i << " failed training!" << endl;
return false;
}
}
//Set the class labels
classLabels = trainingData.getClassLabels();
//Flag that the algorithm has been trained
trained = true;
return trained;
}
bool BAG::predict(VectorDouble inputVector){
if( !trained ){
errorLog << "predict(VectorDouble inputVector) - Model Not Trained!" << endl;
return false;
}
predictedClassLabel = 0;
maxLikelihood = -10000;
if( !trained ) return false;
if( inputVector.size() != numFeatures ){
errorLog << "predict(VectorDouble inputVector) - The size of the input vector (" << inputVector.size() << ") does not match the num features in the model (" << numFeatures << endl;
return false;
}
if( useScaling ){
for(UINT n=0; n<numFeatures; n++){
inputVector[n] = scale(inputVector[n], ranges[n].minValue, ranges[n].maxValue, 0, 1);
}
}
if( classLikelihoods.size() != numClasses ) classLikelihoods.resize(numClasses);
if( classDistances.size() != numClasses ) classDistances.resize(numClasses);
//Reset the likelihoods and distances
for(UINT k=0; k<numClasses; k++){
classLikelihoods[k] = 0;
classDistances[k] = 0;
}
//Run the prediction for each classifier
double sum = 0;
UINT ensembleSize = (UINT)ensemble.size();
for(UINT i=0; i<ensembleSize; i++){
if( !ensemble[i]->predict(inputVector) ){
errorLog << "predict(VectorDouble inputVector) - The " << i << " classifier in the ensemble failed prediction!" << endl;
return false;
}
classLikelihoods[ getClassLabelIndexValue( ensemble[i]->getPredictedClassLabel() ) ] += weights[i];
classDistances[ getClassLabelIndexValue( ensemble[i]->getPredictedClassLabel() ) ] += ensemble[i]->getMaximumLikelihood() * weights[i];
sum += weights[i];
}
//Set the predicted class label as the most common class
double maxCount = 0;
UINT maxIndex = 0;
for(UINT i=0; i<numClasses; i++){
if( classLikelihoods[i] > maxCount ){
maxIndex = i;
maxCount = classLikelihoods[i];
}
classLikelihoods[i] /= sum;
classDistances[i] /= double(ensembleSize);
}
predictedClassLabel = classLabels[ maxIndex ];
maxLikelihood = classLikelihoods[ maxIndex ];
return true;
}
bool BAG::saveModelToFile(string filename){
if( !trained ) return false;
std::fstream file;
file.open(filename.c_str(), std::ios::out);
if( !saveModelToFile( file ) ){
return false;
}
file.close();
return true;
}
bool BAG::saveModelToFile(fstream &file){
if(!file.is_open())
{
errorLog <<"saveModelToFile(fstream &file) - The file is not open!" << endl;
return false;
}
const UINT ensembleSize = getEnsembleSize();
//Write the header info
file << "GRT_BAG_MODEL_FILE_V1.0\n";
file << "Trained: " << trained << endl;
file << "NumFeatures: " << numFeatures << endl;
file << "NumClasses: " << numClasses << endl;
file << "UseScaling: " << useScaling << endl;
file << "UseNullRejection: " << useNullRejection << endl;
///Write the ranges if needed
if( useScaling ){
file << "Ranges: \n";
for(UINT n=0; n<ranges.size(); n++){
file << ranges[n].minValue << "\t" << ranges[n].maxValue << endl;
}
}
//Save the class labels
file << "ClassLabels: ";
for(UINT i=0; i<numClasses; i++){
file << classLabels[i];
if( i < numClasses-1 ) file << "\t";
else file << "\n";
}
file << "EnsembleSize: " << ensembleSize << endl;
if( getEnsembleSize() > 0 ){
//Save the weights
file << "Weights: ";
for(UINT i=0; i<getEnsembleSize(); i++){
file << weights[i];
if( i < ensembleSize-1 ) file << "\t";
else file << "\n";
}
//Save the classifier types
file << "ClassifierTypes: ";
for(UINT i=0; i<getEnsembleSize(); i++){
file << ensemble[i]->getClassifierType() << endl;
}
//Save the ensemble
file << "Ensemble: \n";
for(UINT i=0; i<getEnsembleSize(); i++){
if( !ensemble[i]->saveModelToFile( file ) ){
errorLog <<"saveModelToFile(fstream &file) - Failed to save classifier " << i << " to file!" << endl;
return false;
}
}
}
//NOTE: We do not need to close the file
return true;
}
bool BAG::loadModelFromFile(string filename){
std::fstream file;
file.open(filename.c_str(), std::ios::in);
if( !loadModelFromFile( file ) ){
return false;
}
file.close();
return true;
}
bool BAG::loadModelFromFile(fstream &file){
trained = false;
numFeatures = 0;
numClasses = 0;
classLabels.clear();
clearEnsemble();
UINT ensembleSize = 0;
if(!file.is_open())
{
errorLog << "loadModelFromFile(string filename) - Could not open file to load model" << endl;
return false;
}
std::string word;
//Find the file type header
file >> word;
if(word != "GRT_BAG_MODEL_FILE_V1.0"){
errorLog << "loadModelFromFile(string filename) - Could not find Model File Header" << endl;
return false;
}
file >> word;
if(word != "Trained:"){
errorLog << "loadModelFromFile(string filename) - Could not find Trained Header" << endl;
return false;
}
file >> trained;
file >> word;
if(word != "NumFeatures:"){
errorLog << "loadModelFromFile(string filename) - Could not find NumFeatures!" << endl;
return false;
}
file >> numFeatures;
file >> word;
if(word != "NumClasses:"){
errorLog << "loadModelFromFile(string filename) - Could not find NumClasses!" << endl;
return false;
}
file >> numClasses;
file >> word;
if(word != "UseScaling:"){
errorLog << "loadModelFromFile(string filename) - Could not find UseScaling!" << endl;
return false;
}
file >> useScaling;
file >> word;
if(word != "UseNullRejection:"){
errorLog << "loadModelFromFile(string filename) - Could not find UseNullRejection!" << endl;
return false;
}
file >> useNullRejection;
///Read the ranges if needed
if( useScaling ){
//Resize the ranges buffer
ranges.resize(numFeatures);
file >> word;
if(word != "Ranges:"){
errorLog << "loadModelFromFile(string filename) - Could not find the Ranges!" << endl;
return false;
}
for(UINT n=0; n<ranges.size(); n++){
file >> ranges[n].minValue;
file >> ranges[n].maxValue;
}
}
//Resize the buffer
classLabels.resize(numClasses);
//Load the class labels
file >> word;
if(word != "ClassLabels:"){
errorLog << "loadModelFromFile(string filename) - Could not find the ClassLabels!" << endl;
return false;
}
for(UINT i=0; i<numClasses; i++){
file >> classLabels[i];
}
//Load the ensemble size
file >> word;
if(word != "EnsembleSize:"){
errorLog << "loadModelFromFile(string filename) - Could not find the EnsembleSize!" << endl;
return false;
}
file >> ensembleSize;
if( ensembleSize > 0 ){
//Load the weights
weights.resize( ensembleSize );
file >> word;
if(word != "Weights:"){
errorLog << "loadModelFromFile(string filename) - Could not find the Weights!" << endl;
return false;
}
for(UINT i=0; i<ensembleSize; i++){
file >> weights[i];
}
//Load the classifier types
vector< string > classifierTypes( ensembleSize );
file >> word;
if(word != "ClassifierTypes:"){
errorLog << "loadModelFromFile(string filename) - Could not find the ClassifierTypes!" << endl;
return false;
}
for(UINT i=0; i<ensembleSize; i++){
file >> classifierTypes[i];
}
//Load the ensemble
file >> word;
if(word != "Ensemble:"){
errorLog << "loadModelFromFile(string filename) - Could not find the Ensemble!" << endl;
return false;
}
ensemble.resize(ensembleSize,NULL);
for(UINT i=0; i<ensembleSize; i++){
ensemble[i] = createInstanceFromString( classifierTypes[i] );
if( ensemble[i] == NULL ){
errorLog << "loadModelFromFile(string filename) - Could not create a new classifier instance from the classifierType: " << classifierTypes[i] << endl;
clearEnsemble();
return false;
}
if( !ensemble[i]->loadModelFromFile( file ) ){
errorLog << "loadModelFromFile(string filename) - Failed to load ensemble classifier: " << i << endl;
clearEnsemble();
return false;
}
}
}
//Recompute the null rejection thresholds
recomputeNullRejectionThresholds();
//Resize the prediction results to make sure it is setup for realtime prediction
maxLikelihood = DEFAULT_NULL_LIKELIHOOD_VALUE;
bestDistance = DEFAULT_NULL_DISTANCE_VALUE;
classLikelihoods.resize(numClasses,DEFAULT_NULL_LIKELIHOOD_VALUE);
classDistances.resize(numClasses,DEFAULT_NULL_DISTANCE_VALUE);
//Flag that the model has been trained
trained = true;
return true;
}
UINT BAG::getEnsembleSize() const{
return (UINT)ensemble.size();
}
VectorDouble BAG::getEnsembleWeights() const{
return weights;
}
const vector< Classifier* > BAG::getEnsemble() const{
return ensemble;
}
bool BAG::addClassifierToEnsemble(const Classifier &classifier,double weight){
trained = false;
Classifier *newClassifier = classifier.createNewInstance();
if( newClassifier == NULL ){
return false;
}
if( !newClassifier->clone( &classifier ) ){
return false;
}
weights.push_back( weight );
ensemble.push_back( newClassifier );
return false;
}
bool BAG::clearEnsemble(){
trained = false;
for(UINT i=0; i<ensemble.size(); i++){
if( ensemble[i] != NULL ){
delete ensemble[i];
ensemble[i] = NULL;
}
}
weights.clear();
ensemble.clear();
return true;
}
bool BAG::setWeights(const VectorDouble &weights){
if( this->weights.size() != weights.size() ){
return false;
}
this->weights = weights;
return true;
}
} //End of namespace GRT
| [
"matthias.m.hinz@googlemail.com"
] | matthias.m.hinz@googlemail.com |
d54287f81e8c4008b97343d1f5cb815d352a7659 | 20d21364b3b621b0d7094b16b349ebd0b48bdec0 | /libpldmresponder/bios_string_attribute.cpp | 1b6ba758733e8e4ceee6f7a732cb54a742a03df4 | [
"Apache-2.0"
] | permissive | ibmzach/pldm | e9afc617407c42901db29daba8a2a2d575dbf27e | 1a636b2ce8b97e6ea9378632e96532fcbdcbed87 | refs/heads/master | 2021-05-19T09:29:01.312096 | 2020-06-18T15:01:31 | 2020-06-18T15:01:31 | 251,630,106 | 0 | 1 | Apache-2.0 | 2020-03-31T14:35:29 | 2020-03-31T14:35:29 | null | UTF-8 | C++ | false | false | 4,301 | cpp | #include "bios_string_attribute.hpp"
#include "utils.hpp"
#include <iostream>
#include <tuple>
#include <variant>
namespace pldm
{
namespace responder
{
namespace bios
{
BIOSStringAttribute::BIOSStringAttribute(const Json& entry,
DBusHandler* const dbusHandler) :
BIOSAttribute(entry, dbusHandler)
{
std::string strTypeTmp = entry.at("string_type");
auto iter = strTypeMap.find(strTypeTmp);
if (iter == strTypeMap.end())
{
std::cerr << "Wrong string type, STRING_TYPE=" << strTypeTmp
<< " ATTRIBUTE_NAME=" << name << "\n";
throw std::invalid_argument("Wrong string type");
}
stringInfo.stringType = static_cast<uint8_t>(iter->second);
stringInfo.minLength = entry.at("minimum_string_length");
stringInfo.maxLength = entry.at("maximum_string_length");
stringInfo.defLength = entry.at("default_string_length");
stringInfo.defString = entry.at("default_string");
pldm_bios_table_attr_entry_string_info info = {
0,
readOnly,
stringInfo.stringType,
stringInfo.minLength,
stringInfo.maxLength,
stringInfo.defLength,
stringInfo.defString.data(),
};
const char* errmsg;
auto rc = pldm_bios_table_attr_entry_string_info_check(&info, &errmsg);
if (rc != PLDM_SUCCESS)
{
std::cerr << "Wrong field for string attribute, ATTRIBUTE_NAME=" << name
<< " ERRMSG=" << errmsg
<< " MINIMUM_STRING_LENGTH=" << stringInfo.minLength
<< " MAXIMUM_STRING_LENGTH=" << stringInfo.maxLength
<< " DEFAULT_STRING_LENGTH=" << stringInfo.defLength
<< " DEFAULT_STRING=" << stringInfo.defString << "\n";
throw std::invalid_argument("Wrong field for string attribute");
}
}
void BIOSStringAttribute::setAttrValueOnDbus(
const pldm_bios_attr_val_table_entry* attrValueEntry,
const pldm_bios_attr_table_entry*, const BIOSStringTable&)
{
if (readOnly)
{
return;
}
PropertyValue value =
table::attribute_value::decodeStringEntry(attrValueEntry);
dbusHandler->setDbusProperty(*dBusMap, value);
}
std::string BIOSStringAttribute::getAttrValue()
{
if (readOnly)
{
return stringInfo.defString;
}
try
{
return dbusHandler->getDbusProperty<std::string>(
dBusMap->objectPath.c_str(), dBusMap->propertyName.c_str(),
dBusMap->interface.c_str());
}
catch (const std::exception& e)
{
std::cerr << "Get String Attribute Value Error: AttributeName = "
<< name << std::endl;
return stringInfo.defString;
}
}
void BIOSStringAttribute::constructEntry(const BIOSStringTable& stringTable,
Table& attrTable,
Table& attrValueTable)
{
pldm_bios_table_attr_entry_string_info info = {
stringTable.findHandle(name), readOnly,
stringInfo.stringType, stringInfo.minLength,
stringInfo.maxLength, stringInfo.defLength,
stringInfo.defString.data(),
};
auto attrTableEntry =
table::attribute::constructStringEntry(attrTable, &info);
auto [attrHandle, attrType, _] =
table::attribute::decodeHeader(attrTableEntry);
auto currStr = getAttrValue();
table::attribute_value::constructStringEntry(attrValueTable, attrHandle,
attrType, currStr);
}
int BIOSStringAttribute::updateAttrVal(Table& newValue, uint16_t attrHdl,
uint8_t attrType,
const PropertyValue& newPropVal)
{
try
{
const auto& newStringValue = std::get<std::string>(newPropVal);
table::attribute_value::constructStringEntry(newValue, attrHdl,
attrType, newStringValue);
}
catch (const std::bad_variant_access& e)
{
std::cerr << "invalid value passed for the property, error: "
<< e.what() << "\n";
return PLDM_ERROR;
}
return PLDM_SUCCESS;
}
} // namespace bios
} // namespace responder
} // namespace pldm
| [
"dkodihal@in.ibm.com"
] | dkodihal@in.ibm.com |
d6af900a3a476681d68fa98cd7055b4b421754db | 4109d86c9f0232be2e264b679091305111574a75 | /SFML/SFML1/Classes/Board.cpp | d6c54fa77a65b065b1e8d25616e183a64e4c36c8 | [] | no_license | CosDevelopment/backups | 936a04921de963405564658d5ce51325518b2b9f | edbf83a9b5168c0bd23b1212178a091b9e9ae61b | refs/heads/master | 2020-05-03T06:57:32.196394 | 2019-03-29T23:24:47 | 2019-03-29T23:24:47 | 178,485,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,569 | cpp | #include "./Headers/Board.h"
#include <iostream>
#include "./Headers/Items.h"
Board::Board() : sf::Sprite()
{
treasure.setSize(sf::Vector2f(20.f, 20.f));
treasure.exist = true;
treasure.setFillColor(sf::Color::Cyan);
treasure.setPosition(sf::Vector2f(180.f, 290.f));
// Constructure applies default/base texture to the the created player. will add UI to change later.
if (!texture.loadFromFile(base))
{
std::cout << "file not loaded" << std::endl;
}
setTexture(texture); // function that sets texture for sf::Sprite, the base class of board;
}
void Board::query(Player &player)
{
std::cout << "you are standing at position " << player.getPosition().x << "," << player.getPosition().y << std::endl;
}
void Board::query()
{
if (!treasure.exist)
{
std::cout << "there are no items in this stage" << std::endl;
}
else
{
std::cout << "THERE IS TREASURE!" << std::endl;
}
}
void Board::setMode(Mode mode)
{
if (mode == Mode::Edit)
{
editMode = true;
}
else
{
editMode = false;
}
}
bool Board::getMode()
{
return editMode;
}
void Board::addObject(sf::RenderWindow &window)
{
objects++;
if (objects < 15)
{
arrayOfObjects[objects].setSize(sf::Vector2f(20.f, 20.f));
arrayOfObjects[objects].setFillColor(sf::Color::Red);
arrayOfObjects[objects].setPosition(sf::Vector2f((float)(sf::Mouse::getPosition(window).x), (float)(sf::Mouse::getPosition(window).y)));
std::cout << "worked" << std::endl;
}
} | [
"prestomsmith@prestonsmith-inspiron-5767.attlocal.net"
] | prestomsmith@prestonsmith-inspiron-5767.attlocal.net |
979a0cb5bd2ca4c1028eaf98821c9ca47c669d92 | 5320551c3eade4544528d9684e739190e028ab8f | /src/enzo/Grid.h | a8ebaf32599aeb0d6aea501f4038f32b705c179d | [
"NCSA",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | YongseokJo/enzo_gas_clump | 099ca3066e8dc0a6eb936d9019f60f712d0bf726 | 2ea9b041431d87c590663962c046b80fd830d62b | refs/heads/master | 2022-12-30T06:17:36.687468 | 2020-10-19T04:19:39 | 2020-10-19T04:19:39 | 298,421,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 119,557 | h | /***********************************************************************
/
/ GRID CLASS
/
/ written by: Greg Bryan
/ date: November, 1994
/ modified: Many times by AK, DC, RH, JB, DR...
/
/ PURPOSE:
/
************************************************************************/
#ifndef GRID_DEFINED__
#define GRID_DEFINED__
#include <vector>
#include "ProtoSubgrid.h"
#include "ListOfParticles.h"
#include "region.h"
#include "FastSiblingLocator.h"
#include "StarParticleData.h"
#include "AMRH5writer.h"
#include "Star.h"
#include "ActiveParticle.h"
#include "FOF_allvars.h"
#include "MemoryPool.h"
#include "hydro_rk/SuperNova.h"
#ifdef ECUDA
#include "hydro_rk/CudaMHD.h"
#endif
#include "TopGridData.h"
#include "StochasticForcing.h"
extern StochasticForcing Forcing;
struct HierarchyEntry;
#include "EnzoArray.h"
//#ifdef ANALYSIS_TOOLS
#include "../anyl/AnalyzeClusters.h"
//#endif
#ifdef TRANSFER
#include "PhotonPackage.h"
#include "ListOfPhotonsToMove.h"
#endif /* TRANSFER */
#ifdef NEW_PROBLEM_TYPES
#include "ProblemType.h"
#endif
//extern int CommunicationDirection;
//struct ParticleEntry {
// FLOAT Position[3];
// float Mass;
// float Velocity[3];
// float Attribute[MAX_NUMBER_OF_PARTICLE_ATTRIBUTES];
// int Number;
// int Type;
//};
extern int CommunicationDirection;
int FindField(int f, int farray[], int n);
struct LevelHierarchyEntry;
class ActiveParticleType;
class ActiveParticle_AccretingParticle;
class grid
{
#ifdef NEW_PROBLEM_TYPES
protected:
#else
private:
#endif
//
// General grid class data
//
int GridRank; // number of dimensions
int GridDimension[MAX_DIMENSION]; // total dimensions of all grids
int GridStartIndex[MAX_DIMENSION]; // starting index of the active region
// (zero based)
int GridEndIndex[MAX_DIMENSION]; // stoping index of the active region
// (zero based)
FLOAT GridLeftEdge[MAX_DIMENSION]; // starting pos (active problem space)
FLOAT GridRightEdge[MAX_DIMENSION]; // ending pos (active problem space)
int GridLevel; // hierarchy level where this grid lives
float dtFixed; // current (fixed) timestep
FLOAT Time; // current problem time
FLOAT OldTime; // time corresponding to OldBaryonField
int SubgridsAreStatic; //
int ID; // Grid ID Number
int sfSeed;
//
// Baryon grid data
//
int NumberOfBaryonFields; // active baryon fields
float *BaryonField[MAX_NUMBER_OF_BARYON_FIELDS]; // pointers to arrays
float *OldBaryonField[MAX_NUMBER_OF_BARYON_FIELDS]; // pointers to old arrays
float *InterpolatedField[MAX_NUMBER_OF_BARYON_FIELDS]; // For RT and movies
float *RandomForcingField[MAX_DIMENSION]; // pointers to arrays //AK
int FieldType[MAX_NUMBER_OF_BARYON_FIELDS];
FLOAT *CellLeftEdge[MAX_DIMENSION];
FLOAT *CellWidth[MAX_DIMENSION];
float grid_BoundaryMassFluxContainer[MAX_NUMBER_OF_BARYON_FIELDS]; // locally stores mass flux across domain boundary
fluxes *BoundaryFluxes;
// For restart dumps
int NumberOfSubgrids;
fluxes **SubgridFluxStorage;
float CourantSafetyNumber; // Hydro parameter
int PPMFlatteningParameter; // PPM parameter
int PPMDiffusionParameter; // PPM parameter
int PPMSteepeningParameter; // PPM parameter
//
// Particle data
//
int NumberOfParticles;
FLOAT *ParticlePosition[MAX_DIMENSION]; // pointers to position arrays
float *ParticleVelocity[MAX_DIMENSION]; // pointers to velocity arrays
float *ParticleAcceleration[MAX_DIMENSION+1]; //
float *ParticleMass; // pointer to mass array
PINT *ParticleNumber; // unique identifier
int *ParticleType; // type of particle
float *ParticleAttribute[MAX_NUMBER_OF_PARTICLE_ATTRIBUTES];
//
// Star particle data
//
int NumberOfStars;
Star *Stars;
//
// Active particle data
//
float* ActiveParticleAcceleration[MAX_DIMENSION+1];
int NumberOfActiveParticles;
ActiveParticleList<ActiveParticleType> ActiveParticles;
// At present this is synched up in CommunicationSyncNumberOfParticles.
// Therefore below should be accurate as often as NumberOfParticles and
// NumberOfActiveParticles are.
int ActiveParticleTypeCount[MAX_ACTIVE_PARTICLE_TYPES];
// For once-per-rootgrid-timestep star formation, the following flag
// determines whether SF is about to occur or not. It's currently
//(April 2012) only implemented for H2REG_STAR and completely
// ignored for all other star makers.
int MakeStars;
//
// Gravity data
//
float *PotentialField;
float *AccelerationField[MAX_DIMENSION]; // cell cntr acceleration at n+1/2
float *GravitatingMassField;
FLOAT GravitatingMassFieldLeftEdge[MAX_DIMENSION];
int GravitatingMassFieldDimension[MAX_DIMENSION];
FLOAT GravitatingMassFieldCellSize; // all dimensions must be the same
float *GravitatingMassFieldParticles; // for particles only
FLOAT GravitatingMassFieldParticlesLeftEdge[MAX_DIMENSION];
FLOAT GravitatingMassFieldParticlesCellSize;
int GravitatingMassFieldParticlesDimension[MAX_DIMENSION];
gravity_boundary_type GravityBoundaryType;
float PotentialSum;
//
// WS: total energy injection by stochastic forcing
//
float* EnergyInjection;
//
// WS: Initial phase factors and multiplicators for stochastic forcing
//
float* PhaseFctInitEven;
float* PhaseFctInitOdd;
float* PhaseFctMultEven[MAX_DIMENSION];
float* PhaseFctMultOdd[MAX_DIMENSION];
//
// Top grid parallelism (for implicit solvers)
//
int ProcLayout[MAX_DIMENSION];
int ProcLocation[MAX_DIMENSION];
int ProcNeighbors[MAX_DIMENSION][2];
//
// Radiation data
//
#ifdef TRANSFER
float MaxRadiationDt;
#endif
//
// Rebuild Hierarchy Temporaries
//
int *FlaggingField; // Boolean flagging field (for refinement)
float *MassFlaggingField; // Used by mass flagging criteria
float *ParticleMassFlaggingField; // Used by particle mass flagging criteria
//
// Parallel Information
//
int ProcessorNumber;
//
// Movie Data Format
//
int TimestepsSinceCreation; // Not really since creation anymore...
// resets everytime the grid outputs
// density and pressure history for one-zone collapse
// for calculating effective gamma
float **freefall_density;
float **freefall_pressure;
//
// Friends
//
friend int ExternalBoundary::Prepare(grid *TopGrid);
friend int ProtoSubgrid::CopyFlaggedZonesFromGrid(grid *Grid);
friend class Star;
friend class ActiveParticleType;
friend class ActiveParticleType_AccretingParticle;
friend class ActiveParticleType_CenOstriker;
friend class ActiveParticleType_GalaxyParticle;
friend class ActiveParticleType_Kravtsov;
friend class ActiveParticleType_PopIII;
friend class ActiveParticleType_RadiationParticle;
friend class ActiveParticleType_Skeleton;
friend class ActiveParticleType_SmartStar;
friend class ActiveParticleType_SpringelHernquist;
#ifdef NEW_PROBLEM_TYPES
friend class EnzoProblemType;
#endif
#ifdef TRANSFER
#include "PhotonGrid_Variables.h"
#endif
#ifdef ECUDA
//
// CUDA MHD solver data
//
cuMHDData MHDData;
#endif
public:
// -------------------------------------------------------------------------
// Main hydro/AMR functions
//
/* Grid constructor (Set all data to null/default state). */
grid();
/* Grid deconstructor (free up memory usage) */
~grid();
/* Read grid data from a file (returns: success/failure) */
int ReadGrid(FILE *main_file_pointer, int GridID, char DataFilename[],
int ReadText = TRUE, int ReadData = TRUE);
/* Read grid data from a group file (returns: success/failure) */
#ifndef NEW_GRID_IO
int Group_ReadGrid(FILE *fptr, int GridID, HDF5_hid_t file_id,
char DataFilename[],
int ReadText, int ReadData, bool ReadParticlesOnly=false);
#else
int Group_ReadGrid(FILE *main_file_pointer, int GridID, HDF5_hid_t file_id,
char DataFilename[],
int ReadText = TRUE, int ReadData = TRUE,
bool ReadParticlesOnly=false, int ReadEverything = FALSE);
#endif
/* Get field or particle data based on name or integer
defined in typedefs.h. Details are in Grid_CreateFieldArray.C. */
EnzoArrayBool *CreateFieldArrayBool(field_type field);
EnzoArrayBool *CreateFieldArrayBool(char *field_name);
EnzoArrayInt *CreateFieldArrayInt(field_type field);
EnzoArrayInt *CreateFieldArrayInt(char *field_name);
EnzoArrayFloat *CreateFieldArrayFloat(field_type field);
EnzoArrayFloat *CreateFieldArrayFloat(char *field_name);
EnzoArrayFLOAT *CreateFieldArrayFLOAT(field_type field);
EnzoArrayFLOAT *CreateFieldArrayFLOAT(char *field_name);
EnzoArrayPINT *CreateFieldArrayPINT(field_type field);
EnzoArrayPINT *CreateFieldArrayPINT(char *field_name);
/* Write unigrid cubes to a file (returns: success/failure) */
int WriteCube(char *base_name, int grid_id, int TGdims[]);
/* Write grid data to a file (returns: success/failure) */
int WriteGrid(FILE *main_file_pointer, char *base_name, int grid_id);
/* Write grid data to a group file (returns: success/failure) */
#ifndef NEW_GRID_IO
int Group_WriteGrid(FILE *fptr, char *base_name, int grid_id, HDF5_hid_t file_id);
#else
int Group_WriteGrid(FILE *main_file_pointer, char *base_name, int grid_id, HDF5_hid_t file_id, int WriteEverything = FALSE);
#endif
int WriteAllFluxes(hid_t grid_node);
int WriteFluxGroup(hid_t top_group, fluxes *fluxgroup);
int ReadAllFluxes(hid_t grid_node);
int ReadFluxGroup(hid_t top_group, fluxes *fluxgroup);
int FillFluxesFromStorage(int *ThisNumberOfSubgrids,
fluxes ***fluxgroup) {
*ThisNumberOfSubgrids = this->NumberOfSubgrids;
*fluxgroup = this->SubgridFluxStorage;
this->SubgridFluxStorage = NULL;
if(ProcessorNumber != MyProcessorNumber) return -1;
return 0;
}
/* Routines for writing/reading grid hierarchy information to/from
HDF5 hierarchy file */
int WriteHierarchyInformationHDF5(char *base_name, hid_t level_group_id, int level, int ParentGridIDs[], int NumberOfDaughterGrids, int DaughterGridIDs[], int NextGridThisLevelID, int NextGridNextLevelID, FILE *log_fptr);
int ReadHierarchyInformationHDF5(hid_t Hfile_id, int GridID, int &Task, int &NextGridThisLevelID, int &NextGridNextLevelID, char DataFilename[], FILE *log_fptr);
/* Write grid data to separate files (returns: success/failure) */
int WriteGridX(FILE *main_file_pointer, char *base_name, int grid_id);
/* Write task memory map */
int WriteMemoryMap(FILE *file_pointer, char *base_name, int grid_id);
/* Write grid-to-task map */
int WriteTaskMap(FILE *file_pointer, char *base_name, int grid_id);
/* Write grid hierarchy only */
int WriteStuff(FILE *main_file_pointer, char *base_name, int grid_id);
/* Interpolate to specified time and write unigrid cube data to a file
(returns: success/failure). */
int WriteCubeInterpolate(FLOAT WriteTime, char *base_name, int grid_id, int TGdims[]);
/* Interpolate to specified time and write grid data to a file
(returns: success/failure). */
int WriteGridInterpolate(FLOAT WriteTime, FILE *main_file_pointer,
char *base_name, int grid_id);
/* Interpolate to specified time and write grid data to a group file
(returns: success/failure). */
int Group_WriteGridInterpolate(FLOAT WriteTime, FILE *main_file_pointer,
char *base_name, int grid_id, HDF5_hid_t file_id);
int ComputeVectorAnalysisFields(field_type fx, field_type fy, field_type fz,
float* &curl_x, float* &curl_y, float* &curl_z,
float* &div);
private:
int write_dataset(int ndims, hsize_t *dims, const char *name, hid_t group,
hid_t data_type, void *data, int active_only = TRUE,
float *temp=NULL, int *grid_start_index=NULL, int *grid_end_index=NULL,
int *active_dims=NULL, int *data_dims=NULL);
int read_dataset(int ndims, hsize_t *dims, const char *name, hid_t group,
hid_t data_type, void *read_to, int copy_back_active=FALSE,
float *copy_to=NULL, int *active_dims=NULL, int *grid_start_index=NULL,
int *grid_end_index=NULL, int *data_dims=NULL);
int ReadExtraFields(hid_t group_id);
public:
/* Compute the timestep constraint for this grid
(for steps #3 and #4) */
float ComputeTimeStep();
/* Set the timestep in this grid to the timestep in the argument
(for step #3) */
void SetTimeStep(float dt) {dtFixed = dt;};
/* Check timestep (dtFixed) against argument (return fail if dtFixed > dt).
(for step #4) */
int CheckTimeStep(float dt) {return ((dtFixed > dt) ? FAIL : SUCCESS);};
/* Return time, timestep */
FLOAT ReturnTime() {return Time;};
FLOAT ReturnOldTime() {return OldTime;};
float ReturnTimeStep() {return dtFixed;};
/* Return, set grid ID */
void SetGridID(int id) { ID = id; };
int GetGridID(void) { return ID; };
/* Return, set level of this grid */
int GetLevel() { return GridLevel; };
int SetLevel(int level) {
if (level >= 0) {
GridLevel=level;
return SUCCESS;
} else {
return FAIL;
}
};
/* Baryons: return field types. */
int ReturnFieldType(int type[])
{
for (int i = 0; i < NumberOfBaryonFields; i++) type[i] = FieldType[i];
return SUCCESS;
};
/* Baryons: Interpolate (parental) grid in argument to current grid.
(returns success or fail).
(for step #16) */
int InterpolateBoundaryFromParent(grid *ParentGrid);
/* Member functions for dealing with thermal conduction */
int ComputeHeat(float dedt[]); /* Compute Heat */
int ConductHeat(); /* Conduct Heat */
float ComputeConductionTimeStep(float &dt); /* Estimate conduction time-step */
/* FDM: functions for lightboson dark matter */
int ComputeQuantumTimeStep(float &dt); /* Estimate quantum time-step */
/* Solver for Schrodinger Equation */
int SchrodingerSolver( int nhy);
/* Member functions for dealing with Cosmic Ray Diffusion */
int ComputeCRDiffusion(); // CR Diffusion Method
int ComputeCRDiffusionTimeStep(float &dt);
/* Baryons: Copy current solution to Old solution (returns success/fail)
(for step #16) */
int CopyBaryonFieldToOldBaryonField();
int CopyOldBaryonFieldToBaryonField();
/* Copy potential field to baryon potential for output purposes. */
int CopyPotentialToBaryonField();
/* Baryons: Update boundary according to the external boundary values
(for step #16) */
int SetExternalBoundaryValues(ExternalBoundary *Exterior);
/* Baryons: solve hydro equations in this grid (returns: the fluxes of the
subgrids in the argument). Returns SUCCESS or FAIL.
(for step #16) */
int SolveHydroEquations(int CycleNumber, int NumberOfSubgrids,
fluxes *SubgridFluxes[], int level);
/* Baryons: return pointer to the BoundaryFluxes of this grid */
int ReturnFluxDims(fluxes &f, int RefinementFactors[]);
/* Baryons: prepare and clear the accumulated boundary fluxes for this grid.
(for step #16) */
void PrepareBoundaryFluxes();
void ClearBoundaryFluxes();
/* Baryons: projected solution in current grid to the grid in the
argument which must have a lower resolution (i.e. downsample
the current grid to the appropriate level).
(for step #18) */
int ProjectSolutionToParentGrid(grid &ParentGrid);
/* Baryons: return boundary fluxes from this grid. Downsample them to
the refinement factors specified in the argument.
Returns FAIL or SUCCESS.
(for step #19) */
int GetProjectedBoundaryFluxes(grid *ParentGrid, fluxes &ProjectedFluxes);
/* Return the refinement factors as compared to the grid in the argument
(integer version) (for step #19) */
void ComputeRefinementFactors(grid *SubGrid, int RefinementFactors[]) {
int dim;
for (dim = 0; dim < GridRank; dim++) RefinementFactors[dim] =
int( CellWidth[dim][0] / SubGrid->CellWidth[dim][0] + 0.5);
for (dim = GridRank; dim < MAX_DIMENSION; dim++)
RefinementFactors[dim] = 1;
};
/* Return the refinement factors as compared to the grid in the argument
(float version) (for step #19) */
void ComputeRefinementFactorsFloat(grid *SubGrid, float Factors[]) {
int dim;
for (dim = 0; dim < GridRank; dim++) Factors[dim] =
(*CellWidth[dim]) / (*(SubGrid->CellWidth[dim]));;
for (dim = GridRank; dim < MAX_DIMENSION; dim++)
Factors[dim] = 1.0;
};
/* Baryons: Search for redundant overlap between two sets of fluxes (other
and refined). If found, set the refined fluxes equal to the
initial fluxes so there will be no double corrections.(step #19) */
void CorrectRedundantFluxes(fluxes *OtherFluxes, fluxes *InitialFluxes,
fluxes *RefinedFluxes);
/* Baryons: correct for better flux estimates produced by subgrids
(i.e given the initial flux estimates and the subgrid flux
estimates, correct the grid to account for the subgrid
flux estimates). Returns SUCCESS or FAIL.
(for step #19) */
int CorrectForRefinedFluxes(fluxes *InitialFluxes, fluxes *RefinedFluxes,
fluxes *BoundaryFluxesThisTimeStep,
int SUBlingGrid,
TopGridData *MetaData);
/* Baryons: add the fluxes pointed to by the argument to the boundary fluxes
of this grid (sort of for step #16). Note that the two fluxes
must have the same size. */
int AddToBoundaryFluxes(fluxes *BoundaryFluxesToBeAdded);
/* set new time (time += dt)
(step #21) */
void SetTimeNextTimestep() {Time += dtFixed;};
void SetTimePreviousTimestep() {Time -= dtFixed;};
/* set time of this grid (used in setup) */
void SetTime(FLOAT NewTime) {Time = NewTime;};
/* set hydro parameters (used in setup) */
void SetHydroParameters(float co, int p1, int p2, int p3)
{
CourantSafetyNumber = co;
PPMFlatteningParameter = p1;
PPMDiffusionParameter = p2;
PPMSteepeningParameter = p3;
}
/* Problem-type-specific: compute approximate ratio of pressure
gradient force to gravitational force for one-zone collapse test. */
int ComputeOneZoneCollapseFactor(float *force_factor);
/* Baryons: compute the pressure at the requested time. */
int ComputePressure(FLOAT time, float *pressure,
float MinimumSupportEnergyCoefficient=0,
int IncludeCRs=0);
/* Baryons: compute the pressure at the requested time using the dual energy
formalism. */
int ComputePressureDualEnergyFormalism(FLOAT time, float *pressure);
/* Baryons: compute the temperature. */
int ComputeTemperatureField(float *temperature,int IncludeCRs=0);
/* Baryons: compute the temperature at the requested time using
Gadget equilibrium cooling. */
int GadgetComputeTemperature(FLOAT time, float *temperature);
/* Baryons: compute the temperatre at the requested time using the dual energy
formalism when using Gadget equilibrium cooling. */
int GadgetComputeTemperatureDEF(FLOAT time, float *temperature);
/* Baryons: compute the dust temperature. */
int ComputeDustTemperatureField(float *temperature, float *dust_temperature);
/* Baryons: compute X-ray emissivity in specified band. */
int ComputeXrayEmissivity(float *temperature,
float *xray_emissivity, float keV1, float keV2,
char *XrayFileName);
/* Baryons: compute number density of ionized elements (just O7 and O8). */
int ComputeElementalDensity(float *temperature, float *elemental_density,
int Type);
/* Baryons: compute the ratio of specific heats. */
int ComputeGammaField(float *GammaField);
/* Baryons: compute the cooling time. */
int ComputeCoolingTime(float *cooling_time, int CoolingTimeOnly=FALSE);
/* Baryons & DualEnergyFormalism: Restore consistency between total and
internal energy fields. */
int RestoreEnergyConsistency(int Region);
/* Returns some grid info. */
int ReturnGridInfo(int *Rank, int Dims[], FLOAT Left[], FLOAT Right[]);
/* Subtracts kinetic component from total energy. */
int ConvertTotalEnergyToGasEnergy();
/* Sets the energy to provide Jean's level support (Zeus: returns coeff). */
int SetMinimumSupport(float &MinimumSupportEnergyCoefficient);
/* Debugging support. */
int DebugCheck(const char *message = "Debug");
#ifdef EMISSIVITY
/* define function prototype as a grid member function */
int ClearEmissivity();
int CheckEmissivity();
#endif
// -------------------------------------------------------------------------
// Functions used for analysis
//
/* Calculate the angular momentum of a grid (given center). */
int CalculateAngularMomentum(FLOAT Center[], float AngularMomentum[],
float MeanVelocity[], float DMVelocity[],
FLOAT CenterOfMass[], FLOAT DMCofM[]);
/* Find and track density peaks. */
int AnalyzeTrackPeaks(int level, int ReportLevel);
/* Project some of the fields to a plane. */
int ProjectToPlane(FLOAT ProjectedFieldLeftEdge[],
FLOAT ProjectedFieldRightEdge[],
int ProjectedFieldDims[], float *ProjectedField[],
int ProjectionDimension, int ProjectionSmooth,
int NumberOfProjectedFields, int level,
int XrayUseLookupTable, float XrayLowerCutoffkeV,
float XrayUpperCutoffkeV, char *XrayFileName);
int ProjectToPlane2(FLOAT ProjectedFieldLeftEdge[],
FLOAT ProjectedFieldRightEdge[],
int ProjectedFieldDims[], float *ProjectedField[],
int ProjectionDimension, int ProjectionSmooth,
int NumberOfProjectedFields, int level,
int MetalLinesUseLookupTable, char *MetalLinesFilename);
/* Set the fields to zero under the active region of the specified subgrid. */
int ZeroSolutionUnderSubgrid(grid *Subgrid, int FieldsToZero,
float Value = 1.0, int AllProcessors = FALSE,
int IncludeGhostZones = FALSE);
/* Convert the grid data to particle data for output. */
int OutputAsParticleData(FLOAT RegionLeftEdge[], FLOAT RegionRightEdge[],
ListOfParticles *ParticleList[NUM_PARTICLE_TYPES],
float BaseRadius);
/* Output star particles to a binary file */
int OutputStarParticleInformation(FILE *StarFile);
/* Return some information about the grid. */
int CollectGridInformation(int &GridMemory, float &GridVolume,
int &NumberOfCells, float &AxialRatio,
int &CellsTotal, int &Particles);
/* Output grid information (for movie generation). */
int OutputGridMovieData(FILE *Gridfptr, FILE *DMfptr, FILE *Starfptr,
FLOAT RegionLeftEdge[], FLOAT RegionRightEdge[],
FLOAT WriteOutTime, int NumberOfPoints[3],
int NumberOfValuesPerPoint[3],
char *PointValueNames[3][20], float BaseRadius);
/* Output movie data (sequential format) */
int WriteNewMovieData(FLOAT RegionLeftEdge[], FLOAT RegionRightEdge[],
int RootResolution, FLOAT StopTime,
AMRHDF5Writer &AmiraGrid,
int lastMovieStep, int TopGridCycle,
int WriteMe, int MovieTimestepCounter, int open,
FLOAT WriteTime,
int alreadyopened[][MAX_DEPTH_OF_HIERARCHY] = NULL,
int NumberOfStarParticlesOnProcOnLvl[][MAX_DEPTH_OF_HIERARCHY] = NULL);
int WriteNewMovieDataSeparateParticles(FLOAT RegionLeftEdge[], FLOAT RegionRightEdge[],
FLOAT StopTime, AMRHDF5Writer &AmiraGrid,
int lastMovieStep, int WriteMe,
FLOAT WriteTime, int alreadyopened[],
int NumberOfStarParticlesOnProc[]);
int ReturnMovieTimestep() { return TimestepsSinceCreation; };
/* Output tracer particle information (interpolated from baryon grid). */
int TracerParticleOutputData(FILE *ptr, FLOAT WriteOutTime);
// -------------------------------------------------------------------------
// Functions for radiative cooling and multi-species rate equations
//
/* Handle the selection of cooling and chemistry modules */
int MultiSpeciesHandler();
/* Wrap the grackle chemistry solver. */
int GrackleWrapper();
/* Handle the selection of shock finding algorithm */
int ShocksHandler();
/* Solve the radiative cooling/heating equations */
int SolveRadiativeCooling();
/* Solve the rate equations. */
int SolveRateEquations();
/* Solve the joint rate and radiative cooling/heating equations */
int SolveRateAndCoolEquations(int RTCoupledSolverIntermediateStep);
/* Compute densities of various species for RadiationFieldUpdate. */
int RadiationComputeDensities(int level);
// -------------------------------------------------------------------------
// Functions for Gadget cooling
/* Driving routine for Gadget equilibrium cooling */
int GadgetCalculateCooling(float *d, float *e, float *ge,
float *u, float *v, float *w,
int *in, int *jn, int *kn,
int *iexpand, hydro_method *imethod,
int *idual, int *idim,
int *is, int *js, int *ks, int *ie, int *je,
int *ke, float *dt, float *aye,
float *fh, float *utem, float *uxyz,
float *uaye, float *urho, float *utim,
float *gamma);
/* Computes cooling time using gadget equilibrium cooling */
int GadgetCoolingTime(float *d, float *e, float *ge,
float *u, float *v, float *w,
float *cooltime,
int *in, int *jn, int *kn,
int *iexpand, hydro_method *imethod, int *idual, int *idim,
int *is, int *js, int *ks, int *ie, int *je,
int *ke, float *dt, float *aye,
float *fh, float *utem, float *uxyz,
float *uaye, float *urho, float *utim,
float *gamma);
/* calculates abundances and rates using Gadget equilibrium cooling */
void Gadgetfind_abundances_and_rates(float logT, float rho, float *ne_guess);
/* calculates temperature using Gadget equilibrium cooling */
float Gadgetconvert_u_to_temp(float u, float rho, float *ne_guess);
/* calculates cooling rates (not cooling time) using Gadget equilibrium cooling
and gas temperature */
float GadgetCoolingRate(float logT, float rho, float *nelec, float redshift);
/* wrapper for GadgetCoolingRate */
float Gadget_EquilibriumCooling(float u_old, float rho, float dt,
float *ne_guess, float *utem, float *uxyz,
float *uaye, float *urho,
float *utim, float redshift);
/* calculates cooling rate (not cooling time) using energy instead of temperature
for Gadget equil. cooling */
float GadgetCoolingRateFromU(float u, float rho, float *ne_guess,
float redshift);
// Functions for shock finding
//
int FindShocks();
int FindTempSplitShocks();
int FindVelShocks();
int FindVelSplitShocks();
// -------------------------------------------------------------------------
// Functions for grid (re)generation.
//
/* Remove un-needed arrays before rebuilding. */
void CleanUp();
/* Delete all the fields, but leave other grid data. */
void DeleteAllFields();
/* Delete all the fields except for the particle data */
void DeleteAllButParticles();
/* Delete all the baryon fields */
void DeleteBaryonFields();
/* Sum particle mass flagging fields into ProcessorNumber if particles
aren't local. */
int SetParticleMassFlaggingField(int StartProc=0, int EndProc=0, int level=-1,
int ParticleMassMethod=-1, int MustRefineMethod=-1,
int *SendProcs=NULL,
int NumberOfSends=0);
int CollectParticleMassFlaggingField(void);
void ClearParticleMassFlaggingField(void);
/* Clear mass flagging field (gg #1) */
void ClearMassFlaggingField();
/* Clear boolean flagging field (gg #0) */
void ClearFlaggingField();
/* Set boolean flagging field */
int SetFlaggingField(int &NumberOfFlaggedCells, int level);
/* Set flagging field from refine regions */
int SetFlaggingFieldMultiRefineRegions(int level);
/* Set flagging field from static regions */
int SetFlaggingFieldStaticRegions(int level, int &NumberOfFlaggedCells);
/* Delete flagging field */
void DeleteFlaggingField();
/* Particles: deposit particles living in this grid into the Mass Flagging
field (gg #2) */
void DepositParticlesToMassFlaggingField() {};
/* Particles: deposit particles to particle mass flagging field. */
int DepositMustRefineParticles(int pmethod, int level,
bool KeepFlaggingField);
/* Particles: deposit regions in the feedback zone to ensure flagging */
int DepositRefinementZone(int level, FLOAT* ParticlePosition, FLOAT RefinementRadius);
/* baryons: add baryon density to mass flaggin field (so the mass flagging
field contains the mass in the cell (not the density)
(gg #3) */
int AddFieldMassToMassFlaggingField();
/* Flag all points where we are forbidding refinement from a color field */
int FlagCellsToAvoidRefinement();
/* Flag all points in a region where refinement is not needed */
int FlagCellsToAvoidRefinementRegion(int level);
/* Flag all points that require refining (and delete Mass Flagging Field).
Returns the number of flagged cells. Returns the number of flagged cells
(gg #4) */
int FlagCellsToBeRefinedByMass(int level, int method, int RestrictFlag);
/* Flag all points that require refining by their slope.
Returns the number of flagged cells. Returns the number of flagged cells
(gg #4) */
int FlagCellsToBeRefinedBySlope();
/* Flag all points that require refining by their slope.
Returns the number of flagged cells. Returns the number of flagged cells
(gg #4) */
int FlagCellsToBeRefinedBySecondDerivative();
/* Flag all points that require refinging by the presence of shocks.
Returns the number of flagged cells. Returns the number of flagged cells
(gg #4) */
int FlagCellsToBeRefinedByShocks();
/* Flag all points based on the Mach number of the shock. */
int FlagCellsToBeRefinedByShockwaves(int level);
/* Flag all points that require refining by the Jean's length criterion. */
int FlagCellsToBeRefinedByJeansLength();
/* Flag all points that require refining by the total Jean's length criterion. (Tom Abel 10/2010) */
int FlagCellsToBeRefinedByTotalJeansLength();
/* Flag all points that require refining by the Resistive Scale length criterion.
abs(B)/abs(curl(B)) should be larger than cell size*/
int FlagCellsToBeRefinedByResistiveLength();
/* Flag all points that require refining by Shear. */
int FlagCellsToBeRefinedByShear();
/* Flag all cells for which tcool < dx/sound_speed. */
int FlagCellsToBeRefinedByCoolingTime();
/* Flag particles within the MustRefineParticles region as MustRefine Particles */
int MustRefineParticlesFlagInRegion();
/* Flag MustRefine Particles from list */
int MustRefineParticlesFlagFromList();
/* Flag all cells which are within a user-specified refinement region. */
int FlagCellsToBeRefinedByMustRefineRegion(int level);
/* Flag all cells which are above a user-specified metallicity. */
int FlagCellsToBeRefinedByMetallicity(int level);
/* Flag all cells which have more than a specified metal mass */
int FlagCellsToBeRefinedByMetalMass(int level);
/* Flagging all cell adjacent to a previous flagged cell. Also, remove all
Flagged cells in the boundary zones and within one zone of the boundary. */
int FlagBufferZones();
/* Identify new subgrids for this grid (and prove Fermat's last theorem too)
(gg #5) */
void IdentifyNewSubgrids(GridList &list);
/* Identify new subgrids for this grid (1x1x1 subgrids).
(gg #5) */
void IdentifyNewSubgridsSmall(GridList &list);
/* Coalesce neighbouring subgrids */
// void CoalesceSubgrids(GridList &list);
/* Inherit properties (rank, baryon field types, etc.) from ParentGrid
(gg # 5,6) */
void InheritProperties(grid *ParentGrid);
/* set the grid dimensions, left, right edges and cell quantities based
on arguments (gg #5,6) */
void PrepareGrid(int Rank, int Dimensions[],
FLOAT LeftEdge[], FLOAT RightEdge[], int NumParticles);
/* Allocates space for grids (dims and NumberOfBaryonFields must be set). */
void AllocateGrids();
/* set the grid derived quantites (CellLeftEdge, CellWidth & BoundaryFluxes) */
void PrepareGridDerivedQuantities();
/* baryons: interpolate field values from the Parent Grid (gg #6).
Returns SUCCESS or FAIL. */
int InterpolateFieldValues(grid *ParentGrid ,
LevelHierarchyEntry * OldFineLevel, TopGridData * MetaData);
/* Interpolate one radiation field. Based on InterpolateFieldValues
but removed all of the conservative stuff. */
int InterpolateRadiationFromParent(grid *ParentGrid, int Field);
/* baryons: check for coincident zones between grids & copy if found.
(correctly includes periodic boundary conditions). */
int CheckForOverlap(grid *OtherGrid,
boundary_type LeftFaceBoundaryCondition[],
boundary_type RightFaceBoundaryCondition[],
int (grid::*CopyFunction)(grid *OtherGrid,
FLOAT EdgeOffset[]));
/* baryons: check for subgrids adjacent to external boundary with reflecting BCs. */
int CheckForExternalReflections(
boundary_type LeftFaceBoundaryCondition[],
boundary_type RightFaceBoundaryCondition[]);
/* David Collins flux correction - July 2005 */
int CheckForSharedFace(grid *OtherGrid,
boundary_type LeftFaceBoundaryCondition[],
boundary_type RightFaceBoundaryCondition[]);
int CheckForSharedFaceHelper(grid *OtherGrid,
FLOAT EdgeOffset[MAX_DIMENSION]);
/* baryons: check for overlap between grids & return TRUE if it exists
(correctly includes periodic boundary conditions). */
int CheckForPossibleOverlap(grid *OtherGrid,
boundary_type LeftFaceBoundaryCondition[],
boundary_type RightFaceBoundaryCondition[]);
int CheckForPossibleOverlapHelper(grid *OtherGrid,
FLOAT EdgeOffset[MAX_DIMENSION]);
/* baryons: copy coincident zone from the (old) grid in the argument
(gg #7). Return SUCCESS or FAIL. */
int CopyZonesFromGrid(grid *GridOnSameLevel,
FLOAT EdgeOffset[MAX_DIMENSION]);
int CopyActiveZonesFromGrid(grid *GridOnSameLevel,
FLOAT EdgeOffset[MAX_DIMENSION], int SendField);
/* gravity: copy coincident potential field zones from grid in the argument
(gg #7). Return SUCCESS or FAIL. */
int CopyPotentialField(grid *GridOnSameLevel,
FLOAT EdgeOffset[MAX_DIMENSION]);
/* baryons: check for coincident zone from the (old) grid in the argument
(gg #7). Return SUCCESS or FAIL. */
int CopyZonesFromGridCountOnly(grid *GridOnSameLevel, int &Overlap);
/* Returns whether or not the subgrids of this grid are static. */
int AreSubgridsStatic() {return SubgridsAreStatic;};
/* Check the energy conservation. */
int ComputeEnergy(float EnergySum[]);
/* These two routines add grids to the chaining mesh used in the
FastSiblingLocator method and use the chaining mesh to find
possible siblings. */
int FastSiblingLocatorAddGrid(ChainingMeshStructure *mesh);
int FastSiblingLocatorFindSiblings(ChainingMeshStructure *mesh,
SiblingGridList *list,
boundary_type LeftBoundaryCondition[],
boundary_type RightBoundaryCondition[]);
/* hack: add density squared field to grid (used in ExtractSection). */
void CreateDensitySquaredField() {
int size = GridDimension[0]*GridDimension[1]*GridDimension[2];
BaryonField[NumberOfBaryonFields] = new float[size];
for (int i = 0; i < size; i++)
BaryonField[NumberOfBaryonFields][i] =
BaryonField[0][i]*BaryonField[0][i];
FieldType[NumberOfBaryonFields++] = Density;
};
void PrintBaryonFieldValues(int field, int index)
{fprintf(stdout, "Baryonfield[field = %"ISYM"][index = %"ISYM"] = %g\n",
field, index, BaryonField[field][index]);};
// -------------------------------------------------------------------------
// Functions for use with gravity.
//
/* Set the gravity boundary type of a grid. */
void SetGravityParameters(gravity_boundary_type Boundary) {
GravityBoundaryType = Boundary;};
gravity_boundary_type ReturnGravityBoundaryType()
{return GravityBoundaryType;};
/* Gravity: Initialize, the gravitating Mass Field
(for steps #5, #6). */
int InitializeGravitatingMassField(int RefinementFactor);
/* Gravity: Initialize, the particle component of the mass field. */
int InitializeGravitatingMassFieldParticles(int RefinementFactor);
/* Gravity: allocate & clear the GravitatingMassField. */
int ClearGravitatingMassField();
/* Gravity & baryons: Copy the parent density field to the extra boundary
region of GravitatingMassField (if any). */
int CopyParentToGravitatingFieldBoundary(grid *ParentGrid);
/* Gravity & Particles: allocate & clear the GravitatingMassFieldParticles. */
int ClearGravitatingMassFieldParticles();
/* Baryons: add the baryon mass to the GravitatingMassField. */
int AddBaryonsToGravitatingMassField();
/* Generic deposit particles/grids to grid (either GravitatingMassField or
GravitatingMassFieldParticles depending on the value of DepositField). */
int DepositPositions(FLOAT *Positions[], float *Mass, int Number,
int DepositField);
/* deposit particles/grids to grid (if they are on the grid). */
/* int DepositPositionsEdgeOff(float *Positions[], float *Mass, int Number);*/
/* Gravity: Difference potential to get acceleration field. */
int ComputeAccelerationField(int DifferenceType, int level);
/* Gravity: Interpolate accelerations from other grid. */
int InterpolateAccelerations(grid *FromGrid);
/* Gravity: Compute particle and grid accelerations. */
int ComputeAccelerations(int level);
/* Particles: add overlapping ParticleMassField to Target's
GravitatingMassField. */
int CopyOverlappingMassField(grid *TargetGrid,
FLOAT EdgeOffset[MAX_DIMENSION]);
/* Gravity: Allocate and make initial guess for PotentialField. */
int PreparePotentialField(grid *ParentGrid);
/* Gravity: Allocate and make initial guess for PotentialField. */
int SolveForPotential(int level, FLOAT PotentialTime = -1);
/* Gravity: Prepare the Greens Function. */
int PrepareGreensFunction();
int PreparePeriodicGreensFunction(region *GreensRegion);
/* Gravity: Copy potential/density into/out of FFT regions. */
int PrepareFFT(region *InitialRegion, int Field, int DomainDim[]);
int FinishFFT(region *InitialRegion, int Field, int DomainDim[]);
/* Gravity: set the potential boundary for isolated BC's */
int SetIsolatedPotentialBoundary();
/* Gravity: Set the external acceleration fields. */
int ComputeAccelerationFieldExternal();
/* Gravity: Set the external acceleration fields from external potential. */
int ComputeAccelerationsFromExternalPotential(int DifferenceType,
float *ExternalPotential,
float *Field[]);
/* Gravity: Add fixed, external potential to baryons & particles. */
int AddExternalPotentialField(float *field);
/* Particles + Gravity: Clear ParticleAccleration. */
int ClearParticleAccelerations();
/* Baryons + Gravity: Interpolate the AccelerationField in FromGrid to
AccelerationFieldForCells at the GridPositions in this grid. */
int InterpolateGridPositions(grid *FromGrid);
/* Particles + Gravity: Interpolate the AccelerationField in FromGrid to
ParticleAcceleration at the ParticlePositions in this grid. */
int InterpolateParticlePositions(grid *FromGrid, int DifferenceType);
/* Generic routine for interpolating particles/grid. */
int InterpolatePositions(FLOAT *Positions[], int dim, float *Field,
int Number);
/* Gravity: Delete GravitatingMassField. */
void DeleteGravitatingMassField() {
delete [] GravitatingMassField;
GravitatingMassField = NULL;
};
/* Gravity: Init GravitatingMassField. */
void InitGravitatingMassField(int size) {
GravitatingMassField = new float[size];
}
/* Gravity */
int ReturnGravitatingMassFieldDimension(int dim) {
return GravitatingMassFieldDimension[dim];
}
/* Gravity: Delete AccelerationField. */
void DeleteAccelerationField() {
if (!((SelfGravity || UniformGravity || PointSourceGravity || ExternalGravity))) return;
for (int dim = 0; dim < GridRank; dim++) {
delete [] AccelerationField[dim];
AccelerationField[dim] = NULL;
}
};
/* Gravity: Add fixed, external acceleration to baryons & particles. */
int AddExternalAcceleration();
/* Gravity: deposit baryons into target GravitatingMassField. */
int DepositBaryons(grid *TargetGrid, FLOAT DepositTime);
// -------------------------------------------------------------------------
// Functions for accessing various grid-based information
//
int GetGridRank() {return GridRank;}
int GetGridDimension(int Dimension) {return GridDimension[Dimension];}
int GetGridStartIndex(int Dimension) {return GridStartIndex[Dimension];}
int GetGridEndIndex(int Dimension) {return GridEndIndex[Dimension];}
int GetActiveSize() {
int dim, size;
for (dim = 0, size = 1; dim < GridRank; dim++) {
size *= GridEndIndex[dim] - GridStartIndex[dim] + 1;
}
return size;
}
int GetGridSize() {
int dim, size;
for (dim = 0, size = 1; dim < GridRank; dim++)
size *= GridDimension[dim];
return size;
}
FLOAT GetGridLeftEdge(int Dimension) {return GridLeftEdge[Dimension];}
FLOAT GetGridRightEdge(int Dimension) {return GridRightEdge[Dimension];}
FLOAT GetCellWidth(int Dimension, int index) {return CellWidth[Dimension][index];}
FLOAT GetCellLeftEdge(int Dimension, int index) {return CellLeftEdge[Dimension][index];}
int PrepareBoundaryMassFluxFieldNumbers();
int ComputeDomainBoundaryMassFlux(float *allgrid_BoundaryMassFluxContainer,
TopGridData *MetaData);
#ifdef TRANSFER
// -------------------------------------------------------------------------
// Functions for use with coupled radiation-hydrodynamics solver.
//
void SetMaxRadiationDt(float MaxRadDt) {MaxRadiationDt = MaxRadDt;}
#endif
// -------------------------------------------------------------------------
// Functions for accessing specific baryon fields
// (all sources combined in the file Grid_AccessBaryonFields.C)
//
float* AccessDensity();
float* AccessTotalEnergy();
float* AccessGasEnergy();
float* AccessVelocity1();
float* AccessVelocity2();
float* AccessVelocity3();
float* AccessElectronDensity();
float* AccessHIDensity();
float* AccessHIIDensity();
float* AccessHeIDensity();
float* AccessHeIIDensity();
float* AccessHeIIIDensity();
float* AccessHMDensity();
float* AccessH2IDensity();
float* AccessH2IIDensity();
float* AccessDIDensity();
float* AccessDIIDensity();
float* AccessHDIDensity();
float* AccessSNColour();
float* AccessMetallicity();
float* AccessExtraType0();
float* AccessExtraType1();
float* AccessKPhHI();
float* AccessPhotoGamma();
float* AccessKPhHeI();
float* AccessGammaHeI();
float* AccessKPhHeII();
float* AccessGammaHeII();
float* AccessKDissH2I();
float* AccessKPhHM();
float* AccessKDissH2II();
float* AccessGravPotential();
float* AccessAcceleration0();
float* AccessAcceleration1();
float* AccessAcceleration2();
float* AccessRadPressure0();
float* AccessRadPressure1();
float* AccessRadPressure2();
float* AccessEmissivity0();
float* AccessRadiationFrequency0();
float* AccessRadiationFrequency1();
float* AccessRadiationFrequency2();
float* AccessRadiationFrequency3();
float* AccessRadiationFrequency4();
float* AccessRadiationFrequency5();
float* AccessRadiationFrequency6();
float* AccessRadiationFrequency7();
float* AccessRadiationFrequency8();
float* AccessRadiationFrequency9();
// -------------------------------------------------------------------------
// Functions for accessing top-grid parallelism information
// (note: information only available/valid for this level)
//
/* Processor layout: get and set the number of procs in each
dim within the cartesian processor grid
(1-based, i.e. {1 1 1} defines a single-processor layout) */
int GetProcessorLayout(int Dimension) {return ProcLayout[Dimension];}
void SetProcessorLayout(int Dimension, int procs) {
if (Dimension < 0 || Dimension > MAX_DIMENSION)
fprintf(stderr,"SetProcessorLayout: invalid Dimension.\n");
else
if (procs > 0) ProcLayout[Dimension] = procs;
else fprintf(stderr,"SetProcessorLayout: invalid procs value.\n");
}
/* Processor location: get and set the location of this grid's proc
within the cartesian processor grid defined in ProcLayout
(0-based, i.e. {0 0 0} defines the 1st proc in each dimension) */
int GetProcessorLocation(int Dimension) {return ProcLocation[Dimension];}
void SetProcessorLocation(int Dimension, int location) {
if (Dimension < 0 || Dimension > MAX_DIMENSION)
fprintf(stderr,"SetProcessorLocation: invalid Dimension.\n");
else
if (location >= 0) ProcLocation[Dimension] = location;
else fprintf(stderr,"SetProcessorLocation: invalid location.\n");
}
/* Processor neighbors: get and set the grid IDs (not MPI process IDs) of this
grid's neighbors within the cartesian processor grid defined in ProcLayout.
Get... returns the {left=0,right=1} neighbor grid ID in a given dim
Set... provides access to set neighbor information into the grid */
int GetProcessorNeighbors(int Dimension, int LR) {
return ProcNeighbors[Dimension][LR];}
void SetProcessorNeighbors(int Dimension, int LR, int NBid) {
if (Dimension < 0 || Dimension > MAX_DIMENSION)
fprintf(stderr,"SetProcessorNeighbors: invalid Dimension.\n");
else
if (LR < 0 || LR > 1)
fprintf(stderr,"SetProcessorNeighbors: invalid neighbor.\n");
else
if (NBid >= 0) ProcNeighbors[Dimension][LR] = NBid;
else fprintf(stderr,"SetProcessorNeighbors: invalid grid ID.\n");
}
// -------------------------------------------------------------------------
// Functions for use with particles.
//
/* Particles: Deposit particles in the specified field (DepositField) of the
TargetGrid at the given time. */
int DepositParticlePositions(grid *TargetGrid, FLOAT DepositTime,
int DepositField);
int DepositParticlePositionsLocal(FLOAT DepositTime, int DepositField,
bool BothFlags);
/* Particles: add overlapping ParticleMassField to Target's
GravitatingMassField. */
int AddOverlappingParticleMassField(grid *TargetGrid,
FLOAT EdgeOffset[MAX_DIMENSION]);
/* Particles: Apply particle acceleration to velocity for particles in this
grid
(for step #9) */
int UpdateParticleVelocity(float TimeStep);
/* Particles: Update particle positions (push)
(for step #13) */
int UpdateParticlePosition(float TimeStep, int OffProcessorUpdate = FALSE);
/* Particles: Move particles from TargetGrid to this grid. */
int MoveAllParticles(int NumberOfGrids, grid* TargetGrids[]);
int MoveAllParticlesOld(int NumberOfGrids, grid* TargetGrids[]);
/* Particles: Move particles that lie within this grid from the TargetGrid
to this grid. */
// int MoveSubgridParticles(grid *TargetGrid);
int MoveSubgridParticles(grid *TargetGrid,
int *Counter,
PINT *Number,
int *Type,
float *Mass,
FLOAT *Position[],
float *Velocity[],
float *Attribute[]);
/* Particles: same as above, but a version that is much more efficient. */
int MoveSubgridParticlesFast(int NumberOfSubgrids, grid *ToGrids[],
int AllLocal);
/* Particles: Clean up moved particles (from MoveSubgridParticles). */
int CleanUpMovedParticles();
/* Particles: delete accleration fields. */
void DeleteParticleAcceleration() {
if (!((SelfGravity || UniformGravity || PointSourceGravity))) return;
for (int dim = 0; dim < GridRank+ComputePotential; dim++) {
delete [] ParticleAcceleration[dim];
ParticleAcceleration[dim] = NULL;
delete [] ActiveParticleAcceleration[dim];
ActiveParticleAcceleration[dim] = NULL;
}
};
/* Particles & Gravity: Delete GravitatingMassField. */
void DeleteGravitatingMassFieldParticles() {
delete [] GravitatingMassFieldParticles;
GravitatingMassFieldParticles = NULL;
GravitatingMassFieldParticlesCellSize = FLOAT_UNDEFINED;
};
/* Particles: return number of particles. */
int ReturnNumberOfParticles() {return NumberOfParticles;};
int ReturnNumberOfActiveParticles() {return NumberOfActiveParticles;};
int ReturnNumberOfActiveParticlesOfThisType(int ActiveParticleIDToFind);
ActiveParticleList<ActiveParticleType>& ReturnActiveParticles() {return Act\
iveParticles;};
int ReturnNumberOfStarParticles(void);
/* Particles: set number of particles. */
void SetNumberOfParticles(int num) {NumberOfParticles = num;};
void SetNumberOfActiveParticles(int num) {NumberOfActiveParticles = num;};
void SetActiveParticleTypeCounts(int type, int count)
{ ActiveParticleTypeCount[type] = count; };
/* Particles: delete particle fields and set null. */
void DeleteParticles() {
if (ParticleMass != NULL) delete [] ParticleMass;
if (ParticleNumber != NULL) delete [] ParticleNumber;
if (ParticleType != NULL) delete [] ParticleType;
ParticleMass = NULL;
ParticleNumber = NULL;
ParticleType = NULL;
for (int dim = 0; dim < GridRank; dim++) {
if (ParticlePosition[dim] != NULL) delete [] ParticlePosition[dim];
if (ParticleVelocity[dim] != NULL) delete [] ParticleVelocity[dim];
ParticlePosition[dim] = NULL;
ParticleVelocity[dim] = NULL;
}
for (int i = 0; i < NumberOfParticleAttributes; i++) {
if (ParticleAttribute[i] != NULL) delete [] ParticleAttribute[i];
ParticleAttribute[i] = NULL;
}
};
void DeleteActiveParticles() {
NumberOfActiveParticles = 0;
this->ActiveParticles.clear();
}
void CorrectActiveParticleCounts() {
NumberOfActiveParticles = ActiveParticles.size();
}
/* Particles: allocate new particle fields. */
void AllocateNewParticles(int NumberOfNewParticles) {
ParticleMass = new float[NumberOfNewParticles];
ParticleNumber = new PINT[NumberOfNewParticles];
ParticleType = new int[NumberOfNewParticles];
for (int dim = 0; dim < GridRank; dim++) {
ParticlePosition[dim] = new FLOAT[NumberOfNewParticles];
ParticleVelocity[dim] = new float[NumberOfNewParticles];
}
for (int i = 0; i < NumberOfParticleAttributes; i++)
ParticleAttribute[i] = new float[NumberOfNewParticles];
};
/* Particles: Copy pointers passed into into grid. */
void SetParticlePointers(float *Mass, PINT *Number, int *Type,
FLOAT *Position[],
float *Velocity[], float *Attribute[]) {
ParticleMass = Mass;
ParticleNumber = Number;
ParticleType = Type;
for (int dim = 0; dim < GridRank; dim++) {
ParticlePosition[dim] = Position[dim];
ParticleVelocity[dim] = Velocity[dim];
}
for (int i = 0; i < NumberOfParticleAttributes; i++)
ParticleAttribute[i] = Attribute[i];
};
/* Particles: Set new star particle index. */
void SetNewParticleIndex(int &NumberCount1, PINT &NumberCount2);
void SetNewActiveParticleIndex(PINT &NumberCount);
/* Particles: Set new star particle index. - Old version */
void SetNewParticleIndexOld(int &NumberCount, int BaseNumber) {
for (int n = 0; n < NumberOfParticles; n++)
if (ParticleNumber[n] == INT_UNDEFINED)
ParticleNumber[n] = BaseNumber + NumberCount++;
};
/* Particles: Add given number to particle index. */
void AddToParticleNumber(PINT *Count) {
if (MyProcessorNumber == ProcessorNumber)
for (int n = 0; n < NumberOfParticles; n++)
ParticleNumber[n] += *Count;
*Count += NumberOfParticles;
}
float ReturnTotalSinkMass() {
float total = 0;
double dx3 = CellWidth[0][0] * CellWidth[0][0] * CellWidth[0][0];
if (MyProcessorNumber == ProcessorNumber)
for (int n = 0; n < NumberOfParticles; n++)
if (ParticleType[n] == PARTICLE_TYPE_MUST_REFINE)
total += ParticleMass[n] * dx3;
return total;
};
/* Particles: return particle type (1 - dm, 2 - star). Note that this
has now been superceded by a real particle type field. */
int ReturnParticleType(int index) {
if (NumberOfParticleAttributes > 0 && StarParticleCreation > 0)
if (ParticleAttribute[0][index] > 0)
return PARTICLE_TYPE_STAR;
return PARTICLE_TYPE_DARK_MATTER;
}
/* Particles: return particle information in structure array */
int ReturnParticleEntry(ParticleEntry *ParticleList);
/* Particles: set mass of merged particles to be -1 */
void RemoveMergedParticles(ParticleEntry *List, const int &Size, int *Flag);
/* Particles: append particles belonging to this grid from a list */
int AddParticlesFromList(ParticleEntry *List, const int &Size, int *AddedNewParticleNumber);
int AddOneParticleFromList(ParticleEntry *List, const int place);
int CheckGridBoundaries(FLOAT *Position);
/* Particles: sort particle data in ascending order by number (id) or type. */
void SortParticlesByNumber();
void SortActiveParticlesByNumber();
void SortParticlesByType();
int CreateParticleTypeGrouping(hid_t ptype_dset,
hid_t ptype_dspace,
hid_t parent_group,
hid_t file_id);
int ChangeParticleTypeBeforeSN(int _type, int level,
int *ParticleBufferSize=NULL);
// -------------------------------------------------------------------------
// Communication functions
//
/* Set grid's processor number. */
void SetProcessorNumber(int Proc) {
ProcessorNumber = Proc;
};
/* Return grid's processor number. */
int ReturnProcessorNumber() {
return ProcessorNumber;
}
/* Send a region from a real grid to a 'fake' grid on another processor. */
int CommunicationSendRegion(grid *ToGrid, int ToProcessor, int SendField,
int NewOrOld, int RegionStart[], int RegionDim[]);
/* Send a region from a 'fake' grid to a real grid on another processor. */
int CommunicationReceiveRegion(grid *ToGrid, int ToProcessor,
int SendField, int NewOrOld,
int RegionStart[], int RegionDim[],
int IncludeBoundary);
/* Move a grid from one processor to another. */
int CommunicationMoveGrid(int ToProcessor, int MoveParticles = TRUE,
int DeleteAllFields = TRUE,
int MoveSubgridMarker = FALSE);
/* Send particles from one grid to another. */
int CommunicationSendParticles(grid *ToGrid, int ToProcessor,
int FromStart, int FromNumber, int ToStart);
/* Transfer particle amount level 0 grids. */
int CommunicationTransferParticles(grid* Grids[], int NumberOfGrids,
int ThisGridNum, int TopGridDims[],
int *&NumberToMove,
int StartIndex, int EndIndex,
particle_data *&List,
int *Layout, int *GStartIndex[],
int *GridMap, int CopyDirection);
int CommunicationTransferStars(grid* Grids[], int NumberOfGrids,
int ThisGridNum, int TopGridDims[],
int *&NumberToMove,
int StartIndex, int EndIndex,
star_data *&List, int *Layout,
int *GStartIndex[], int *GridMap,
int CopyDirection);
int CommunicationTransferActiveParticles(grid* Grids[], int NumberOfGrids,
int ThisGridNum, int TopGridDims[], int *&NumberToMove,
int StartIndex, int EndIndex, ActiveParticleList<ActiveParticleType> &List,
int *Layout, int *GStartIndex[], int *GridMap, int CopyDirection);
int CollectParticles(int GridNum, int* &NumberToMove,
int &StartIndex, int &EndIndex,
particle_data* &List, int CopyDirection);
int CollectActiveParticles(int GridNum, int* &NumberToMove,
int &StartIndex, int &EndIndex,
ActiveParticleList<ActiveParticleType> &List, int CopyDirection);
int CollectStars(int GridNum, int* &NumberToMove,
int &StartIndex, int &EndIndex,
star_data* &List, int CopyDirection);
// Only used for static hierarchies
int MoveSubgridStars(int NumberOfSubgrids, grid* ToGrids[],
int AllLocal);
int MoveSubgridActiveParticles(int NumberOfSubgrids, grid* ToGrids[],
int AllLocal);
int TransferSubgridParticles(grid* Subgrids[], int NumberOfSubgrids,
int* &NumberToMove, int StartIndex,
int EndIndex, particle_data* &List,
bool KeepLocal, bool ParticlesAreLocal,
int CopyDirection,
int IncludeGhostZones = FALSE,
int CountOnly = FALSE);
int TransferSubgridStars(grid* Subgrids[], int NumberOfSubgrids,
int* &NumberToMove, int StartIndex,
int EndIndex, star_data* &List,
bool KeepLocal, bool ParticlesAreLocal,
int CopyDirection,
int IncludeGhostZones = FALSE,
int CountOnly = FALSE);
int TransferSubgridActiveParticles(grid* Subgrids[], int NumberOfSubgrids,
int* &NumberToMove, int StartIndex,
int EndIndex, ActiveParticleList<ActiveParticleType> &List,
bool KeepLocal, bool ParticlesAreLocal,
int CopyDirection,
int IncludeGhostZones = FALSE,
int CountOnly = FALSE);
// -------------------------------------------------------------------------
// Helper functions (should be made private)
//
/* This is a simple helper function which determines if the method
should return immediately because of communication-mode reasons.
Assumes that info is being sent from the "other-grid" processor to
the "this-grid" processor (i.e. the one that holds this object). */
int CommunicationMethodShouldExit(grid *OtherGrid) {
/* Return if neither grid lives on this processor. */
// if (NumberOfProcessors == 1) return SUCCESS;
if (MyProcessorNumber != ProcessorNumber &&
MyProcessorNumber != OtherGrid->ProcessorNumber)
return SUCCESS;
/* If the two grids are on the same processor then return if
either in post-receive or receive modes to avoid duplicating method
(i.e. action is only carried out if in send mode (or send-receive)). */
if (ProcessorNumber == OtherGrid->ProcessorNumber)
if (CommunicationDirection == COMMUNICATION_POST_RECEIVE ||
CommunicationDirection == COMMUNICATION_RECEIVE)
return SUCCESS;
/* If in send mode then exit if the send grid is not on this processor. */
if (CommunicationDirection == COMMUNICATION_SEND &&
MyProcessorNumber != OtherGrid->ProcessorNumber)
return SUCCESS;
/* If in either receive phase then exit if receive grid is not on this
processor. */
if ((CommunicationDirection == COMMUNICATION_RECEIVE ||
CommunicationDirection == COMMUNICATION_POST_RECEIVE) &&
MyProcessorNumber != ProcessorNumber)
return SUCCESS;
return FAIL; /* i.e. method should not exit immediately. */
}
/* Baryons: find certain commonly used variables from the list of fields. */
int IdentifyPhysicalQuantities(int &DensNum, int &GENum, int &Vel1Num,
int &Vel2Num, int &Vel3Num, int &TENum);
int IdentifyPhysicalQuantities(int &DensNum, int &GENum, int &Vel1Num,
int &Vel2Num, int &Vel3Num, int &TENum, int &CRNum);
int IdentifyPhysicalQuantities(int &DensNum, int &GENum, int &Vel1Num,
int &Vel2Num, int &Vel3Num, int &TENum,
int &B1Num, int &B2Num, int &B3Num);
int IdentifyPhysicalQuantities(int &DensNum, int &GENum, int &Vel1Num,
int &Vel2Num, int &Vel3Num, int &TENum,
int &B1Num, int &B2Num, int &B3Num, int &PhiNum);
//by Jo YS
int IdentifyPhysicalQuantities(int &DensNum, int &GENum, int &Vel1Num,
int &Vel2Num, int &Vel3Num, int &TENum,
int &B1Num, int &B2Num, int &B3Num, int &PhiNum, int &ExtraNum, int &Dummy);
int IdentifyPhysicalQuantities(int &DensNum, int &GENum, int &Vel1Num,
int &Vel2Num, int &Vel3Num, int &TENum,
int &B1Num, int &B2Num, int &B3Num, int &PhiNum, int &CRNum);
/* Identify driving fields */
int IdentifyDrivingFields(int &Drive1Num, int &Drive2Num, int &Drive3Num);
/* Identify potential field */
int IdentifyPotentialField(int &PotenNum);
int IdentifyPotentialField(int &PotenNum, int &Acce1Num, int &Acce2Num, int &Acce3Num);
/* Identify colour field */
int IdentifyColourFields(int &SNColourNum, int &MetalNum,
int &MetalIaNum, int &MetalIINum, int &MBHColourNum,
int &Galaxy1ColourNum, int &Galaxy2ColourNum);
/* Identify Multi-species fields. */
int IdentifySpeciesFields(int &DeNum, int &HINum, int &HIINum,
int &HeINum, int &HeIINum, int &HeIIINum,
int &HMNum, int &H2INum, int &H2IINum,
int &DINum, int &DIINum, int &HDINum);
/* Identify shock fields. */
int IdentifyShockSpeciesFields(int &MachNum,int &PSTempNum, int &PSDenNum);
// Identify Simon Glover Species Fields
int IdentifyGloverSpeciesFields(int &HIINum,int &HINum,int &H2INum,
int &DINum,int &DIINum,int &HDINum,
int &HeINum,int &HeIINum,int &HeIIINum,
int &CINum,int &CIINum,int &OINum,
int &OIINum,int &SiINum,int &SiIINum,
int &SiIIINum,int &CHINum,int &CH2INum,
int &CH3IINum,int &C2INum,int &COINum,
int &HCOIINum,int &OHINum,int &H2OINum,
int &O2INum);
/* Zeus Solver. */
int ZeusSolver(float *gamma, int igamfield, int nhy,
float dx[], float dy[], float dz[],
int gravity, int NumberOfSubgrids, long_int GridGlobalStart[],
fluxes *SubgridFluxes[],
int NumberOfColours, int colnum[], int bottom,
float minsupecoef);
/* PPM Direct Euler Solver. */
int SolvePPM_DE(int CycleNumber, int NumberOfSubgrids,
fluxes *SubgridFluxes[], float *CellWidthTemp[],
Elong_int GridGlobalStart[], int GravityOn,
int NumberOfColours, int colnum[],
float MinimumSupportEnergyCoefficient);
int xEulerSweep(int k, int NumberOfSubgrids, fluxes *SubgridFluxes[],
Elong_int GridGlobalStart[], float *CellWidthTemp[],
int GravityOn, int NumberOfColours, int colnum[], float *pressure);
int yEulerSweep(int i, int NumberOfSubgrids, fluxes *SubgridFluxes[],
Elong_int GridGlobalStart[], float *CellWidthTemp[],
int GravityOn, int NumberOfColours, int colnum[], float *pressure);
int zEulerSweep(int j, int NumberOfSubgrids, fluxes *SubgridFluxes[],
Elong_int GridGlobalStart[], float *CellWidthTemp[],
int GravityOn, int NumberOfColours, int colnum[], float *pressure);
// AccelerationHack
int AccelerationHack;
#ifdef SAB
//These should be moved later.
//Used for boundary condition set of AccelerationField.
int ActualNumberOfBaryonFields;
int AttachAcceleration();
int DetachAcceleration();
int ActualFieldType[MAX_NUMBER_OF_BARYON_FIELDS];
float *ActualBaryonField[MAX_NUMBER_OF_BARYON_FIELDS];
float *ActualOldBaryonField[MAX_NUMBER_OF_BARYON_FIELDS];
float *OldAccelerationField[3];
#endif
// -------------------------------------------------------------------------
// Functions for Specific problems (usually problem generator functions).
//
/* Generalized Extra Field Grid Initializer (returns NumberOfBaryonFields) */
int InitializeTestProblemGrid(int field_counter);
/* Protostellar Collapse problem: initialize grid (returns SUCCESS or FAIL) */
int ProtostellarCollapseInitializeGrid(float CoreDensity,
float CoreEnergy,
float CoreRadius,
float AngularVelocity);
/* HydroShockTubes problems: initialize grid (returns SUCCESS or FAIL) */
int HydroShockTubesInitializeGrid(float InitialDiscontinuity,
float LeftDensity, float RightDensity,
float LeftVelocityX, float RightVelocityX,
float LeftVelocityY, float RightVelocityY,
float LeftVelocityZ, float RightVelocityZ,
float LeftPressure, float RightPressure);
int HydroShockTubesInitializeGrid(float InitialDiscontinuity,
float SecondDiscontinuity,
float LeftDensity, float RightDensity,
float CenterDensity,
float LeftVelocityX, float RightVelocityX,
float CenterVelocityX,
float LeftVelocityY, float RightVelocityY,
float CenterVelocityY,
float LeftVelocityZ, float RightVelocityZ,
float CenterVelocityZ,
float LeftPressure, float RightPressure,
float CenterPressure);
/* Cosmic Ray Shock Tube Problems: Initialize grid (returns SUCCESS or FAIL) */
int CRShockTubesInitializeGrid(float InitialDiscontinuity,
float LeftDensity, float RightDensity,
float LeftVelocityX, float RightVelocityX,
float LeftVelocityY, float RightVelocityY,
float LeftVelocityZ, float RightVelocityZ,
float LeftPressure, float RightPressure,
float LeftCRDensity, float RightCRDensity);
int CRShockTubesInitializeGrid(float InitialDiscontinuity,
float SecondDiscontinuity,
float LeftDensity, float RightDensity,
float CenterDensity,
float LeftVelocityX, float RightVelocityX,
float CenterVelocityX,
float LeftVelocityY, float RightVelocityY,
float CenterVelocityY,
float LeftVelocityZ, float RightVelocityZ,
float CenterVelocityZ,
float LeftPressure, float RightPressure,
float CenterPressure,
float LeftCRDensity, float RightCRDensity,
float CenterCRDensity);
/* Initialize for a uniform grid (returns SUCCESS or FAIL) */
int InitializeUniformGrid(float UniformDensity, float UniformTotalEnergy,
float UniformGasEnergy, float UniformVelocity[],
float UniformBField[], float UniformCR = 0.0);
/* Initialize a grid for the Double Mach reflection problem. */
int DoubleMachInitializeGrid(float d0, float e0, float u0,float v0,float w0);
/* Initialize a grid for Implosion test problem */
int ImplosionInitializeGrid(float ImplosionDiamondDensity,
float ImplosionDiamondTotalEnergy);
/* Initialize a grid for Sedov Explosion */
int SedovBlastInitializeGrid(float SedovBlastInitialRadius,
float SedovBlastInnerTotalEnergy);
int SedovBlastInitializeGrid3D(char * fname);
int SedovBlastInitializeGrid3DFixedR(float dr);
/* Initialize a grid for RadiatingShock (Sedov+Cooling) Explosion */
int RadiatingShockInitializeGrid(FLOAT RadiatingShockInitialRadius,
float RadiatingShockInnerDensity,
float RadiatingShockInnerTotalEnergy,
int RadiatingShockUseDensityFluctuations,
int RadiatingShockRandomSeed,
float RadiatingShockDensityFluctuationLevel,
int RadiatingShockInitializeWithKE,
int RadiatingShockUseSedovProfile,
FLOAT RadiatingShockSedovBlastRadius,
float RadiatingShockEnergy,
float RadiatingShockPressure,
float RadiatingShockKineticEnergyFraction,
float RadiatingShockRhoZero,
float RadiatingShockVelocityZero,
int RadiatingShockRandomSeedInitialize,
FLOAT RadiatingShockCenterPosition[MAX_DIMENSION]);
/* Initialize a grid for a rotating cylinder collapse */
int RotatingCylinderInitializeGrid(FLOAT RotatingCylinderRadius,
FLOAT RotatingCylinderCenterPosition[MAX_DIMENSION],
float RotatingCylinderLambda,
float RotatingCylinderOverdensity);
int RotatingDiskInitializeGrid(float RDScaleRadius,
float RDScaleHeight,
float RDTemperature,
float RDDMConcentration,
float RDTotalDMMass,
float RDCentralDensity,
float RDOuterEdge);
int RotatingSphereInitializeGrid(float RotatingSphereNFWMass,
float RotatingSphereNFWConcentration,
float RotatingSphereCoreRadius,
float RotatingSphereCentralDensity,
float RotatingSphereCoreDensityExponent,
float RotatingSphereOuterDensityExponent,
float RotatingSphereExternalTemperature,
float RotatingSphereSpinParameter,
float RotatingSphereAngularMomentumExponent,
int RotatingSphereUseTurbulence,
float RotatingSphereTurbulenceRMS,
float RotatingSphereRedshift);
/* Initialize a grid for the KH instability problem. */
int KHInitializeGrid(float KHInnerDensity,
float KHInnerInternalEnergy,
float KHOuterInternalEnergy,
float KHPerturbationAmplitude,
float KHInnerVx, float KHOuterVx,
float KHInnerPressure,
float KHOuterPressure,
int KHRandomSeed);
/* Initialize a grid for the KH instability problem including a ramp. */
int KHInitializeGridRamp(float KHInnerDensity,
float KHOuterDensity,
float KHInnerInternalEnergy,
float KHOuterInternalEnergy,
float KHPerturbationAmplitude,
float KHInnerVx, float KHOuterVx,
float KHInnerPressure,
float KHOuterPressure,
float KHRampWidth);
/* Initialize a grid and set boundary for the 2D/3D Noh problem. */
int NohInitializeGrid(float d0, float p0, float u0);
int ComputeExternalNohBoundary();
/* Zeldovich Pancake: initial grid (returns SUCCESS or FAIL). */
int ZeldovichPancakeInitializeGrid(int ZeldovichPancakeDirection,
float ZeldovichPancakeCentralOffset,
float ZeldovichPancakeOmegaBaryonNow,
float ZeldovichPancakeOmegaCDMNow,
float ZeldovichPancakeCollapseRedshift,
float ZeldovichPancakeInitialTemperature,
float ZeldovichPancakeInitialGasVelocity,
float ZeldovichPancakeInitialUniformBField[]);
/* 1D Pressureless Collapse: initialize grid. */
int PressurelessCollapseInitializeGrid(int PressurelessCollapseDirection,
float PressurelessCollapseInitialDensity,
int PressurelessCollapseNumberOfCells);
/* Gravity Test: particles in isolated boundaries */
int TestOrbitInitializeGrid(int NumberOfTestParticles,
FLOAT TestRadius,
float CentralMass,
float TestMass,
int UseBaryons);
/* Star Particle test: initialize particle */
int TestStarParticleInitializeGrid(float TestStarParticleStarMass,
float *Initialdt,
FLOAT TestStarParticleStarVelocity[],
FLOAT TestStarParticleStarPosition[]);
/* Gravity Test: initialize grid. */
int TestGravityInitializeGrid(float CentralDensity,
int NumberOfNewParticles, int UseBaryons);
/* Gravity Test: check results. */
int TestGravityCheckResults(FILE *fptr, grid *TopGrid);
/* Gravity Test Motion: initialize grid. */
int TestGravityMotionInitializeGrid(float InitialVelocity);
/* Gravity Test (Sphere): initialize grid. */
int TestGravitySphereInitializeGrid(float InteriorDensity,
float ExteriorDensity,
float SphereRadius,
int SphereType, int UseBaryons,
FLOAT SphereCenter[]);
/* Gravity Test (Sphere): check results. */
int TestGravitySphereCheckResults(FILE *fptr);
/* Conduction Test: initialize grid. */
int ConductionTestInitialize(float PulseHeight, FLOAT PulseWidth, int PulseType, FLOAT PulseCenter[MAX_DIMENSION], int FieldGeometry, float Bfield);
/* Conduction Cloud: initialize grid. */
int ConductionCloudInitialize(float CloudOverdensity, FLOAT CloudWidth, int CloudType);
/* Conducting Bubble Test: initialize grid. */
int ConductionBubbleInitialize(FLOAT BubbleRadius, int PulseType, float DeltaEntropy,
float MidpointEntropy, float EntropyGradient,
float MidpointTemperature, FLOAT BubbleCenter[MAX_DIMENSION]);
/* Exploding Stratified Medium Test: initialize grid. */
int StratifiedMediumExplosionInitialize(FLOAT BubbleRadius, int PulseType,
float ExplosionEnergy, FLOAT BubbleCenter[MAX_DIMENSION]);
/* Spherical Infall Test: initialize grid. */
int SphericalInfallInitializeGrid(float InitialPerturbation, int UseBaryons,
float SphericalInfallOmegaBaryonNow,
float SphericalInfallOmegaCDMNow,
int SubgridIsStatic);
/* Spherical Infall Test: get the profile from the center. */
int SphericalInfallGetProfile(int level, int ReportLevel);
/* GravityEquilibriumTest: initialize grid. */
int GravityEquilibriumTestInitializeGrid(float ScaleHeight);
/* CollapseTest: initialize grid. */
#define MAX_SPHERES 10
int CollapseTestInitializeGrid(int NumberOfSpheres,
FLOAT SphereRadius[MAX_SPHERES],
FLOAT SphereCoreRadius[MAX_SPHERES],
float SphereDensity[MAX_SPHERES],
float SphereTemperature[MAX_SPHERES],
float SphereMetallicity[MAX_SPHERES],
FLOAT SpherePosition[MAX_SPHERES][MAX_DIMENSION],
float SphereVelocity[MAX_SPHERES][MAX_DIMENSION],
float SphereFracKeplarianRot[MAX_SPHERES],
float SphereTurbulence[MAX_SPHERES],
float SphereDispersion[MAX_SPHERES],
float SphereCutOff[MAX_SPHERES],
float SphereAng1[MAX_SPHERES],
float SphereAng2[MAX_SPHERES],
int SphereNumShells[MAX_SPHERES],
int SphereType[MAX_SPHERES],
int SphereConstantPressure[MAX_SPHERES],
int SphereSmoothSurface[MAX_SPHERES],
float SphereSmoothRadius[MAX_SPHERES],
float SphereHII[MAX_SPHERES],
float SphereHeII[MAX_SPHERES],
float SphereHeIII[MAX_SPHERES],
float SphereH2I[MAX_SPHERES],
int SphereUseParticles,
float ParticleMeanDensity,
float UniformVelocity[MAX_DIMENSION],
int SphereUseColour,
int SphereUseMetals,
float InitialTemperature,
float InitialDensity, int level,
float CollapseTestInitialFractionHII,
float CollapseTestInitialFractionHeII,
float CollapseTestInitialFractionHeIII,
float CollapseTestInitialFractionHM,
float CollapseTestInitialFractionH2I,
float CollapseTestInitialFractionH2II);
/* Cluster: initialize grid. */
int ClusterInitializeGrid(int NumberOfSpheres,
FLOAT SphereRadius[MAX_SPHERES],
FLOAT SphereCoreRadius[MAX_SPHERES],
float SphereDensity[MAX_SPHERES],
float SphereTemperature[MAX_SPHERES],
FLOAT SpherePosition[MAX_SPHERES][MAX_DIMENSION],
float SphereVelocity[MAX_SPHERES][MAX_DIMENSION],
int SphereType[MAX_SPHERES],
int SphereUseParticles,
float UniformVelocity[MAX_DIMENSION],
int SphereUseColour,
float InitialTemperature,
float ClusterInitialSpinParameter, int level);
/* CosmologySimulation: initialize grid. */
int CosmologySimulationInitializeGrid(
int InitialGridNumber,
float CosmologySimulationOmegaBaryonNow,
float CosmologySimulationOmegaCDMNow,
float CosmologySimulationInitialTemperature,
char *CosmologySimulationDensityName,
char *CosmologySimulationTotalEnergyName,
char *CosmologySimulationGasEnergyName,
char *CosmologySimulationVelocityNames[],
char *CosmologySimulationParticlePositionName,
char *CosmologySimulationParticleVelocityName,
char *CosmologySimulationParticleDisplacementName,
char *CosmologySimulationParticleMassName,
char *CosmologySimulationParticleTypeName,
char *CosmologySimulationParticlePositionNames[],
char *CosmologySimulationParticleVelocityNames[],
char *CosmologySimulationParticleDisplacementNames[],
int CosmologySimulationSubgridsAreStatic,
int TotalRefinement,
float CosmologySimulationInitialFractionHII,
float CosmologySimulationInitialFractionHeII,
float CosmologySimulationInitialFractionHeIII,
float CosmologySimulationInitialFractionHM,
float CosmologySimulationInitialFractionH2I,
float CosmologySimulationInitialFractionH2II,
float CosmologySimulationInitialFractionMetal,
float CosmologySimulationInitialFractionMetalIa,
#ifdef TRANSFER
float RadHydroInitialRadiationEnergy,
#endif
int CosmologySimulationUseMetallicityField,
PINT &CurrentNumberOfParticles,
int CosmologySimulationManuallySetParticleMassRatio,
float CosmologySimulationManualParticleMassRatio,
int CosmologySimulationCalculatePositions,
float CosmologySimulationInitialUniformBField[]);
int CosmologyReadParticles3D(
char *CosmologySimulationParticleVelocityName,
char *CosmologySimulationParticleMassName,
char *CosmologySimulationParticleTypeName,
char *CosmologySimulationParticleParticleNames[],
char *CosmologySimulationParticleVelocityNames[],
float CosmologySimulationOmegaBaryonNow,
int *Offset, int level);
int CosmologyInitializeParticles(
char *CosmologySimulationParticleVelocityName,
char *CosmologySimulationParticleDisplacementName,
char *CosmologySimulationParticleMassName,
char *CosmologySimulationParticleTypeName,
char *CosmologySimulationParticleVelocityNames[],
char *CosmologySimulationParticleDisplacementNames[],
float CosmologySimulationOmegaBaryonNow,
int *Offset, int level);
/* CosmologySimulation: initialize partitioned nested grids. */
int NestedCosmologySimulationInitializeGrid(
int InitialGridNumber,
float CosmologySimulationOmegaBaryonNow,
float CosmologySimulationOmegaCDMNow,
float CosmologySimulationInitialTemperature,
char *CosmologySimulationDensityName,
char *CosmologySimulationTotalEnergyName,
char *CosmologySimulationGasEnergyName,
char *CosmologySimulationVelocityNames[],
char *CosmologySimulationParticlePositionName,
char *CosmologySimulationParticleDisplacementName,
char *CosmologySimulationParticleVelocityName,
char *CosmologySimulationParticleMassName,
char *CosmologySimulationParticleTypeName,
char *CosmologySimulationParticleVelocityNames[],
char *CosmologySimulationParticleDisplacementNames[],
int CosmologySimulationSubgridsAreStatic,
int TotalRefinement,
float CosmologySimulationInitialFractionHII,
float CosmologySimulationInitialFractionHeII,
float CosmologySimulationInitialFractionHeIII,
float CosmologySimulationInitialFractionHM,
float CosmologySimulationInitialFractionH2I,
float CosmologySimulationInitialFractionH2II,
float CosmologySimulationInitialFractionMetal,
float CosmologySimulationInitialFractionMetalIa,
int CosmologySimulationUseMetallicityField,
PINT &CurrentNumberOfParticles,
int CosmologySimulationManuallySetParticleMassRatio,
float CosmologySimulationManualParticleMassRatio,
int CosmologySimulationCalculatePositions,
FLOAT SubDomainLeftEdge[],
FLOAT SubDomainRightEdge[],
float CosmologySimulationInitialUniformBField[]);
/* Initialization for isolated galaxy sims */
int GalaxySimulationInitializeGrid(
FLOAT DiskRadius,
float GalaxyMass,
float GasMass,
FLOAT DiskPosition[MAX_DIMENSION],
FLOAT ScaleHeightz,
FLOAT ScaleHeightR,
FLOAT GalaxyTruncationRadius,
float DMConcentration,
float DiskTemperature,
float InitialTemperature,
float UniformDensity,
int GasHalo,
float GasHaloScaleRadius,
float GasHaloDensity,
float AngularMomentum[MAX_DIMENSION],
float UniformVelocity[MAX_DIMENSION],
int UseMetallicityField,
float GalaxySimulationInflowTime,
float GalaxySimulationInflowDensity,
int level,
float GalaxySimulationCR = 0.0 );
/* Free expansion test */
int FreeExpansionInitializeGrid(int FreeExpansionFullBox,
float FreeExpansionDensity,
double FreeExpansionEnergy,
float FreeExpansionMaxVelocity,
float FreeExpansionMass,
float FreeExpansionRadius,
float DensityUnits, float VelocityUnits,
float LengthUnits, float TimeUnits);
/* Supernova restart initialize grid. */
int SupernovaRestartInitialize(float EjectaDensity, float EjectaRadius,
float EjectaThermalEnergy,
FLOAT EjectaCenter[3], int ColourField,
int *NumberOfCellsSet);
/* Put Sink restart initialize grid. */
int PutSinkRestartInitialize(int level ,int *NumberOfCellsSet);
/* PhotonTest restart initialize grid. */
int PhotonTestRestartInitialize(int level ,int *NumberOfCellsSet);
/* Free-streaming radiation test problem: initialize grid (SUCCESS or FAIL) */
int FSMultiSourceInitializeGrid(float DensityConst, float V0Const,
float V1Const, float V2Const, float TEConst,
float RadConst, int local);
/* FLD Radiation test problem: initialize grid (SUCCESS or FAIL) */
int RadHydroConstTestInitializeGrid(int NumChem, float DensityConst,
float V0Const, float V1Const,
float V2Const, float IEConst,
float EgConst, float HMassFrac,
float InitFracHII, float InitFracHeII,
float InitFracHeIII, int local);
/* FLD Radiation ionization test problem: initialize grid (SUCCESS or FAIL) */
int RHIonizationTestInitializeGrid(int NumChem, float DensityConst,
float V0Const, float V1Const,
float V2Const, float IEConst,
float EgConst, float HMassFrac,
float InitFracHII, float InitFracHeII,
float InitFracHeIII, int local);
/* FLD Radiation clump ionization problem: initialize grid (SUCCESS or FAIL) */
int RHIonizationClumpInitializeGrid(int NumChem, float NumDensityIn,
float NumDensityOut, float V0Const,
float V1Const, float V2Const,
float IEConstIn, float IEConstOut,
float EgConst, float HMassFrac,
float InitFracHII, float InitFracHeII,
float InitFracHeIII, float ClumpCenterX0,
float ClumpCenterX1, float ClumpCenterX2,
float ClumpRadius, int local);
/* FLD Rad r^{-2} density ionization problem: initialize grid (SUCCESS or FAIL) */
int RHIonizationSteepInitializeGrid(int NumChem, float NumDensity,
float DensityRadius, float DensityCenter0,
float DensityCenter1, float DensityCenter2,
float V0Const, float V1Const,
float V2Const, float IEConst,
float EgConst, float HMassFrac,
float InitFracHII, float InitFracHeII,
float InitFracHeIII, int local);
/* FLD Radiation test problem: cosmological HII ioniztion (SUCCESS or FAIL) */
int CosmoIonizationInitializeGrid(int NumChem, float VxConst, float VyConst,
float VzConst, float IEConst,
float EgConst, float HMassFrac,
float InitFracHII, float InitFracHeII,
float InitFracHeIII, float OmegaBaryonNow,
int local);
/* FLD Radiation test problem: stream test (SUCCESS or FAIL) */
int RadHydroStreamTestInitializeGrid(float DensityConst, float EgConst,
int RadStreamDim, int RadStreamDir,
int local);
/* FLD Radiation test problem: pulse test (SUCCESS or FAIL) */
int RadHydroPulseTestInitializeGrid(float DensityConst, float EgConst,
int RadPulseDim, int local);
/* FLD Radiation test problem: grey Marshak wave test (SUCCESS or FAIL) */
int RadHydroGreyMarshakWaveInitializeGrid(float DensityConst, float IEConst,
float EgConst, int GreyMarshDir,
int local);
/* FLD Radiation test problem: radiating shock test (SUCCESS or FAIL) */
int RadHydroRadShockInitializeGrid(float DensityConst, float TEConst,
float REConst, float VelocityConst,
int ShockDir, int local);
/* Cooling test initialization */
int CoolingTestInitializeGrid();
/* Reset internal energy to initial values for cooling test. */
int CoolingTestResetEnergies();
/* One-zone free-fall test initialization */
int OneZoneFreefallTestInitializeGrid(float InitialDensity,
float MinimumTemperature,
float MaximumTemperature,
float MinimumMetallicity,
float MaximumMetallicity);
/* Solve free-fall analytical solution. */
int SolveOneZoneFreefall();
/* Tricks for Random Forcing. */
int ReturnNumberOfBaryonFields(){return NumberOfBaryonFields;};
int SetNumberOfBaryonFields(int &number)
{NumberOfBaryonFields = number; return 0;};
int AppendForcingToBaryonFields();
int DetachForcingFromBaryonFields();
int RemoveForcingFromBaryonFields();
int AllocateAndZeroBaryonField() {
if (MyProcessorNumber != ProcessorNumber)
return SUCCESS;
if (BaryonField[0] != NULL)
return FAIL;
int size = this->GetGridSize();
for (int field = 0; field < NumberOfBaryonFields; field++) {
BaryonField[field] = new float[size]();
}
return SUCCESS;
};
int AddRandomForcing(float * norm, float dtTopGrid);
int PrepareRandomForcingNormalization(float * GlobVal, int GlobNum);
int ReadRandomForcingFields(FILE *main_file_pointer, char DataFilename[]);
int AddFields(int TypesToAdd[], int NumberOfFields);
int DeleteObsoleteFields(int *ObsoleteFields,
int NumberOfObsoleteFields);
inline bool isLocal () {return MyProcessorNumber == ProcessorNumber; };
private:
// int ReadRandomForcingFields(FILE *main_file_pointer);
public:
/* TurbulenceSimulation: initialize grid. */
#define TURBULENCE_INIT_PARAMETERS_DECL \
float TurbulenceSimulationInitialDensity, \
float TurbulenceSimulationInitialDensityPerturbationAmplitude, \
float TurbulenceSimulationInitialTemperature, \
float TurbulenceSimulationInitialPressure, \
float TurbulenceSimulationInitialMagneticField[], \
char *TurbulenceSimulationMagneticNames[], \
char *TurbulenceSimulationDensityName, \
char *TurbulenceSimulationTotalEnergyName, \
char *TurbulenceSimulationGasPressureName, \
char *TurbulenceSimulationGasEnergyName, \
char *TurbulenceSimulationVelocityNames[], \
char *TurbulenceSimulationRandomForcingNames[], \
int TurbulenceSimulationSubgridsAreStatic, \
int TotalRefinement
#define TURBULENCE_INIT_PARAMETERS \
TurbulenceSimulationInitialDensity, \
TurbulenceSimulationInitialDensityPerturbationAmplitude, \
TurbulenceSimulationInitialTemperature, \
TurbulenceSimulationInitialPressure, \
TurbulenceSimulationInitialMagneticField, \
TurbulenceSimulationMagneticNames, \
TurbulenceSimulationDensityName, \
TurbulenceSimulationTotalEnergyName, \
TurbulenceSimulationGasPressureName, \
TurbulenceSimulationGasEnergyName, \
TurbulenceSimulationVelocityNames, \
TurbulenceSimulationRandomForcingNames, \
TurbulenceSimulationSubgridsAreStatic, \
TotalRefinement
int TurbulenceSimulationInitializeGrid(TURBULENCE_INIT_PARAMETERS_DECL);
int ComputeRandomForcingFields(int mode);
int ExtraFunction(char * message); //for debugging.
// The following are private since they should only be called by
// TurbulenceSimulationInitializeGrid()
private:
// int TurbulenceSimulationInitializeGrid(TURBULENCE_INIT_PARAMETERS_DECL);
public:
/* Stochastic forcing: initialization. */
int DrivenFlowInitializeGrid(float StochasticFlowDensity,
float StochasticFlowPressure, float InitialBField,int SetBaryonFields); // WS
/* Stochastic forcing: Calculate initial phase factors and phase multiplicators
for the inverse FT of the forcing spectrum onto a particular grid domain */
void Phases(); // WS
/* Stochastic forcing: Compute physical force field via inverse FT of the forcing pectrum */
int FTStochasticForcing(int FieldDim); // WS
/* START Subgrid-scale modeling framework by P. Grete */
// Jacobians to be used in SGS model
float *JacVel[MAX_DIMENSION][MAX_DIMENSION];
float *JacB[MAX_DIMENSION][MAX_DIMENSION];
float *FilteredFields[7]; // filtered fields: rho, xyz-vel, Bxyz
// the scale-similarity model needs mixed filtered quantities
float *FltrhoUU[6];
float *FltBB[6];
float *FltUB[3];
int SGSUtil_ComputeJacobian(float *Jac[][MAX_DIMENSION],float* field1,float* field2,float* field3);
int SGSUtil_ComputeMixedFilteredQuantities();
int SGSUtil_FilterFields();
// the general functions that add the SGS terms to the dynamic eqns.
int SGS_AddEMFTerms(float **dU);
int SGS_AddMomentumTerms(float **dU);
// the different SGS models
void SGS_AddEMF_eddy_resistivity(float **EMF);
void SGS_AddEMF_nonlinear_compressive(float **EMF);
void SGS_AddMom_nonlinear_kinetic(float **Tau);
void SGS_AddMom_nonlinear_kinetic_scaled(float **Tau);
void SGS_AddMom_nonliner_magnetic(float **Tau);
void SGS_AddMom_eddy_viscosity_scaled(float **Tau);
void SGS_AddMom_scale_similarity_kinetic(float **Tau);
void SGS_AddMom_scale_similarity_magnetic(float **Tau);
void SGS_AddEMF_scale_similarity(float **EMF);
/* END Subgrid-scale modeling framework by P. Grete */
/* Comoving coordinate expansion terms. */
int ComovingExpansionTerms();
/* Adjust the gravity source terms for comoving coordinates. */
int ComovingGravitySourceTerm();
/* Star Particle handler routine. */
int StarParticleHandler(HierarchyEntry* SubgridPointer, int level,
float dtLevelAbove, float TopGridTimeStep);
int ActiveParticleHandler(HierarchyEntry* SubgridPointer, int level,
float dtLevelAbove, int &NumberOfNewActiveParticles);
int ActiveParticleHandler_Convert(HierarchyEntry* SubgridPointer, int level,
int gridnum, int &NumberOfNewActiveParticles);
int DetermineActiveParticleTypes(char **ActiveParticleType);
/* Append and detach active particles data to 'normal' particle
arrays */
int AddActiveParticles(ActiveParticleList<ActiveParticleType> &NewParticles,
int start, int end);
int AddActiveParticle(ActiveParticleType* ThisParticle);
int AppendActiveParticlesToList(ActiveParticleList<ActiveParticleType> &APArray,
int search_id);
int DebugActiveParticles(int level);
/* Create flat arrays of active particle data */
void GetActiveParticlePosition(FLOAT *ActiveParticlePosition[]);
/* Get the active particle mass as a flat array (1D) */
void GetActiveParticleMass(float * ActiveParticleMass);
void GetActiveParticleFixedInSpace(int * ActiveParticleFixedInSpace);
/* Calculate the potential across the grid. */
void CalculatePotentialField(float *PotentialField, int DensNum, float DensityUnits,
float TimeUnits, float LengthUnits);
/* Find the minumum of the potential in a given region */
float FindMinimumPotential(FLOAT *cellpos, FLOAT radius, float *PotentialField);
/* Find the Jeans mass for the grid */
float CalculateJeansMass(int DensNum, float *T, float DensityUnits);
/* Find the total thermal energy in a given region */
float FindTotalThermalEnergy(FLOAT *cellpos, FLOAT radius, int GENum);
/* Find the total energy in a given region */
float FindTotalEnergy(FLOAT *cellpos, FLOAT radius, int TENum);
/* Find the total mass in the control region */
float FindMassinRegion(FLOAT *cellpos, FLOAT radius, int DensNum);
float FindMassinGrid(int DensNum);
/* Find the average temperature in the control region */
float FindAverageTemperatureinRegion(float *temperature, FLOAT *cellpos, FLOAT radius);
/* Find the total gravitational energy in a given region */
float FindTotalGravitationalEnergy(FLOAT *cellpos, FLOAT radius, int gpotNum, int densNum,
float DensityUnits, float LengthUnits, float VelocityUnits);
/* Find the total kinetic energy in a given region */
float FindTotalKineticEnergy(FLOAT *cellpos, FLOAT radius, int densNum,
int vel1Num, int vel2Num, int vel3Num);
/* Returns averaged velocity from the 6 neighbor cells and itself */
float* AveragedVelocityAtCell(int index, int DensNum, int Vel1Num);
/* Find the minumum of the angular momentum in a given region */
float FindAngularMomentumMinimum(FLOAT *cellpos, FLOAT radius, int DensNum, int Vel1Num,
int Vel2Num, int Vel3Num);
/* Particle splitter routine. */
int ParticleSplitter(int level, int iter, int NumberOfIDs,
long *MustRefineIDs);
int CreateChildParticles(float dx, int NumberOfParticles, float *ParticleMass,
int *ParticleType, FLOAT *ParticlePosition[],
float *ParticleVelocity[], float *ParticleAttribute[],
FLOAT *CellLeftEdge[], int *GridDimension,
int MaximumNumberOfNewParticles, int iter,
int *NumberOfNewParticles);
/* Magnetic field resetting routine. */
int MagneticFieldResetter(int level);
/* Apply a time-action to a grid. */
int ApplyTimeAction(int Type, float Parameter);
/* Routine to set the tracer particle velocities from the grid velocity. */
int TracerParticleSetVelocity();
/* Creates tracer particles in this grid. */
int TracerParticleCreateParticles(FLOAT LeftEdge[], FLOAT RightEdge[],
FLOAT Spacing, PINT &TotalParticleCount);
/* ShearingBox: initialize grid. */
int ShearingBoxInitializeGrid(float ThermalMagneticRatio, float fraction,
float ShearingGeometry,
int InitialMagneticFieldConfiguration);
int ShearingBox2DInitializeGrid(float ThermalMagneticRatio, float fraction,
float ShearingGeometry,
int InitialMagneticFieldConfiguration);
int ShearingBoxStratifiedInitializeGrid(float ThermalMagneticRatio, float fraction,
float ShearingGeometry,
int InitialMagneticFieldConfiguration);
/* FDM: Test Problem Initialize Grid for Fuzzy Dark Matter */
int LightBosonInitializeGrid(float CenterPosition, int LightBosonProblemType);
/* FDM: Test Problem Initialize Grid for Fuzzy Dark Matter */
int FDMCollapseInitializeGrid();
// -------------------------------------------------------------------------
// Analysis functions for AnalysisBaseClass and it's derivatives.
//
// Flag cells that overlap a subgrid (used for analysis).
int FlagRefinedCells(grid *Subgrid);
inline int IsInVolume( Eflt32 *LeftEdge, Eflt32 *RightEdge ){
for( int i = 0; i < GridRank; i++ ){
if( (GridLeftEdge[i] >= RightEdge[i]) ||
(GridRightEdge[i] <= LeftEdge[i]) ){
return FALSE;
}
}
return TRUE;
}
inline int IsInVolume( Eflt64 *LeftEdge, Eflt64 *RightEdge ){
for( int i = 0; i < GridRank; i++ ){
if( (GridLeftEdge[i] >= RightEdge[i]) ||
(GridRightEdge[i] <= LeftEdge[i]) ){
return FALSE;
}
}
return TRUE;
}
inline int IsInVolume( Eflt128 *LeftEdge, Eflt128 *RightEdge ){
for( int i = 0; i < GridRank; i++ ){
if( (GridLeftEdge[i] >= RightEdge[i]) ||
(GridRightEdge[i] <= LeftEdge[i]) ){
return FALSE;
}
}
return TRUE;
}
// Check to see if a FLOAT point is in the grid.
inline int PointInGrid( Eflt32 *point ){
for( int i = 0; i < GridRank; i++ ){
if( ((point[i] >= GridLeftEdge[i]) &&
(point[i] < GridRightEdge[i])) == FALSE )
return FALSE;
}
return TRUE;
}
inline int PointInGrid( Eflt64 *point ){
for( int i = 0; i < GridRank; i++ ){
if( ((point[i] >= GridLeftEdge[i]) &&
(point[i] < GridRightEdge[i])) == FALSE )
return FALSE;
}
return TRUE;
}
inline int PointInGrid( Eflt128 *point ){
for( int i = 0; i < GridRank; i++ ){
if( ((point[i] >= GridLeftEdge[i]) &&
(point[i] < GridRightEdge[i])) == FALSE )
return FALSE;
}
return TRUE;
}
// Check to see if a FLOAT point is in the grid (excluding boundaries)
inline int PointInGridNB( Eflt32 *point ){
for( int i = 0; i < GridRank; i++ ){
if( ((point[i] > GridLeftEdge[i]) &&
(point[i] < GridRightEdge[i])) == FALSE )
return FALSE;
}
return TRUE;
}
inline int PointInGridNB( Eflt64 *point ){
for( int i = 0; i < GridRank; i++ ){
if( ((point[i] > GridLeftEdge[i]) &&
(point[i] < GridRightEdge[i])) == FALSE )
return FALSE;
}
return TRUE;
}
inline int PointInGridNB( Eflt128 *point ){
for( int i = 0; i < GridRank; i++ ){
if( ((point[i] > GridLeftEdge[i]) &&
(point[i] < GridRightEdge[i])) == FALSE )
return FALSE;
}
return TRUE;
}
// Flags a 3D array where the grid overlaps.
// Very similar to the FastSib stuff. (I think.)
void FlagGridArray( HierarchyEntry ***GridArray, int *dx,
float *cell_width, HierarchyEntry *my_HE );
/* Includes for analysis tools */
//#ifdef ANALYSIS_TOOLS
#include "../anyl/Grid_AnalyzeClusters.h"
//#endif
#ifdef USE_PYTHON
void ConvertToNumpy(int GridID, PyArrayObject *container[],
int ParentID, int level, FLOAT WriteTime);
#endif
//------------------------------------------------------------------------
// Methods for star formation
//------------------------------------------------------------------------
Star *ReturnStarPointer(void) { return Stars; };
int ReturnNumberOfStars(void) { return NumberOfStars; };
void SetNumberOfStars(int value) { NumberOfStars = value; };
// For once-per-rootgrid-timestep star formation.
void SetMakeStars(void) { MakeStars = 1; };
/* Calculate enclosed mass within a radius */
int GetEnclosedMass(Star *star, float radius, float &mass,
float &metallicity, float &coldgas_mass,
float AvgVelocity[]);
int GetEnclosedMass(FLOAT star_pos[], float radius, float &mass,
float &metallicity, float &coldgas_mass,
float AvgVelocity[], float &OneOverRSquaredSum);
int GetEnclosedMassInShell(Star *star, float radius0, float radius1,
float &mass, float &metallicity2,
float &metallicity3,
float &coldgas_mass, float AvgVelocity[]);
int RemoveParticle(int ID, bool disable=false);
int RemoveActiveParticle(PINT ID, int NewProcessorNumber);
int AddFeedbackSphere(Star *cstar, int level, float radius, float DensityUnits,
float LengthUnits, float VelocityUnits,
float TemperatureUnits, float TimeUnits, double EjectaDensity,
double EjectaMetalDensity, double EjectaThermalEnergy,
double Q_HI, double sigma_HI, float deltaE, int &CellsModified);
int SubtractAccretedMassFromSphere(Star *cstar, int level, float radius, float DensityUnits,
float LengthUnits, float VelocityUnits,
float TemperatureUnits, float TimeUnits, double EjectaDensity,
int &CellsModified);
int MoveAllStars(int NumberOfGrids, grid* FromGrid[], int TopGridDimension);
int MoveAllStarsOld(int NumberOfGrids, grid* FromGrid[], int TopGridDimension);
int CommunicationSendStars(grid *ToGrid, int ToProcessor);
int CommunicationSendActiveParticles(grid *ToGrid, int ToProcessor, bool DeleteParticles = true);
int TransferSubgridStars(int NumberOfSubgrids, grid* ToGrids[], int AllLocal);
int FindNewStarParticles(int level);
int FindAllStarParticles(int level);
int MirrorStarParticles(void);
int UpdateStarParticles(int level);
int AddH2Dissociation(Star *AllStars, int NumberOfSources);
int AddH2DissociationFromTree(void);
int AddH2DissociationFromSources(Star *AllStars);
int ReturnStarStatistics(int &Number, float &minLife);
int AccreteOntoAccretingParticle(ActiveParticleType* ThisParticle,
FLOAT AccretionRadius,
float* AccretionRate);
int AccreteOntoSmartStarParticle(ActiveParticleType* ThisParticle,
FLOAT AccretionRadius,
float* AccretionRate);
float CalculateSmartStarAccretionRate(ActiveParticleType* ThisParticle,
FLOAT AccretionRadius,
FLOAT *KernelRadius,
FLOAT *SumOfWeights);
int CalculateSpecificQuantities(FLOAT *SinkParticlePos, FLOAT *CLEdge,
float *vgas, float msink,
float *vsink, int *numpoints);
int RemoveMassFromGrid(ActiveParticleType* ThisParticle,
FLOAT AccretionRadius, float AccretionRate,
float *AccretedMass, float *DeltaV,
FLOAT KernelRadius, FLOAT SumOfWeights, float MaxAccretionRate);
int GetVorticityComponent(FLOAT *pos, FLOAT *vorticity);
float CenAccretionRate(float density, FLOAT AccretionRadius,
FLOAT *pos, float *vel, float mparticle);
float ConvergentMassFlow(int DensNum, int Vel1Num, FLOAT AccretionRadius,
FLOAT *pos, float *vel, float SSmass, float Gcode, int GENum);
float CalculateCirculisationSpeed(int Vel1Num, FLOAT AccretionRadius,
FLOAT *pos, float *vel);
FLOAT CalculateBondiHoyleRadius(float mparticle, float *vparticle, float *Temperature);
int AddMassAndMomentumToAccretingParticle(float GlobalSubtractedMass,
float GlobalSubtractedMomentum[],
ActiveParticleType* ThisParticle,
LevelHierarchyEntry *LevelArray[]);
int ApplyGalaxyParticleFeedback(ActiveParticleType** ThisParticle);
int ApplyGalaxyParticleGravity(ActiveParticleType** ThisParticle);
int ApplySmartStarParticleFeedback(ActiveParticleType** ThisParticle);
//------------------------------------------------------------------------
// Radiative transfer methods that don't fit in the TRANSFER define
//------------------------------------------------------------------------
int IdentifyRadiativeTransferFields(int &kphHINum, int &gammaNum,
int &kphHeINum, int &kphHeIINum,
int &kdissH2INum, int &kphHMNum,
int &kdissH2IINum);
#ifdef TRANSFER
#include "PhotonGrid_Methods.h"
#endif /* TRANSFER */
//------------------------------------------------------------------------
// Vertex interpolation (for radiative transfer and streaming data)
//------------------------------------------------------------------------
int ComputeVertexCenteredField(int Num);
int ComputeCellCenteredField(int Num);
float ComputeInterpolatedValue(int Num, int vci, int vcj, int vck,
float mx, float my, float mz);
int NeighborIndices(int index, int vi[]);
int NeighborVertexIndices(int index, int vi[]);
void DeleteInterpolatedFields() {
int i;
for (i = 0; i < NumberOfBaryonFields; i++)
if (InterpolatedField[i] != NULL) {
delete [] InterpolatedField[i];
InterpolatedField[i] = NULL;
}
}
void ConvertColorFieldsToFractions();
void ConvertColorFieldsFromFractions();
//-----------------------------------------------------------------------
// Returns radiative cooling by component
//-----------------------------------------------------------------------
int ComputeLuminosity(float *luminosity, int NumberOfLuminosityFields);
int ComputeMetalLineLuminosity(float *total_luminosity, float *all_emis,
float *temperature);
//------------------------------------------------------------------------
// Shearing Boundary Conditions
//------------------------------------------------------------------------
bool isTopGrid(){
for(int i=0; i<GridRank; i++){
if (CellWidth[i][0]<TopGridDx[i]*0.95) return FALSE;
if (CellWidth[i][0]>TopGridDx[i]*1.05) return FALSE;
}
return TRUE;};
//------------------------------------------------------------------------
// Misc.
//------------------------------------------------------------------------
int FindMinimumParticleMass(float &min_mass, int level);
int FindMassiveParticles(float min_mass, int level, FLOAT *pos[], int &npart,
int CountOnly);
//------------------------------------------------------------------------
// Inline FOF halo finder and particle interpolation using a tree
//------------------------------------------------------------------------
int MoveParticlesFOF(int level, FOF_particle_data* &P,
int &Index, FOFData AllVars, float VelocityUnits,
double MassUnits, int CopyDirection);
int InterpolateParticlesToGrid(FOFData *D);
//------------------------------------------------------------------------
// Grid star particles onto the AMR mesh
//------------------------------------------------------------------------
int InterpolateStarParticlesToGrid(int NumberOfSPFields);
//------------------------------------------------------------------------
// new hydro & MHD routines
//------------------------------------------------------------------------
int ClusterSMBHFeedback(int level);
int ClusterSMBHEachGridGasMass(int level);
int OldStarFeedback();
int AddStellarWind();
int SetNumberOfColours(void);
int SaveSubgridFluxes(fluxes *SubgridFluxes[], int NumberOfSubgrids,
float *Flux3D[], int flux, float fluxcoef, float dt);
void ZeroFluxes(fluxes *SubgridFluxes[], int NumberOfSubgrids);
int RungeKutta2_1stStep(fluxes *SubgridFluxes[],
int NumberOfSubgrids, int level,
ExternalBoundary *Exterior);
int RungeKutta2_2ndStep(fluxes *SubgridFluxes[],
int NumberOfSubgrids, int level,
ExternalBoundary *Exterior);
int ReturnHydroRKPointers(float **Prim, bool ReturnMassFractions = true);
int ReturnOldHydroRKPointers(float **Prim, bool ReturnMassFractions = true);
int UpdateElectronDensity(void);
int UpdatePrim(float **dU, float c1, float c2);
int Hydro3D(float **Prim, float **dU, float dt,
fluxes *SubgridFluxes[], int NumberOfSubgrids,
float fluxcoef, float min_coeff, int fallback);
int TurbulenceInitializeGrid(float CloudDensity, float CloudSoundSpeed, FLOAT CloudRadius,
float CloudMachNumber, float CloudAngularVelocity, float InitialBField,
int SetTurbulence, int CloudType, int TurbulenceSeed, int PutSink,
int level, int SetBaryonFields);
int Collapse3DInitializeGrid(int n_sphere,
FLOAT r_sphere[MAX_SPHERES],
FLOAT rc_sphere[MAX_SPHERES],
float rho_sphere[MAX_SPHERES],
float p_sphere[MAX_SPHERES],
float cs_sphere[MAX_SPHERES],
FLOAT sphere_position[MAX_SPHERES][MAX_DIMENSION],
float omega_sphere[MAX_SPHERES],
int sphere_type[MAX_SPHERES],
float rho_medium, float p_medium, int level);
int Collapse1DInitializeGrid(FLOAT r_sphere,
FLOAT rc_sphere,
float rho_sphere,
float p_sphere,
float cs_sphere,
float omega_sphere,
int sphere_type,
float rho_medium, float p_medium);
int AddSelfGravity(float coef);
int SourceTerms(float **dU, float min_coeff);
int MHD1DTestInitializeGrid(float rhol, float rhor,
float vxl, float vxr,
float vyl, float vyr,
float vzl, float vzr,
float pl, float pr,
float Bxl, float Bxr,
float Byl, float Byr,
float Bzl, float Bzr);
int MHD1DTestWavesInitializeGrid(float rhol,
float vxl,
float vyl,
float vzl,
float etotl,
float Bxl,
float Byl,
float Bzl);
int MHD2DTestInitializeGrid(int MHD2DProblemType,
int UseColour,
float RampWidth,
float rhol, float rhou,
float vxl, float vxu,
float vyl, float vyu,
float pl, float pu,
float Bxl, float Bxu,
float Byl, float Byu, int SetBaryonFields);
int MHD3DTestInitializeGrid(int MHD3DProblemType,
float rhol, float rhou,
float vxl, float vxu,
float vyl, float vyu,
float pl, float pu,
float Bxl, float Bxu,
float Byl, float Byu);
int CollapseMHD3DInitializeGrid(int n_sphere,
FLOAT r_sphere[MAX_SPHERES],
FLOAT rc_sphere[MAX_SPHERES],
float rho_sphere[MAX_SPHERES],
float p_sphere[MAX_SPHERES],
float cs_sphere[MAX_SPHERES],
FLOAT sphere_position[MAX_SPHERES][MAX_DIMENSION],
float omega_sphere[MAX_SPHERES],
float turb_sphere[MAX_SPHERES],
float Bnaught, float theta_B,
int Bdirection,
int sphere_type[MAX_SPHERES],
float rho_medium, float p_medium, int level, int SetBaryonFields);
int MHDTurbulenceInitializeGrid(float rho_medium, float cs_medium, float mach,
float Bnaught, int seed, int level, int SetBaryonFields);
int MHDDecayingRandomFieldInitializeGrid(float rho_medium, float cs_medium, float mach,
float Bnaught, int seed,
float Sindex, float Skmin, float Skmax,
int level, int SetBaryonFields);
int PrepareVelocityNormalization(double *v_rms, double *Volume);
int NormalizeVelocities(Eflt factor);
int PrepareAlfvenVelocityNormalization(double *v_rms, double *Volume);
int NormalizeMagneticFields(Eflt factor);
int GalaxyDiskInitializeGrid(int NumberOfHalos,
FLOAT HaloRadius[MAX_SPHERES],
FLOAT HaloCoreRadius[MAX_SPHERES],
float HaloDensity[MAX_SPHERES],
float HaloTemperature[MAX_SPHERES],
FLOAT HaloPosition[MAX_SPHERES][MAX_DIMENSION],
float HaloSpin[MAX_SPHERES],
float HaloVelocity[MAX_SPHERES][MAX_DIMENSION],
float HaloAngVel[MAX_SPHERES],
float HaloMagneticField,
FLOAT DiskRadius[MAX_SPHERES],
FLOAT DiskHeight[MAX_SPHERES],
float DiskDensity[MAX_SPHERES],
float DiskTemperature[MAX_SPHERES],
float DiskMassFraction[MAX_SPHERES],
float DiskFlaringParameter[MAX_SPHERES],
int GalaxyType[MAX_SPHERES],
int UseParticles, int UseGas,
float UniformVelocity[MAX_DIMENSION],
float MediumTemperature, float MediumDensity, int level);
int AGNDiskInitializeGrid(float BlackHoleMass,
int BlackHoleType,
int DiskType,
float DiskDensity,
float DiskTemperature,
FLOAT DiskRadius,
FLOAT DiskHeight,
int UseGas, int level);
int MHDRK2_1stStep(fluxes *SubgridFluxes[],
int NumberOfSubgrids, int level,
ExternalBoundary *Exterior);
int MHDRK2_2ndStep(fluxes *SubgridFluxes[],
int NumberOfSubgrids, int level,
ExternalBoundary *Exterior);
int MHD3D(float **Prim, float **dU, float dt,
fluxes *SubgridFluxes[], int NumberOfSubgrids,
float fluxcoef, float min_coeff, int fallback);
int MHDSourceTerms(float **dU, float min_coeff);
int UpdateMHDPrim(float **dU, float c1, float c2);
int SaveMHDSubgridFluxes(fluxes *SubgridFluxes[], int NumberOfSubgrids,
float *Flux3D[], int flux, float fluxcoef, float dt);
int SetFloor();
/* Poisson clean routines */
int PoissonSolver(int level);
int PoissonSolverSOR();
int PoissonSolverSOR2();
int PoissonSolverFFT();
int PoissonSolverMultigrid();
int PoissonSolverCGA(int difftype, double *divB_p);
template <typename T> int multA(T* input, T* output, int *MatrixStartIndex, int *MatrixEndIndex);
template <typename T> int multA2(T* input, T* output, int *MatrixStartIndex, int *MatrixEndIndex);
template <typename T> T dot(T *a, T *b, int size);
template <typename T> int setNeumannBC(T* x, int *MatrixStartIndex, int *MatrixEndIndex,int type);
template <typename T> int setDirichletBC(T* x, int *MatrixStartIndex, int *MatrixEndIndex);
int PoissonCleanStep(int level);
int GetIndex(int i, int j, int k) {
return i + j*(GridDimension[0])
+ k*(GridDimension[0])*(GridDimension[1]);
}
int PoissonSolverTestInitializeGrid(int TestType, float GeometryControl);
int PrintToScreenBoundaries(float *field, char *display, int direction, int slice,
int check, float diffvalue);
int PrintToScreenBoundaries(float *field, char *display, int direction, int slice);
int PrintToScreenBoundaries(float *field, char *display);
int PrintToScreenBoundaries();
int PrintToScreenBoundaries(int field);
int getField(int i){return FieldType[i];};
int ReduceWindBoundary();
/* New particle routines */
int CheckParticle();
int ReturnMaximumParticleNumber();
int ReturnNumberOfNewParticles() {
int np = 0;
for (int n = 0; n < NumberOfParticles; n++)
if (ParticleNumber[n] < 0) np++;
return np;
};
/* Non-ideal effects */
int AddViscosity();
int ComputeViscosity(float *viscosity, int DensNum);
int AddAmbipolarDiffusion();
int AddResistivity();
int ComputeResistivity(float *resistivity, int DensNum);
/* END OF NEW STANFORD HYDRO/MHD ROUTINES */
//------------------------------------------------------------------------
// CUDA MHD routines
//------------------------------------------------------------------------
#ifdef ECUDA
void CudaMHDMalloc(void **p, size_t size);
void CudaMHDMallocGPUData();
void CudaMHDFreeGPUData();
void CudaSolveMHDEquations(fluxes *SubgridFluxes[], int NumberOfSubgrids, int renorm);
void CudaMHDSweep(int dir);
void CudaMHDSaveSubgridFluxes(fluxes *SubgridFluxes[],
int NumberOfSubgrids, int dir);
void CudaMHDSourceTerm();
void CudaMHDUpdatePrim(int renorm);
int CudaMHDRK2_1stStep(fluxes *SubgridFluxes[],
int NumberOfSubgrids, int level,
ExternalBoundary *Exterior);
int CudaMHDRK2_2ndStep(fluxes *SubgridFluxes[],
int NumberOfSubgrids, int level,
ExternalBoundary *Exterior);
#endif
int SolveMHD_Li(int CycleNumber, int NumberOfSubgrids,
fluxes *SubgridFluxes[], float *CellWidthTemp[],
Elong_int GridGlobalStart[], int GravityOn,
int NumberOfColours, int colnum[],
float ** Fluxes);
//Variables
//CenteredB is used in the Riemann solver (SolveMHDequations) and the timestep (dtMagnetic)
//MagneticField is the face centered magnetic field, and is the quantity ultimately updated by the
//CT style algorithm.
float *MagneticField[3];
float *ElectricField[3];
float *AvgElectricField[3];
float *OldMagneticField[3];
float *OldElectricField[3];
//Magnetic dimensions: MagneticDims[field][axis]
int MagneticDims[3][3], ElectricDims[3][3];
int MHDStartIndex[3][3], MHDEndIndex[3][3];//For the MagneticField
int MHDeStartIndex[3][3], MHDeEndIndex[3][3];//Electric Field
int MHDAdd[3][3]; //How much to add to Barryon Dimensions. MHDAdd[i][j]=KronikerDelta(i,j)
int MagneticSize[3];
int ElectricSize[3];
float dtParent; //used for the Electric Field update.
//MHDParentTemp is used for the interpolation.
//It's a member of the grid class because it's also used in CopyZonesFromGrid,
//for the prolongation (see Balsara's AMR MHD paper), which has no knowledge of the parent.
float *MHDParentTemp[3];
int MHDParentTempPermanent[3];
int MHDRefinementFactors[3];
FLOAT ParentDx, ParentDy, ParentDz;
float *DyBx, *DzBx, *DyzBx;
float *DxBy, *DzBy, *DxzBy;
float *DxBz, *DyBz, *DxyBz;
int * DBxFlag, *DByFlag, *DBzFlag;
int MHD_Diagnose(char * message, float * &DivB);
inline int indexb1(int i, int j, int k) {return i+MagneticDims[0][0]*(j+MagneticDims[0][1]*k);}
inline int indexb2(int i, int j, int k) {return i+MagneticDims[1][0]*(j+MagneticDims[1][1]*k);}
inline int indexb3(int i, int j, int k) {return i+MagneticDims[2][0]*(j+MagneticDims[2][1]*k);}
int MHD_CID(LevelHierarchyEntry * OldFineLevel, TopGridData * MetaData, int Offset[], int TempDim[], int Refinement[]);
int MHD_CIDWorker(grid* OtherGrid, FLOAT EdgeOffset[MAX_DIMENSION]);
int MHD_SendOldFineGrids(LevelHierarchyEntry * OldFineLevel, grid *ParentGrid, TopGridData *MetaData);
int MHD_ProlongAllocate(int * ChildDim);
int MHD_DCheck(int * ChildDim, char * mess);
int MHD_ProlongFree();
void MHD_SetupDims(void);
//Evolution/AMR routines
int SolveMHDEquations(int CycleNumber, int NumberOfSubgrids,
fluxes *SubgridFluxes[], int level, int grid);
int ComputeElectricField(float dT, float ** Fluxes);
int MHD_Curl( int * Start, int * End, int Method);
int CenterMagneticField(int * Start = NULL, int * End = NULL);
int ClearAvgElectricField();
int MHD_UpdateMagneticField(int level, LevelHierarchyEntry * Level,
int TimeIsBeforeSetLevelTimestep);
int MHD_ProjectFace(grid &ParentGrid,
boundary_type LeftFaceBoundaryCondition[],
boundary_type RightFaceBoundaryCondition[]);
//Test Problems
int MHDBlastInitializeGrid(float Density0, float Density1,
float Energy0, float Energy1,
float Velocity0[], float Velocity1[],
float B0[], float B1[],
float MetalDensity0, float MetalDensity1, int UseMetal, float MetalOffsetInX,
float Radius, float MHDBlastCenter[], int LongDimension,
float PerturbAmplitude, int PerturbMethod, float PerturbWavelength[],
int InitStyle);
int MHDOrszagTangInitGrid(float Density,float Pressure, float V0, float B0 );
int MHDLoopInitGrid(float LoopDensity,float Pressure, float Vx, float Vy, float Vz, float B0, FLOAT R0,
FLOAT Center[], int CurrentAxis);
//See Grid_MHDCTEnergyToggle.C for details on these functions.
float *MHDCT_temp_conserved_energy;
int MHDCT_ConvertEnergyToConservedC();
int MHDCT_ConvertEnergyToSpecificC();
int MHDCT_ConvertEnergyToConservedS();
int MHDCT_ConvertEnergyToSpecificS();
// used if UseMagneticSupernovaFeedback is turned on
int AddMagneticSupernovaeToList();
//List of SuperNova objects that each grid needs to keep track of
std::vector<SuperNova> MagneticSupernovaList;
};
// inline int grid::ReadRandomForcingFields (FILE *main_file_pointer);
// inline int grid::TurbulenceSimulationInitializeGrid (TURBULENCE_INIT_PARAMETERS_DECL);
#endif
| [
"kerex@snu.ac.kr"
] | kerex@snu.ac.kr |
0551f02b697e4a61a7c7ef903a54122d981c67cd | 817307d2069d7a03ebf55436f06ff4e862d89eb5 | /src/libPhylix/libPhylix/libPhylix_ObjectParams.cpp | 7f395e0c85f1091f3b316601b087ee0e9478f1fd | [] | no_license | thejinchao/PhylixWorld | 4efd8740a469a4059530992eaf94cd15f997e35a | bea5ee531430a714b7577661f2de88112e1c2e89 | refs/heads/master | 2020-04-05T01:29:36.923041 | 2015-04-17T02:53:48 | 2015-04-17T02:53:48 | 26,108,192 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 89 | cpp | #include "libPhylix_stdafx.h"
#include "libPhylix_ObjectParams.h"
namespace Phylix
{
}
| [
"thejinchao@gmail.com"
] | thejinchao@gmail.com |
3f1dc01ece80867d0332d7820b81126800b8a3bc | d9cf144e1aeeac5848e32175457dfba7d17d1dd9 | /qmzvtools/src/processing/qvtFunctionsInstalled.h | 96b3c5bf31714247f2927084cf23f86c00e2c67f | [] | no_license | mzonta/f-qmzvtools | 1d56262a5008968d909a2fbf40928584324c9e1a | c2edb63b0a1d1651056a339edaf13631b73ee1f8 | refs/heads/master | 2021-01-22T22:34:16.819960 | 2017-03-22T16:33:08 | 2017-03-22T16:33:08 | 85,552,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,449 | h | #ifndef QVTFUNCTIONSINSTALLED_H
#define QVTFUNCTIONSINSTALLED_H
// Qt
#include <QDebug>
// OpenCV
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
// C++
#include <iostream>
// General
#include "../general/qvtTimer.h"
// Processing
#include "qvtMessagesBuffer.h"
#include "qvtProcessingFunctionInterface.h"
#include "qvtColorSpaces.h"
class qvtFunctionsInstalled
{
public:
qvtFunctionsInstalled(qvtMessagesBuffer *messagesBuffer);
void addFunction(FunctionID funID, string funLabel);
int size();
bool isEmpty();
FunctionID getFunctionID(int fIndex);
string getFunctionLabel(int fIndex);
// - Color To Gray
bool colorToGray(Mat &inMat, Mat &outMat);
// - Color To HSV
bool colorToHSV(Mat &inMat, Mat &outMat);
private:
std::vector<sFun> functionsList;
int indexFirst;
int indexLast;
qvtMessagesBuffer *messagesBuffer;
void createList();
// Processing Controller Objects
qvtColorSpaces fColorSpaces;
// Generic(Virtual) Processing Function Pointer
qvtProcessingFunctionInterface *processingFunction;
// Set Processing Function
void setProcessingFunction(qvtProcessingFunctionInterface *functionPtr);
// Processing Function Run
bool processingFunctionRun(Mat &inMat, Mat &outMat);
// Processing Controller Functions
void processControllerMain();
};
#endif // QVTFUNCTIONSINSTALLED_H
| [
"mzonta@ieee.org"
] | mzonta@ieee.org |
c810f138efd7835ab285ff9021b7a089ec77cd6f | 6cecdbbe6eb721a0e43c07ed2b31bdcc9e553c55 | /Sail2D/Runs/first_flatplate_75_4/case/1000/U | f6dc4037dc31997a129bbaf4d440b3ac95549704 | [] | no_license | kiranhegde/Gmsh | 799d8cbefb7dd3f3d35ded15b40292fd3ede6468 | fefa906dabfddd9b87cc1f0256df81b4735420e1 | refs/heads/master | 2021-01-19T23:21:57.414954 | 2015-01-21T02:02:37 | 2015-01-21T02:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202,866 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "1000";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField nonuniform List<vector>
6717
(
(23.0212 2.93299 -2.97915e-20)
(23.2653 3.44523 1.65214e-19)
(23.5326 4.11407 1.56517e-19)
(23.8222 4.90575 -7.04873e-19)
(24.0872 5.80734 3.4635e-19)
(24.2367 6.77884 0)
(24.1581 7.77237 4.39381e-21)
(23.7477 8.73813 -4.80649e-19)
(22.9396 9.63869 1.00549e-18)
(21.721 10.4782 -5.14966e-19)
(20.1065 11.2536 0)
(18.0911 11.7098 0)
(22.5182 3.04156 4.91023e-20)
(22.5541 3.41827 3.38451e-20)
(22.5305 3.86095 0)
(22.4477 4.33988 5.72714e-20)
(22.309 4.85787 -6.42835e-20)
(22.1164 5.40076 0)
(21.8663 5.93923 2.51873e-19)
(21.5521 6.43383 -2.48945e-19)
(21.1712 6.84371 -3.01955e-19)
(20.7285 7.13387 2.93917e-19)
(20.23 7.27231 0)
(19.6874 7.22834 0)
(22.1454 3.0665 -5.51726e-20)
(22.1207 3.38553 2.44354e-20)
(22.0557 3.72811 1.41058e-19)
(21.9446 4.06319 2.07457e-19)
(21.7812 4.38363 -4.41606e-19)
(21.5631 4.68185 -5.63508e-19)
(21.2918 4.95016 5.3674e-19)
(20.9736 5.18032 3.68231e-19)
(20.6187 5.36409 -3.36137e-19)
(20.2399 5.49426 4.42386e-19)
(19.8522 5.56531 -4.48452e-19)
(19.4739 5.57434 0)
(21.8275 3.00714 1.24303e-19)
(21.7564 3.26194 -3.32186e-19)
(21.6542 3.52275 4.34825e-20)
(21.5227 3.77253 3.27245e-19)
(21.3624 4.00589 3.49195e-19)
(21.175 4.21689 -3.4808e-19)
(20.9629 4.39975 2.21281e-20)
(20.7296 4.54938 0)
(20.4804 4.66164 -2.80659e-20)
(20.2215 4.73378 -3.45421e-21)
(19.9603 4.76489 -1.75207e-20)
(19.7049 4.75605 0)
(21.5879 2.93411 -1.55869e-19)
(21.5032 3.13172 -1.78337e-19)
(21.3963 3.32857 2.96602e-19)
(21.2688 3.51357 -4.37782e-19)
(21.121 3.68272 8.04529e-19)
(20.9542 3.83292 -2.42322e-20)
(20.7707 3.96127 -5.10368e-19)
(20.5733 4.06528 5.25957e-19)
(20.366 4.14291 -5.63203e-19)
(20.1533 4.19287 3.63558e-20)
(19.9403 4.21492 4.05367e-20)
(19.7318 4.20989 -1.78042e-19)
(21.4015 2.84158 -2.74997e-19)
(21.3114 3.00274 1.38136e-19)
(21.2075 3.15698 -4.18527e-19)
(21.09 3.30085 5.19509e-19)
(20.9588 3.43147 0)
(20.8148 3.54686 5.74231e-20)
(20.6591 3.64497 6.18575e-20)
(20.4933 3.72412 0)
(20.3198 3.78301 3.61656e-20)
(20.1416 3.82069 0)
(19.9623 3.83685 3.09325e-19)
(19.7853 3.83197 -1.68332e-19)
(21.2522 2.75931 -1.53558e-19)
(21.1667 2.88672 3.13748e-19)
(21.0694 3.00934 5.30987e-20)
(20.9621 3.12427 -5.5763e-20)
(20.8445 3.22881 0)
(20.7172 3.32154 6.57799e-20)
(20.5808 3.40054 6.96777e-20)
(20.4358 3.46446 -2.99928e-19)
(20.284 3.51225 3.03698e-19)
(20.1277 3.54302 -3.4204e-19)
(19.9696 3.55629 3.46811e-19)
(19.8124 3.55214 4.75512e-20)
(21.1357 2.67216 -5.33455e-20)
(21.0549 2.78134 -5.54574e-20)
(20.9645 2.88243 0)
(20.8667 2.97752 -2.51382e-19)
(20.7602 3.0642 2.52246e-19)
(20.646 3.14185 -6.64154e-20)
(20.5248 3.20826 -7.04395e-20)
(20.3958 3.26212 0)
(20.2602 3.30265 3.30865e-19)
(20.1197 3.32891 -1.59923e-19)
(19.9769 3.34037 -1.78529e-19)
(19.8341 3.33664 -4.83237e-20)
(21.0387 2.60562 0)
(20.9674 2.69182 2.45749e-19)
(20.8838 2.77427 -4.34254e-19)
(20.7953 2.85452 3.17494e-19)
(20.6985 2.92792 3.39721e-19)
(20.5946 2.99522 8.14013e-20)
(20.4858 3.05287 -2.87909e-19)
(20.3686 3.09992 0)
(20.245 3.13578 2.53349e-19)
(20.1165 3.15867 -5.18004e-19)
(19.9849 3.16917 3.68023e-19)
(19.8527 3.16612 -1.88416e-19)
(20.9593 2.53847 1.94271e-19)
(20.8957 2.61415 -1.27566e-19)
(20.8202 2.68206 2.03246e-19)
(20.7429 2.75319 -3.98241e-19)
(20.6563 2.81579 -6.81059e-20)
(20.5611 2.87608 2.19286e-19)
(20.4644 2.92525 -2.93127e-19)
(20.3547 2.96663 0)
(20.2406 3.00081 -1.49067e-21)
(20.1214 3.01981 0)
(19.9976 3.02948 -1.86753e-19)
(19.874 3.02723 2.85146e-19)
(15.7298 11.2751 1.58965e-19)
(14.7887 10.2079 -1.54645e-19)
(14.4264 9.1376 5.09892e-19)
(14.3837 8.0738 -6.63065e-19)
(14.5335 7.03179 0)
(14.8073 6.03297 -1.77297e-18)
(15.1544 5.11016 3.19689e-18)
(15.5335 4.29167 -2.14393e-18)
(15.9118 3.59503 -5.34617e-19)
(16.2678 3.02321 0)
(16.5924 2.5615 -7.40726e-19)
(16.8869 2.15664 -7.79515e-19)
(19.1293 7.02039 -2.08551e-19)
(18.6209 6.67665 3.5751e-19)
(18.1731 6.24363 -9.93268e-20)
(17.7958 5.76961 5.70495e-19)
(17.4908 5.28207 -6.03434e-19)
(17.2598 4.79928 0)
(17.1036 4.33362 -1.39829e-18)
(17.0213 3.8923 1.65337e-18)
(17.0083 3.47802 1.62041e-18)
(17.0556 3.09132 -1.56807e-18)
(17.15 2.7307 0)
(17.2774 2.38098 -6.26816e-19)
(19.1173 5.52494 0)
(18.784 5.41666 -2.69504e-21)
(18.4791 5.24924 -2.9965e-20)
(18.2116 5.03045 -4.24988e-19)
(17.9872 4.76851 9.89337e-19)
(17.8092 4.47242 -5.70692e-19)
(17.6783 4.15163 0)
(17.593 3.81634 3.41621e-19)
(17.5493 3.47666 -6.91153e-19)
(17.5421 3.14206 6.76829e-19)
(17.5654 2.81926 2.36925e-19)
(17.6157 2.50466 7.46296e-20)
(19.458 4.71089 9.31049e-20)
(19.2162 4.63036 -1.2026e-19)
(18.982 4.5144 5.37764e-20)
(18.7615 4.36611 4.92404e-19)
(18.56 4.18925 -6.34454e-19)
(18.3817 3.98835 0)
(18.2298 3.7682 0)
(18.1065 3.53363 3.13954e-19)
(18.0132 3.28939 -6.2101e-19)
(17.9499 3.03988 9.76707e-21)
(17.9154 2.78861 -6.18891e-19)
(17.9087 2.5346 2.84675e-19)
(19.5296 4.17965 2.27653e-19)
(19.3317 4.12427 1.02224e-19)
(19.1397 4.04317 -2.7812e-19)
(18.9578 3.93774 4.10199e-19)
(18.7896 3.80998 3.93744e-19)
(18.6378 3.66248 1.50071e-19)
(18.5045 3.49816 -1.10656e-18)
(18.3912 3.32005 7.12878e-19)
(18.2985 3.1312 -1.44023e-19)
(18.2266 2.93452 4.88892e-21)
(18.1748 2.7327 3.95263e-20)
(18.1427 2.52637 -3.39682e-20)
(19.612 3.80716 -1.39279e-19)
(19.4419 3.76263 -2.07702e-19)
(19.2765 3.69828 5.67757e-20)
(19.1187 3.61506 2.53787e-21)
(18.971 3.5145 2.51824e-19)
(18.8354 3.39853 -3.84974e-19)
(18.7134 3.26929 -1.32331e-19)
(18.6063 3.12897 0)
(18.5148 2.97952 -1.40583e-19)
(18.439 2.82278 2.79332e-19)
(18.3788 2.66069 4.21383e-19)
(18.3333 2.49432 0)
(19.6577 3.53126 -5.14969e-20)
(19.5059 3.49397 5.21137e-20)
(19.3589 3.44041 1.1239e-19)
(19.2188 3.37127 5.7811e-20)
(19.0872 3.28806 0)
(18.9657 3.19239 0)
(18.8553 3.08608 2.79557e-21)
(18.7569 2.97102 1.32317e-19)
(18.6711 2.84858 1.34205e-19)
(18.5977 2.72014 -1.40178e-19)
(18.5366 2.58741 1.31447e-19)
(18.4871 2.45087 1.27688e-19)
(19.6928 3.31814 -1.02336e-19)
(19.554 3.28561 -7.99614e-20)
(19.4203 3.23931 3.05171e-20)
(19.2933 3.17961 -2.33096e-19)
(19.1736 3.10821 0)
(19.0632 3.02635 0)
(18.9619 2.93578 1.29231e-19)
(18.871 2.83847 -3.95586e-19)
(18.791 2.73526 1.28164e-19)
(18.7212 2.62751 -4.00174e-19)
(18.6614 2.51673 3.38711e-22)
(18.611 2.40255 -2.57845e-19)
(19.721 3.14898 -1.00079e-19)
(19.5914 3.1198 1.34701e-19)
(19.4678 3.07859 -2.7446e-20)
(19.3506 3.0254 1.15425e-19)
(19.239 2.96327 1.18917e-19)
(19.1382 2.89148 1.2219e-19)
(19.0434 2.81172 2.53851e-19)
(18.959 2.72713 5.22943e-21)
(18.8848 2.63779 -1.27783e-19)
(18.8193 2.54563 2.6048e-19)
(18.7629 2.4515 1.14924e-19)
(18.7141 2.35421 -1.0959e-19)
(19.7481 3.01029 1.01895e-19)
(19.6236 2.98451 1.34851e-20)
(19.5082 2.94608 -6.86476e-20)
(19.3975 2.8963 -5.69693e-20)
(19.2925 2.84335 -1.16983e-19)
(19.1984 2.78007 -4.89e-22)
(19.1071 2.70741 0)
(19.0285 2.63295 0)
(18.9599 2.55378 -1.49731e-21)
(18.8985 2.47431 -1.30577e-19)
(18.8474 2.39223 0)
(18.8014 2.30516 1.29049e-19)
(18.0527 -1.08533 0)
(17.4581 -1.0723 0)
(16.8612 -1.06161 7.25924e-19)
(16.271 -1.04606 -1.6393e-18)
(15.6876 -1.02809 1.65132e-18)
(15.1054 -1.00807 -2.17445e-18)
(14.513 -0.985796 1.59198e-19)
(13.8927 -0.960698 0)
(13.2143 -0.930623 -1.17628e-19)
(12.4238 -0.894533 7.60878e-19)
(11.4519 -0.792642 -8.40797e-19)
(10.9263 -0.733384 0)
(18.0429 -1.06461 -5.86271e-19)
(17.5044 -1.05299 0)
(16.9625 -1.04241 1.12218e-18)
(16.4233 -1.02786 0)
(15.8855 -1.01071 2.3615e-19)
(15.3433 -0.991261 0)
(14.7855 -0.969113 -1.54991e-19)
(14.1941 -0.943671 -1.81624e-19)
(13.5396 -0.91195 3.2915e-19)
(12.7793 -0.875207 -1.38011e-19)
(11.9385 -0.793382 1.83029e-19)
(11.9225 -0.693441 0)
(18.0367 -1.04992 -3.91921e-19)
(17.5482 -1.0405 -6.15168e-19)
(17.0538 -1.02989 -3.8733e-19)
(16.5573 -1.01512 8.51599e-19)
(16.0569 -0.997323 0)
(15.5463 -0.976881 -2.67111e-19)
(15.0146 -0.953557 0)
(14.444 -0.926947 1.58229e-18)
(13.8066 -0.893667 -2.08645e-18)
(13.074 -0.851042 0)
(12.3357 -0.774543 -3.31916e-19)
(12.5439 -0.664233 -2.02182e-19)
(18.0277 -1.03581 3.31736e-19)
(17.5816 -1.02714 3.6837e-19)
(17.1264 -1.01625 -8.00286e-19)
(16.6647 -1.00138 0)
(16.1941 -0.983478 1.20349e-18)
(15.7083 -0.962866 2.68705e-19)
(15.1961 -0.939313 -1.20374e-18)
(14.64 -0.912352 1.73032e-19)
(14.0142 -0.878734 4.04744e-19)
(13.3033 -0.832165 0)
(12.6379 -0.755074 1.08046e-18)
(12.9621 -0.64547 -5.42289e-19)
(18.0215 -1.02383 1.0119e-18)
(17.6119 -1.01471 4.79848e-20)
(17.1915 -1.00366 2.05375e-19)
(16.7604 -0.989221 8.94433e-19)
(16.3156 -0.971847 -4.84696e-19)
(15.8505 -0.951647 -1.07233e-18)
(15.3541 -0.928295 0)
(14.8091 -0.901122 -1.69792e-19)
(14.1922 -0.867084 5.92717e-19)
(13.4983 -0.818073 -9.407e-19)
(12.8847 -0.739337 -2.89256e-19)
(13.2795 -0.633349 1.32785e-18)
(18.0166 -1.00857 -1.47635e-18)
(17.6407 -1.00277 -2.00221e-19)
(17.2512 -0.99286 4.24412e-19)
(16.847 -0.979331 -4.56865e-19)
(16.4246 -0.962797 9.83203e-19)
(15.9774 -0.943263 0)
(15.4945 -0.920321 -5.96216e-19)
(14.9587 -0.893138 6.69713e-19)
(14.3492 -0.858724 0)
(13.6687 -0.80818 0)
(13.0919 -0.728 0)
(13.533 -0.62469 1.22889e-18)
(18.0124 -0.999256 4.36514e-19)
(17.6666 -0.993538 -6.74984e-19)
(17.3043 -0.98409 2.18311e-19)
(16.9234 -0.971576 -2.32082e-19)
(16.5198 -0.956176 -2.49107e-19)
(16.0872 -0.937722 -7.41102e-22)
(15.6151 -0.915296 5.91579e-19)
(15.0868 -0.887722 0)
(14.4836 -0.852355 3.75533e-19)
(13.8149 -0.799934 -5.46098e-19)
(13.2686 -0.717105 1.3051e-19)
(13.7512 -0.614904 -5.71936e-19)
(18.0081 -0.989734 2.03654e-19)
(17.688 -0.985339 -2.15317e-19)
(17.3497 -0.976451 -4.48313e-19)
(16.9895 -0.964417 1.41394e-18)
(16.6036 -0.949957 -1.00265e-18)
(16.185 -0.933162 8.09032e-19)
(15.7259 -0.912306 5.88205e-19)
(15.205 -0.885436 -1.30084e-18)
(14.6061 -0.850531 7.32361e-19)
(13.9445 -0.799053 0)
(13.4161 -0.717679 2.47872e-19)
(13.9162 -0.611648 -2.70107e-19)
(18.0102 -0.981726 1.86442e-19)
(17.7124 -0.978979 2.73317e-20)
(17.3945 -0.97155 2.29005e-19)
(17.0504 -0.960981 -4.77757e-19)
(16.6718 -0.9472 -2.52632e-19)
(16.2576 -0.933612 -5.37094e-19)
(15.8031 -0.91351 5.81731e-19)
(15.2888 -0.882305 6.16622e-22)
(14.696 -0.844458 -1.0186e-21)
(14.0444 -0.791522 4.08669e-19)
(13.5532 -0.706383 2.37186e-19)
(14.1396 -0.59594 2.56538e-19)
(17.9818 -0.97342 -1.96251e-19)
(17.7108 -0.971829 2.02068e-19)
(17.4175 -0.964423 -4.71132e-19)
(17.0982 -0.950888 2.43683e-19)
(16.7573 -0.936196 1.02999e-18)
(16.3538 -0.926736 1.0033e-21)
(15.9486 -0.918408 -2.91091e-19)
(15.4297 -0.88833 3.13587e-19)
(14.827 -0.851294 3.49758e-19)
(14.1635 -0.81085 -3.26789e-22)
(13.6376 -0.761703 -4.58037e-19)
(14.1342 -0.624339 4.80174e-19)
(14.6765 -0.729119 1.16756e-19)
(16.7937 -1.00762 0)
(18.0915 -1.06333 1.89843e-19)
(18.9302 -1.13302 1.02108e-19)
(19.5111 -1.17322 0)
(19.8965 -1.19694 -4.98589e-18)
(20.1229 -1.2058 4.22588e-18)
(20.2273 -1.20234 0)
(20.2529 -1.19012 0)
(20.2329 -1.1719 0)
(20.1874 -1.15203 -1.02804e-18)
(20.129 -1.12148 6.01046e-19)
(15.0711 -0.722454 -2.95354e-19)
(17.2917 -0.951902 -1.45865e-19)
(18.5315 -1.01168 -1.16475e-19)
(19.2785 -1.07872 -9.72281e-20)
(19.7608 -1.11298 0)
(20.0555 -1.13599 -4.56363e-18)
(20.2121 -1.1465 2.26887e-19)
(20.2737 -1.14694 3.76321e-18)
(20.2779 -1.1397 0)
(20.2498 -1.12738 2.75216e-18)
(20.2036 -1.1127 -3.20979e-18)
(20.1477 -1.08921 1.30752e-18)
(15.4225 -0.718433 1.72524e-19)
(17.6627 -0.91217 -7.29289e-22)
(18.8435 -0.979333 0)
(19.5123 -1.0374 0)
(19.9167 -1.06476 -1.63557e-19)
(20.1459 -1.08419 4.67073e-18)
(20.2571 -1.0935 -4.45216e-18)
(20.2937 -1.09589 0)
(20.2872 -1.09275 0)
(20.2566 -1.08576 2.03409e-18)
(20.2125 -1.07608 1.13311e-20)
(20.1607 -1.05916 -2.42208e-18)
(15.715 -0.708369 0)
(17.9465 -0.881386 -1.25085e-19)
(19.0717 -0.953339 0)
(19.6736 -1.00408 0)
(20.0153 -1.02838 1.60693e-19)
(20.1957 -1.04559 0)
(20.2762 -1.05388 2.39295e-18)
(20.2979 -1.05686 -1.70104e-18)
(20.2867 -1.05559 0)
(20.2569 -1.05141 0)
(20.2166 -1.04485 -3.92273e-19)
(20.1702 -1.03189 3.63766e-19)
(15.9663 -0.698484 -1.1485e-18)
(18.177 -0.859482 -6.13902e-22)
(19.2501 -0.932698 0)
(19.7945 -0.977625 0)
(20.0853 -1.00009 2.55441e-18)
(20.2286 -1.01551 1.16474e-20)
(20.2869 -1.02305 -2.4003e-18)
(20.2979 -1.02628 -2.47907e-19)
(20.2833 -1.02602 -1.85823e-18)
(20.2545 -1.02351 3.48096e-18)
(20.2173 -1.01936 -1.22591e-18)
(20.1752 -1.01034 3.84565e-19)
(16.1802 -0.688324 1.07764e-18)
(18.3659 -0.841222 2.29556e-19)
(19.3907 -0.914022 -3.08638e-18)
(19.8855 -0.955071 -1.39296e-18)
(20.1351 -0.976475 1.45553e-19)
(20.2502 -0.990548 4.34918e-18)
(20.2924 -0.997633 -2.1495e-18)
(20.2958 -1.00098 -2.2732e-18)
(20.279 -1.00134 -2.46834e-19)
(20.251 -0.99979 1.79452e-18)
(20.2165 -0.996633 6.44481e-19)
(20.1784 -0.988106 -8.15178e-19)
(16.3732 -0.678001 0)
(18.5259 -0.825474 -2.11203e-19)
(19.5025 -0.897037 1.49753e-18)
(19.9529 -0.93561 -1.35217e-18)
(20.1691 -0.956438 -1.55751e-19)
(20.2628 -0.969709 -1.16196e-18)
(20.2934 -0.976548 1.08273e-18)
(20.2918 -0.979958 -2.0511e-18)
(20.2738 -0.980683 2.91113e-18)
(20.247 -0.979772 4.23713e-21)
(20.215 -0.977755 -4.43926e-19)
(20.1804 -0.9716 -4.28832e-19)
(16.5154 -0.661352 -4.78122e-19)
(18.6457 -0.80192 1.41311e-18)
(19.5836 -0.875859 -1.45449e-18)
(20.0008 -0.916733 9.93973e-19)
(20.1909 -0.939194 0)
(20.2691 -0.952324 5.78738e-19)
(20.2917 -0.95917 0)
(20.2868 -0.962618 -3.20049e-22)
(20.2684 -0.963513 -1.89999e-22)
(20.2427 -0.962868 0)
(20.2131 -0.961275 -2.3182e-19)
(20.1818 -0.95565 0)
(16.7262 -0.646823 1.0176e-20)
(18.7765 -0.786544 -1.9516e-18)
(19.6575 -0.864455 1.06145e-18)
(20.035 -0.906287 3.26945e-19)
(20.2062 -0.927052 0)
(20.2723 -0.93928 8.68592e-19)
(20.2888 -0.945433 -2.19409e-18)
(20.2815 -0.948528 1.04683e-18)
(20.2631 -0.949261 -1.56483e-22)
(20.2386 -0.948612 0)
(20.2106 -0.947517 4.81394e-19)
(20.1818 -0.943504 -4.74054e-19)
(16.6605 -0.586528 -4.29921e-19)
(18.7663 -0.724941 1.49576e-18)
(19.6533 -0.832807 -6.82629e-19)
(20.0585 -0.892499 -6.49056e-19)
(20.2134 -0.917345 3.03986e-19)
(20.2723 -0.927753 -2.89404e-19)
(20.2853 -0.933537 -1.37697e-18)
(20.277 -0.936765 1.30714e-18)
(20.2592 -0.937231 5.06696e-19)
(20.2349 -0.935966 -2.50887e-19)
(20.209 -0.934926 0)
(20.1834 -0.931497 -2.51719e-19)
(15.7487 2.79943 -1.6909e-17)
(21.5287 2.0135 0)
(23.3866 2.19431 -3.44907e-18)
(24.5472 2.88304 4.30175e-19)
(25.3693 3.38814 4.07227e-19)
(25.8319 3.6832 1.55044e-18)
(25.9082 3.81306 8.40184e-19)
(25.6377 3.7717 -2.16013e-19)
(25.1344 3.56871 -2.49929e-19)
(24.546 3.25234 -6.20425e-19)
(23.9923 2.87642 1.92691e-19)
(23.5293 2.55276 3.15488e-20)
(-1.79889 -0.0673377 -4.67544e-17)
(11.1194 -0.269255 1.08313e-19)
(16.9599 -0.08722 3.28648e-18)
(20.3244 0.44065 -2.2266e-18)
(22.5273 0.93732 1.72424e-18)
(24.024 1.37366 1.23608e-18)
(24.9262 1.75043 -1.97355e-18)
(25.2803 2.03166 6.39974e-19)
(25.1858 2.18737 1.45946e-20)
(24.8029 2.21601 -4.39631e-19)
(24.3017 2.1319 4.48865e-19)
(23.8102 1.99242 0)
(1.54866 -0.412966 -1.26894e-17)
(7.79803 -0.744824 1.95021e-20)
(12.8781 -0.655729 3.72098e-20)
(16.8086 -0.396763 1.74754e-18)
(19.766 -0.0408911 -1.30143e-18)
(21.9438 0.341897 1.04102e-18)
(23.4503 0.712514 0)
(24.3379 1.03672 -3.8948e-19)
(24.6783 1.28393 1.1472e-18)
(24.607 1.4385 -3.35688e-19)
(24.2924 1.49939 1.59189e-19)
(23.8931 1.47646 -2.55547e-19)
(4.37909 -0.470206 -1.09575e-17)
(8.14083 -0.795358 3.9151e-18)
(11.7583 -0.892345 0)
(15.1083 -0.853254 -1.61017e-18)
(18.0561 -0.660323 1.09834e-18)
(20.4677 -0.368676 9.14634e-19)
(22.2845 -0.0326875 -1.46332e-18)
(23.4963 0.302779 4.64218e-19)
(24.1355 0.597905 0)
(24.3047 0.824559 -1.06062e-19)
(24.1601 0.974621 2.06315e-19)
(23.8643 1.03716 2.24543e-19)
(5.34486 -0.45533 -8.25226e-18)
(8.41186 -0.730402 -3.25217e-18)
(11.3243 -0.910255 1.99338e-18)
(14.1316 -0.984035 0)
(16.8264 -0.931017 7.40285e-20)
(19.2495 -0.762872 -7.1333e-19)
(21.236 -0.512602 1.44046e-18)
(22.6847 -0.22058 8.73502e-20)
(23.5696 0.0719496 1.17502e-19)
(23.9491 0.328396 -1.78462e-19)
(23.9616 0.530529 -2.32816e-19)
(23.7671 0.655721 -1.27055e-20)
(5.78327 -0.460018 6.07872e-18)
(8.54205 -0.692334 -2.54327e-18)
(11.1078 -0.878889 -9.86117e-20)
(13.5506 -0.992231 -1.08116e-18)
(15.9633 -1.0168 8.40522e-19)
(18.269 -0.941747 -7.4522e-19)
(20.3005 -0.776218 3.89751e-19)
(21.8998 -0.547472 -4.00602e-19)
(22.9797 -0.290728 1.5976e-19)
(23.5474 -0.0425146 -8.39608e-20)
(23.7099 0.174832 2.80207e-21)
(23.6191 0.333477 -2.17059e-19)
(6.21962 -0.479427 -4.59864e-18)
(8.73012 -0.686142 4.03992e-18)
(11.0629 -0.864204 -2.38666e-18)
(13.2512 -0.990315 5.27513e-21)
(15.4205 -1.0535 4.7399e-20)
(17.5595 -1.03717 5.36465e-19)
(19.5453 -0.935423 0)
(21.2099 -0.761714 -7.43242e-20)
(22.4223 -0.54395 -1.1505e-19)
(23.1417 -0.316516 2.60821e-19)
(23.4362 -0.102512 -1.14888e-19)
(23.4454 0.0618909 1.52939e-19)
(6.60998 -0.502862 -3.45595e-18)
(8.93004 -0.691121 0)
(11.0865 -0.859992 -9.0298e-21)
(13.0889 -0.988559 -6.83273e-19)
(15.0677 -1.07075 -2.33027e-21)
(17.0463 -1.09131 1.15597e-20)
(18.9477 -1.03734 1.55648e-20)
(20.622 -0.910347 3.52025e-19)
(21.9181 -0.729185 2.97494e-20)
(22.7556 -0.52421 -1.53116e-19)
(23.1624 -0.317445 8.77309e-20)
(23.2565 -0.149367 0)
(6.9295 -0.523973 -2.48958e-18)
(9.11014 -0.69682 0)
(11.1287 -0.857118 7.06007e-19)
(12.9886 -0.983854 -1.00328e-18)
(14.8189 -1.07478 -3.87315e-21)
(16.6588 -1.1178 8.06878e-21)
(18.4655 -1.09858 5.03709e-19)
(20.1174 -1.01082 -5.65806e-20)
(21.4617 -0.864258 9.61496e-21)
(22.3902 -0.683516 2.57456e-22)
(22.893 -0.489591 -1.15661e-19)
(23.0615 -0.321035 -3.07785e-20)
(7.20153 -0.542742 0)
(9.27889 -0.702815 -8.16744e-19)
(11.1849 -0.854915 5.24332e-19)
(12.9294 -0.97839 -3.88176e-19)
(14.6395 -1.07303 -4.38967e-21)
(16.361 -1.12948 5.84073e-21)
(18.0744 -1.1345 -2.6276e-20)
(19.685 -1.07796 1.8637e-19)
(21.0506 -0.962324 6.57552e-20)
(22.0467 -0.805996 4.74959e-20)
(22.6323 -0.629348 -2.86975e-20)
(22.8708 -0.464476 9.48382e-21)
(7.44008 -0.558103 0)
(9.44035 -0.709305 0)
(11.2518 -0.853824 -1.31371e-20)
(12.8998 -0.97353 9.76879e-21)
(14.5097 -1.06937 -2.15756e-20)
(16.1302 -1.13397 0)
(17.7563 -1.15581 -6.61706e-20)
(19.3164 -1.12343 9.01782e-21)
(20.6839 -1.03417 1.12272e-20)
(21.7279 -0.900441 7.6375e-20)
(22.3838 -0.741862 -5.96318e-20)
(22.6893 -0.58362 1.91643e-20)
(7.65161 -0.569238 4.0159e-19)
(9.59126 -0.715434 -2.26734e-21)
(11.3233 -0.853501 -1.31981e-19)
(12.8892 -0.969273 8.29688e-20)
(14.4143 -1.06485 7.90257e-20)
(15.9479 -1.13433 -1.06956e-19)
(17.4948 -1.16792 4.39529e-20)
(19.0014 -1.15415 1.32055e-21)
(20.3577 -1.08707 0)
(21.4342 -0.973831 7.67286e-22)
(22.1487 -0.832015 -3.25207e-20)
(22.5163 -0.688432 2.51632e-21)
(7.84152 -0.577508 -2.45959e-19)
(9.73015 -0.720755 1.06181e-20)
(11.395 -0.853474 7.43939e-20)
(12.8907 -0.965398 -5.59978e-20)
(14.343 -1.05981 3.81171e-20)
(15.8013 -1.13207 -1.88647e-20)
(17.2769 -1.17383 -3.0833e-20)
(18.7302 -1.1742 2.73425e-20)
(20.067 -1.12537 7.45847e-21)
(21.1634 -1.03006 -2.21419e-20)
(21.9256 -0.901365 -6.00287e-20)
(22.3468 -0.763609 6.4818e-21)
(8.01392 -0.58461 -1.17731e-18)
(9.85776 -0.725508 3.00791e-19)
(11.4652 -0.8537 0)
(12.9003 -0.961958 5.04208e-21)
(14.2893 -1.05475 0)
(15.6818 -1.12843 8.57552e-20)
(17.0932 -1.1759 -3.548e-20)
(18.495 -1.18713 1.0441e-20)
(19.8069 -1.1534 3.78118e-20)
(20.9131 -1.07435 6.02669e-20)
(21.7125 -0.959428 5.22447e-20)
(22.1776 -0.829811 -9.34832e-20)
(8.17122 -0.591463 9.82754e-19)
(9.97523 -0.73001 -5.30374e-19)
(11.5331 -0.854223 0)
(12.9153 -0.959075 1.775e-20)
(14.2489 -1.05004 -1.35498e-20)
(15.5832 -1.1243 1.48102e-19)
(16.9368 -1.17584 1.46388e-20)
(18.2898 -1.19554 -1.35803e-19)
(19.574 -1.17442 -9.27996e-20)
(20.6825 -1.10992 -4.82959e-20)
(21.5113 -1.00878 0)
(22.0165 -0.888234 0)
(8.31501 -0.59831 -5.57734e-21)
(10.0837 -0.734367 -7.60117e-19)
(11.5983 -0.854977 9.4717e-19)
(12.934 -0.956681 -3.53718e-19)
(14.2185 -1.04574 2.51984e-19)
(15.5012 -1.12002 -2.05283e-19)
(16.8028 -1.17443 1.09797e-20)
(18.1101 -1.20075 1.79271e-19)
(19.3653 -1.19008 -1.03196e-20)
(20.4709 -1.13821 -5.89397e-20)
(21.3226 -1.04969 0)
(21.8643 -0.938916 0)
(8.44653 -0.605093 1.69875e-18)
(10.1841 -0.73859 2.60294e-20)
(11.6606 -0.855888 0)
(12.9551 -0.954665 -4.25769e-19)
(14.1959 -1.04178 6.68931e-19)
(15.4325 -1.1157 -5.21752e-19)
(16.6871 -1.17207 1.07775e-19)
(17.9517 -1.20354 0)
(19.1778 -1.20149 7.08977e-20)
(20.2765 -1.16056 1.37784e-19)
(21.1452 -1.08332 1.32737e-19)
(21.7194 -0.982788 -1.01062e-19)
(8.56689 -0.611666 6.24229e-20)
(10.2771 -0.742656 0)
(11.7199 -0.856895 -7.17869e-19)
(12.9775 -0.952943 5.46112e-19)
(14.1793 -1.03814 -2.61478e-20)
(15.3744 -1.11141 -3.13143e-19)
(16.5863 -1.16908 5.76689e-19)
(17.8114 -1.20455 -2.74393e-19)
(19.0085 -1.20962 3.73264e-19)
(20.0973 -1.1782 -2.28722e-19)
(20.9783 -1.11096 -1.28159e-19)
(21.581 -1.02026 -1.25518e-19)
(8.67711 -0.617933 4.23687e-21)
(10.3633 -0.74657 1.3048e-18)
(11.7762 -0.857979 -1.01812e-21)
(13.0007 -0.951491 -3.5304e-20)
(14.1673 -1.03479 -9.08782e-19)
(15.3248 -1.10724 3.61645e-19)
(16.498 -1.16572 0)
(17.6862 -1.20429 2.44111e-19)
(18.8551 -1.21523 -2.10506e-19)
(19.9319 -1.19204 9.74044e-20)
(20.8213 -1.1337 -1.52762e-19)
(21.4485 -1.05216 -1.26127e-20)
(8.77818 -0.623838 2.4478e-18)
(10.4434 -0.750297 -2.91844e-18)
(11.8293 -0.859095 1.87036e-18)
(13.0241 -0.950243 1.33748e-18)
(14.1587 -1.03171 -9.92914e-19)
(15.2823 -1.10322 -4.08851e-19)
(16.42 -1.16211 2.4781e-19)
(17.574 -1.20308 -2.15627e-19)
(18.7155 -1.21884 -2.50583e-21)
(19.7789 -1.20278 1.99991e-19)
(20.6735 -1.1524 5.27414e-21)
(21.3217 -1.0793 2.85036e-19)
(8.87093 -0.629357 8.68162e-20)
(10.5177 -0.753836 3.26334e-18)
(11.8795 -0.860227 -1.06793e-18)
(13.0473 -0.94917 -4.8247e-20)
(14.1529 -1.02887 -5.67565e-19)
(15.2455 -1.09935 3.94018e-19)
(16.3506 -1.15838 8.90487e-20)
(17.4729 -1.20116 -3.92775e-19)
(18.588 -1.22091 2.60796e-19)
(19.6371 -1.211 2.22973e-19)
(20.5342 -1.16774 -1.72109e-19)
(21.2001 -1.10228 0)
(8.95618 -0.634485 5.89316e-18)
(10.5868 -0.757175 -1.73851e-18)
(11.9268 -0.861347 3.39178e-20)
(13.0701 -0.948237 4.87837e-20)
(14.1492 -1.02624 0)
(15.2133 -1.09565 -5.00279e-19)
(16.2885 -1.15459 8.13884e-19)
(17.3812 -1.19875 -3.44812e-19)
(18.4711 -1.2218 0)
(19.5053 -1.21725 0)
(20.4028 -1.18044 1.35446e-20)
(21.0837 -1.12206 0)
(9.03464 -0.639243 -3.21791e-18)
(10.6509 -0.760315 -1.71917e-19)
(11.9712 -0.862446 3.92033e-20)
(13.0921 -0.947421 0)
(14.1469 -1.0238 -4.33198e-20)
(15.1849 -1.09212 -4.27672e-21)
(16.2326 -1.15081 1.13325e-19)
(17.2976 -1.196 8.8581e-20)
(18.3636 -1.22177 0)
(19.3826 -1.22184 0)
(20.2787 -1.19074 7.951e-21)
(20.972 -1.13834 -3.67159e-19)
(9.10694 -0.643667 5.08463e-20)
(10.7105 -0.763274 -1.87887e-18)
(12.013 -0.863526 2.56411e-18)
(13.1133 -0.946715 -1.00125e-18)
(14.1458 -1.02154 4.3778e-20)
(15.1598 -1.08877 -4.0645e-21)
(16.1818 -1.1471 6.6409e-21)
(17.2212 -1.19303 0)
(18.2643 -1.22105 3.29333e-19)
(19.268 -1.22512 -2.7518e-19)
(20.1612 -1.19922 -2.38438e-19)
(20.8648 -1.15269 -1.99172e-19)
(9.1736 -0.647768 7.04758e-18)
(10.7659 -0.766056 -1.85349e-18)
(12.0521 -0.864578 0)
(13.1337 -0.946106 -6.72707e-20)
(14.1455 -1.01947 7.68623e-19)
(15.1372 -1.08561 -5.38317e-19)
(16.1356 -1.1435 2.51411e-19)
(17.1509 -1.18996 -1.0588e-19)
(18.1722 -1.21988 1.34701e-21)
(19.1608 -1.22745 1.83903e-21)
(20.0498 -1.20621 -9.64128e-21)
(20.7615 -1.1649 -3.812e-21)
(9.23522 -0.651568 3.68647e-18)
(10.8175 -0.768662 2.08948e-18)
(12.0888 -0.865593 -1.41361e-18)
(13.153 -0.94558 -9.97531e-19)
(14.1459 -1.01756 1.62821e-18)
(15.1169 -1.08266 8.30293e-20)
(16.0933 -1.14005 -5.60519e-21)
(17.0861 -1.18688 -3.32949e-19)
(18.0867 -1.21839 3.69289e-19)
(19.0602 -1.22903 -3.0824e-19)
(19.9442 -1.21206 2.53533e-19)
(20.6624 -1.17605 -2.20443e-19)
(9.29225 -0.655114 -4.47033e-22)
(10.8655 -0.771124 -2.32249e-18)
(12.1232 -0.86659 1.53551e-18)
(13.1714 -0.945142 -1.04724e-18)
(14.1467 -1.01581 5.46896e-20)
(15.0985 -1.07989 -7.67786e-19)
(16.0544 -1.13676 -6.15339e-21)
(17.026 -1.18383 4.6372e-19)
(18.007 -1.21668 0)
(18.9658 -1.23002 1.65426e-19)
(19.8439 -1.21684 -2.77211e-19)
(20.567 -1.18498 2.2218e-19)
(9.34507 -0.658406 0)
(10.9102 -0.773425 -2.27403e-18)
(12.1554 -0.867539 1.60669e-18)
(13.1889 -0.944759 -7.44024e-20)
(14.1477 -1.01419 2.12401e-21)
(15.0818 -1.0773 9.13596e-20)
(16.0185 -1.13362 2.93119e-19)
(16.9703 -1.18083 4.86657e-19)
(17.9326 -1.21479 -4.0536e-19)
(18.877 -1.23049 -1.66523e-19)
(19.7486 -1.22083 -1.0299e-20)
(20.4749 -1.19283 -2.45957e-21)
(9.39411 -0.661463 0)
(10.952 -0.77559 2.63685e-21)
(12.1857 -0.868459 1.80856e-21)
(13.2055 -0.944436 7.49384e-20)
(14.1491 -1.01271 8.82786e-19)
(15.0664 -1.07488 -9.37729e-19)
(15.9852 -1.13064 -9.19371e-19)
(16.9184 -1.1779 1.01565e-18)
(17.863 -1.21281 -8.47001e-19)
(18.7933 -1.23064 -1.81194e-19)
(19.6581 -1.22431 5.86199e-19)
(20.387 -1.19992 2.42185e-19)
(9.43968 -0.664326 0)
(10.991 -0.777639 -7.77051e-20)
(12.2141 -0.86935 1.68389e-18)
(13.2212 -0.944156 -1.27073e-18)
(14.1505 -1.01132 9.79826e-19)
(15.0523 -1.07258 9.61391e-20)
(15.9543 -1.12777 -4.81295e-19)
(16.87 -1.175 5.28881e-19)
(17.7977 -1.21068 -2.16478e-19)
(18.7144 -1.2303 3.67749e-19)
(19.5719 -1.22685 -6.20058e-19)
(20.3019 -1.20445 -1.74573e-21)
(9.48186 -0.666982 0)
(11.0274 -0.779576 -2.52835e-18)
(12.2407 -0.870196 1.80039e-18)
(13.2359 -0.943898 1.31853e-18)
(14.152 -1.01001 -1.01801e-18)
(15.0392 -1.07039 1.02999e-19)
(15.9254 -1.12499 1.68162e-19)
(16.8246 -1.17215 5.48992e-19)
(17.7363 -1.2085 -4.49945e-19)
(18.6397 -1.2298 -3.8126e-19)
(19.4899 -1.22965 -9.06638e-21)
(20.2212 -1.21334 -2.67258e-19)
(9.52131 -0.66938 -4.49453e-18)
(11.0613 -0.781273 2.609e-18)
(12.2656 -0.870898 0)
(13.2498 -0.943573 1.36512e-18)
(14.1534 -1.00871 -1.12172e-18)
(15.0269 -1.06824 2.90342e-21)
(15.8983 -1.12226 -1.69336e-19)
(16.782 -1.16927 5.68485e-19)
(17.6785 -1.20615 -7.05816e-19)
(18.5693 -1.22883 -2.00489e-19)
(19.4124 -1.23075 6.52941e-19)
(20.1457 -1.21913 2.73694e-19)
(9.5578 -0.671661 4.60846e-18)
(11.0929 -0.782939 0)
(12.2888 -0.871598 -1.91872e-18)
(13.2627 -0.943255 2.82068e-18)
(14.1546 -1.00741 -9.54364e-19)
(15.0153 -1.06607 -8.67761e-19)
(15.8728 -1.11943 7.10286e-19)
(16.7418 -1.16615 0)
(17.6238 -1.20328 7.35988e-19)
(18.5023 -1.22688 -6.12776e-19)
(19.3378 -1.22984 4.04102e-21)
(20.0708 -1.21837 -3.90699e-21)
(9.59166 -0.673802 0)
(11.1221 -0.784458 0)
(12.3103 -0.872209 0)
(13.2746 -0.942926 0)
(14.1556 -1.00614 -6.94632e-20)
(15.0042 -1.06396 7.87661e-19)
(15.8484 -1.11669 -5.47602e-19)
(16.7035 -1.16311 0)
(17.5717 -1.20051 2.55191e-19)
(18.4381 -1.22531 -4.1978e-19)
(19.2661 -1.23086 -3.46141e-19)
(19.9989 -1.22496 -9.21924e-21)
(9.6228 -0.675768 4.82391e-18)
(11.1492 -0.785823 -2.915e-18)
(12.3302 -0.872728 2.03026e-18)
(13.2855 -0.942561 0)
(14.1562 -1.00488 0)
(14.9933 -1.06189 9.25941e-19)
(15.8251 -1.11399 -9.41879e-19)
(16.667 -1.16009 6.23982e-19)
(17.522 -1.19762 4.77806e-22)
(18.3769 -1.22316 -6.44563e-19)
(19.1975 -1.22954 -3.8164e-21)
(19.9278 -1.2217 -6.41243e-21)
(9.65159 -0.67757 0)
(11.1742 -0.78708 0)
(12.3485 -0.873194 0)
(13.2954 -0.942181 0)
(14.1564 -1.00364 1.19224e-18)
(14.9828 -1.05987 -3.42527e-23)
(15.8028 -1.11134 -1.55401e-18)
(16.6321 -1.15707 -1.6233e-19)
(17.4746 -1.19465 1.06553e-18)
(18.3183 -1.22093 -6.67069e-19)
(19.1313 -1.22951 7.37413e-19)
(19.8597 -1.22522 -6.43577e-21)
(9.67812 -0.679223 5.02482e-18)
(11.1974 -0.788235 0)
(12.3653 -0.873602 0)
(13.3043 -0.941782 0)
(14.1561 -1.00242 -1.22451e-18)
(14.9724 -1.0579 3.26073e-23)
(15.7813 -1.10874 9.99723e-19)
(16.5986 -1.1541 9.88187e-19)
(17.4291 -1.1917 4.0291e-22)
(18.262 -1.21845 -2.29552e-19)
(19.0675 -1.22798 7.64235e-21)
(19.7944 -1.22635 3.05128e-19)
(9.70253 -0.680771 0)
(11.2186 -0.78935 0)
(12.3807 -0.874 2.11605e-18)
(13.3122 -0.941412 -1.51578e-18)
(14.1555 -1.00127 0)
(14.962 -1.05601 -8.77533e-19)
(15.7604 -1.10624 8.22882e-19)
(16.5664 -1.15121 3.29156e-21)
(17.3853 -1.18878 0)
(18.2078 -1.21603 -2.35323e-19)
(19.0057 -1.22654 -3.87148e-19)
(19.7315 -1.2276 -6.2599e-19)
(9.72518 -0.682116 5.21427e-18)
(11.2381 -0.790253 -3.18201e-18)
(12.3947 -0.874266 6.9164e-20)
(13.3192 -0.940982 1.91912e-21)
(14.1544 -1.00012 0)
(14.9518 -1.05419 -1.27444e-19)
(15.7401 -1.10385 -4.19534e-19)
(16.5353 -1.14846 3.21224e-21)
(17.3433 -1.18602 5.74435e-19)
(18.1556 -1.2138 -3.81535e-21)
(18.9463 -1.22517 3.96758e-19)
(19.6692 -1.22556 0)
(9.74592 -0.683413 5.30517e-18)
(11.2561 -0.791192 0)
(12.4076 -0.874591 0)
(13.3255 -0.940623 -1.90533e-18)
(14.1529 -0.999077 2.71725e-18)
(14.9417 -1.05249 -2.24026e-18)
(15.7204 -1.1016 1.71438e-18)
(16.5054 -1.14583 -7.05134e-19)
(17.3027 -1.18333 5.87693e-19)
(18.1054 -1.21152 -3.74687e-21)
(18.8887 -1.22413 -8.03607e-19)
(19.6072 -1.22383 3.30191e-19)
(9.76518 -0.684644 0)
(11.2726 -0.792048 0)
(12.4193 -0.874877 2.32838e-18)
(13.3309 -0.940292 -1.73221e-18)
(14.151 -0.998093 -8.34369e-20)
(14.9316 -1.05089 -2.27692e-21)
(15.7013 -1.09949 8.74907e-19)
(16.4765 -1.1434 -1.62807e-18)
(17.2637 -1.18087 1.20108e-18)
(18.0569 -1.2095 -2.51342e-19)
(18.8331 -1.22378 6.89314e-21)
(19.548 -1.22524 3.38278e-19)
(9.78281 -0.685765 1.09601e-17)
(11.2878 -0.792799 -1.97444e-22)
(12.4299 -0.875096 -2.37396e-18)
(13.3357 -0.939933 -1.78341e-21)
(14.1489 -0.997122 0)
(14.9217 -1.04934 1.36504e-19)
(15.6827 -1.09744 8.94053e-19)
(16.4486 -1.14102 -7.39716e-19)
(17.2262 -1.17844 -3.09049e-19)
(18.0104 -1.20731 5.09524e-19)
(18.7795 -1.22252 -8.44548e-19)
(19.4913 -1.22436 -6.97588e-19)
(9.7991 -0.686787 1.10408e-17)
(11.3018 -0.793482 -1.82092e-22)
(12.4396 -0.875276 -1.61732e-22)
(13.3397 -0.939552 -1.6895e-18)
(14.1464 -0.996152 -1.40358e-18)
(14.9118 -1.0478 2.2481e-18)
(15.6646 -1.09542 -6.89005e-19)
(16.4215 -1.13865 0)
(17.19 -1.17598 -4.82516e-21)
(17.9655 -1.20508 7.81401e-19)
(18.7276 -1.22123 4.31083e-19)
(19.4365 -1.22626 7.05356e-19)
(9.81403 -0.687711 5.73372e-18)
(11.3146 -0.794093 3.47695e-18)
(12.4483 -0.875411 -1.48161e-22)
(13.3432 -0.939151 -1.15675e-19)
(14.1436 -0.995181 -7.15189e-23)
(14.9019 -1.04628 -1.1466e-18)
(15.6469 -1.09341 -2.3538e-19)
(16.3954 -1.1363 1.93914e-19)
(17.155 -1.17353 6.37908e-19)
(17.9221 -1.20289 -2.62763e-19)
(18.6775 -1.21964 -4.3284e-19)
(19.3834 -1.22542 -3.64515e-19)
(9.82768 -0.688579 5.72636e-18)
(11.3262 -0.794684 -3.53199e-18)
(12.4561 -0.875518 0)
(13.3459 -0.938723 1.15964e-19)
(14.1404 -0.994189 -9.17999e-20)
(14.892 -1.04474 1.02164e-18)
(15.6295 -1.09137 -9.5611e-19)
(16.3698 -1.13387 -1.94763e-19)
(17.121 -1.1709 -3.22663e-19)
(17.8801 -1.20035 -8.11046e-19)
(18.629 -1.21755 4.5008e-19)
(19.3316 -1.22518 -2.45778e-21)
(9.84007 -0.689311 1.1611e-17)
(11.3366 -0.795128 -1.49283e-22)
(12.4628 -0.875515 -2.54596e-18)
(13.3479 -0.938219 2.02169e-18)
(14.1368 -0.993154 -2.78489e-18)
(14.8819 -1.04318 1.18855e-18)
(15.6123 -1.08931 9.67159e-19)
(16.3449 -1.13142 1.337e-22)
(17.0879 -1.16824 -3.28596e-19)
(17.8391 -1.19773 2.72601e-19)
(18.5817 -1.21506 0)
(19.2814 -1.22611 0)
(9.85138 -0.689943 5.88343e-18)
(11.3459 -0.795466 -1.38929e-22)
(12.4687 -0.875437 -1.22667e-22)
(13.3492 -0.937658 -2.05473e-18)
(14.1327 -0.992085 1.41773e-18)
(14.8717 -1.04158 -1.21403e-18)
(15.5953 -1.08723 2.4532e-19)
(16.3204 -1.12892 8.13623e-19)
(17.0555 -1.16545 -1.00807e-18)
(17.799 -1.19488 5.58815e-19)
(18.535 -1.21171 1.12862e-22)
(19.23 -1.22014 -1.42262e-22)
(9.86147 -0.69058 5.96022e-18)
(11.3541 -0.795851 0)
(12.4736 -0.875412 8.26236e-20)
(13.3499 -0.937171 1.96643e-18)
(14.1282 -0.99109 -1.6342e-18)
(14.8614 -1.04009 1.53128e-19)
(15.5783 -1.08529 0)
(16.2962 -1.12662 8.27813e-19)
(17.0237 -1.16297 -1.03e-18)
(17.7597 -1.19268 5.68438e-19)
(18.4894 -1.21092 -4.7053e-19)
(19.1815 -1.22355 -3.84269e-19)
(9.87038 -0.691142 1.21658e-17)
(11.3613 -0.796148 -1.07828e-22)
(12.4778 -0.87533 9.50628e-22)
(13.3499 -0.936665 -7.40274e-23)
(14.1233 -0.990119 -1.25968e-21)
(14.8509 -1.03866 -1.57693e-19)
(15.5616 -1.08343 -1.02216e-18)
(16.2726 -1.12442 2.11714e-19)
(16.9929 -1.16059 3.46152e-19)
(17.7218 -1.19033 -2.90547e-19)
(18.4458 -1.2084 4.78253e-19)
(19.1346 -1.21912 -3.92681e-19)
(9.87835 -0.691623 1.22205e-17)
(11.3676 -0.796378 -9.96983e-23)
(12.4811 -0.875197 9.40961e-22)
(13.3493 -0.936118 -6.86428e-23)
(14.1181 -0.989116 -1.48949e-18)
(14.8403 -1.03719 -1.93135e-21)
(15.5449 -1.08152 -1.30025e-18)
(16.2494 -1.12213 8.57938e-19)
(16.9627 -1.158 -3.56105e-19)
(17.6847 -1.18763 8.78504e-19)
(18.4027 -1.20599 2.76821e-22)
(19.0859 -1.21398 -2.31629e-23)
(9.88534 -0.69203 6.08652e-18)
(11.3731 -0.796549 3.96321e-18)
(12.4837 -0.875023 9.35871e-22)
(13.3482 -0.935545 -5.95161e-23)
(14.1125 -0.988109 -2.87644e-23)
(14.8295 -1.03575 -1.29645e-18)
(15.5284 -1.07967 2.62296e-19)
(16.2264 -1.11994 4.34603e-19)
(16.9329 -1.15563 -3.61624e-19)
(17.6481 -1.18535 5.96147e-19)
(18.36 -1.20512 5.02478e-22)
(19.0394 -1.21642 -4.06381e-19)
(9.89145 -0.692412 6.25449e-18)
(11.3776 -0.796734 -4.01226e-18)
(12.4855 -0.874861 9.93878e-22)
(13.3464 -0.934989 -2.22071e-18)
(14.1065 -0.987129 3.17162e-18)
(14.8186 -1.03435 -1.15109e-18)
(15.512 -1.07789 0)
(16.204 -1.11788 2.19333e-19)
(16.904 -1.15347 7.30282e-19)
(17.613 -1.18327 -3.00724e-19)
(18.3196 -1.20344 0)
(18.9971 -1.21751 0)
(9.89667 -0.692674 6.2266e-18)
(11.3813 -0.796767 -8.23785e-23)
(12.4866 -0.874554 -2.99567e-18)
(13.3441 -0.934299 2.38406e-18)
(14.1001 -0.986019 -1.45368e-18)
(14.8076 -1.0328 0)
(15.4956 -1.0759 -2.73467e-19)
(16.1818 -1.11549 -1.12079e-18)
(16.8758 -1.15076 7.40882e-19)
(17.5786 -1.18029 -6.13724e-19)
(18.2798 -1.19985 -2.89638e-21)
(18.9525 -1.21022 -5.0234e-22)
(9.90106 -0.692842 -6.39825e-18)
(11.3841 -0.796681 3.98792e-18)
(12.4869 -0.874137 2.9452e-18)
(13.3411 -0.933494 -2.28224e-18)
(14.0932 -0.984796 1.47445e-18)
(14.7962 -1.03114 -1.86937e-23)
(15.4792 -1.07381 -8.29368e-19)
(16.1599 -1.11304 2.25941e-19)
(16.8479 -1.14811 7.51742e-19)
(17.5449 -1.17789 6.22646e-19)
(18.2412 -1.19944 5.14896e-19)
(18.9131 -1.21806 4.20491e-19)
(9.90431 -0.693006 1.00526e-19)
(11.3858 -0.796606 0)
(12.4863 -0.873704 2.89325e-18)
(13.3374 -0.932648 -2.17763e-18)
(14.0858 -0.983483 -1.13912e-21)
(14.7845 -1.02934 1.3726e-18)
(15.4627 -1.07152 -1.11965e-18)
(16.138 -1.11026 2.3165e-19)
(16.8205 -1.14488 3.83154e-19)
(17.5121 -1.17408 -3.13902e-19)
(18.2043 -1.19369 -5.19153e-19)
(18.8751 -1.20568 -4.26938e-19)
(9.90627 -0.693073 0)
(11.3864 -0.796395 4.08327e-18)
(12.4846 -0.873127 -4.92747e-23)
(13.3328 -0.93166 -1.38675e-19)
(14.0776 -0.98202 -1.18359e-21)
(14.7721 -1.02736 -3.68166e-23)
(15.4457 -1.06898 -1.13542e-18)
(16.1158 -1.10712 2.46475e-21)
(16.7927 -1.14109 -8.03562e-23)
(17.4788 -1.16964 -1.60107e-18)
(18.166 -1.18872 1.58928e-18)
(18.831 -1.19462 -2.69347e-21)
(9.90709 -0.693046 6.61018e-18)
(11.3858 -0.796112 -4.30069e-23)
(12.4818 -0.872512 -3.03641e-23)
(13.3272 -0.930656 1.38934e-19)
(14.0685 -0.980572 -1.64605e-18)
(14.7591 -1.02543 1.23372e-18)
(15.428 -1.06656 -8.61959e-19)
(16.0931 -1.10418 -1.18349e-18)
(16.7644 -1.13765 7.83697e-19)
(17.4445 -1.1657 1.62015e-18)
(18.1259 -1.18556 6.28966e-21)
(18.7836 -1.18271 -4.34961e-19)
(9.90676 -0.692952 0)
(11.3844 -0.795815 4.30913e-18)
(12.4782 -0.871925 9.42801e-20)
(13.3208 -0.929734 -4.97856e-24)
(14.0589 -0.979275 1.05485e-23)
(14.7455 -1.02374 -1.25235e-18)
(15.4101 -1.06449 2.97958e-21)
(16.0701 -1.10178 0)
(16.736 -1.13501 -3.95252e-19)
(17.4104 -1.16282 3.30605e-19)
(18.0861 -1.18509 3.60426e-21)
(18.7419 -1.19011 2.39813e-21)
(9.90559 -0.69282 -6.75163e-18)
(11.3821 -0.795543 -1.31365e-19)
(12.4738 -0.871393 9.44315e-22)
(13.3139 -0.92889 0)
(14.0488 -0.978092 1.68849e-18)
(14.7318 -1.02222 -1.44926e-18)
(15.3921 -1.06265 2.93806e-21)
(16.0475 -1.09972 9.73995e-19)
(16.7084 -1.13296 1.93723e-22)
(17.3778 -1.16083 -6.63307e-19)
(18.0492 -1.1836 -5.53581e-19)
(18.7074 -1.19964 0)
(9.90375 -0.692563 6.82136e-18)
(11.3795 -0.795123 -4.40525e-18)
(12.469 -0.870716 -9.5571e-20)
(13.3065 -0.927922 2.32013e-18)
(14.0383 -0.976791 -1.10531e-21)
(14.7179 -1.02056 -1.46805e-18)
(15.3743 -1.06062 -2.98134e-19)
(16.0253 -1.09734 -9.86676e-19)
(16.6816 -1.13034 1.22167e-18)
(17.3465 -1.15798 -2.02513e-18)
(18.0143 -1.17836 1.10981e-18)
(18.6698 -1.19413 -4.58754e-19)
(9.90074 -0.692288 -1.08198e-19)
(11.3761 -0.794725 1.34264e-19)
(12.4634 -0.870012 3.1088e-18)
(13.2984 -0.926861 -1.47466e-19)
(14.0274 -0.975346 -1.61637e-18)
(14.7035 -1.0187 0)
(15.3562 -1.05832 1.21381e-18)
(16.003 -1.09457 -2.24967e-18)
(16.6547 -1.12711 4.11103e-19)
(17.3151 -1.15463 6.8023e-19)
(17.9785 -1.17412 5.59141e-19)
(18.628 -1.18846 -4.63849e-19)
(9.89671 -0.691868 7.17985e-18)
(11.3719 -0.794157 -4.22628e-18)
(12.457 -0.869152 6.28807e-18)
(13.2896 -0.925679 -2.22829e-18)
(14.0157 -0.973805 1.63629e-18)
(14.6887 -1.01676 5.49338e-24)
(15.3376 -1.05596 -1.22927e-18)
(15.9803 -1.09181 2.51819e-19)
(16.6275 -1.12395 0)
(17.2832 -1.15142 -3.29203e-21)
(17.9425 -1.17111 -5.40712e-21)
(18.5881 -1.18524 4.68916e-19)
(9.89171 -0.691473 6.9242e-18)
(11.3667 -0.793622 -4.54682e-18)
(12.4497 -0.868302 0)
(13.2801 -0.924498 0)
(14.0035 -0.972244 2.01054e-18)
(14.6732 -1.0148 -1.52423e-18)
(15.3186 -1.05359 1.24475e-18)
(15.9573 -1.08902 -1.28228e-18)
(16.6003 -1.12073 8.47168e-19)
(17.2516 -1.14784 -3.5203e-19)
(17.907 -1.16727 1.15486e-18)
(18.5497 -1.18077 -4.73012e-19)
(9.88592 -0.691019 0)
(11.3604 -0.793003 4.59619e-18)
(12.4416 -0.867375 2.11709e-23)
(13.2697 -0.923244 1.225e-23)
(13.9905 -0.970611 -1.91556e-18)
(14.6573 -1.01275 1.34922e-18)
(15.2992 -1.05111 3.89622e-24)
(15.9341 -1.08611 -7.79418e-19)
(16.5729 -1.11739 0)
(17.22 -1.14414 0)
(17.8714 -1.16339 -5.88555e-19)
(18.5113 -1.17831 4.78245e-19)
(9.87917 -0.69048 1.43547e-17)
(11.3533 -0.792294 -4.6432e-18)
(12.4325 -0.866364 0)
(13.2586 -0.921902 0)
(13.9769 -0.968892 1.81667e-18)
(14.6408 -1.01062 -1.36744e-18)
(15.2794 -1.04855 1.27573e-18)
(15.9107 -1.08311 -1.05043e-18)
(16.5455 -1.114 0)
(17.1886 -1.14047 0)
(17.8363 -1.15949 5.9018e-19)
(18.4743 -1.1741 4.83584e-19)
(9.87143 -0.689871 0)
(11.3451 -0.791506 4.69321e-18)
(12.4226 -0.865264 3.23332e-23)
(13.2465 -0.920465 1.86276e-23)
(13.9624 -0.967066 1.22029e-19)
(14.6236 -1.00837 -3.01192e-25)
(15.2591 -1.04583 -1.2913e-18)
(15.8868 -1.0799 0)
(16.5178 -1.11026 0)
(17.157 -1.13616 7.26558e-19)
(17.8012 -1.1544 -5.99867e-19)
(18.4359 -1.1661 0)
(9.86269 -0.689203 -7.32421e-18)
(11.3358 -0.790667 1.31153e-21)
(12.4115 -0.864114 3.32244e-18)
(13.2336 -0.918961 -2.67484e-18)
(13.9471 -0.965171 -1.24593e-19)
(14.6056 -1.00605 0)
(15.238 -1.04304 1.30695e-18)
(15.8624 -1.07663 -2.83367e-23)
(16.4896 -1.10651 -1.3362e-18)
(17.1249 -1.13202 3.69378e-19)
(17.7654 -1.15048 -6.09806e-19)
(18.3975 -1.16471 4.9838e-19)
(9.85296 -0.688407 7.28266e-18)
(11.3257 -0.789709 -4.7907e-18)
(12.3995 -0.862861 0)
(13.2197 -0.917367 1.58367e-19)
(13.931 -0.963201 2.13255e-18)
(14.5869 -1.00365 7.1711e-24)
(15.2164 -1.04019 -9.46139e-24)
(15.8375 -1.07331 -2.97693e-23)
(16.4612 -1.10273 -1.72395e-23)
(17.0927 -1.12777 -1.11459e-18)
(17.7297 -1.14544 1.22575e-18)
(18.359 -1.16048 5.03104e-19)
(9.84178 -0.687486 1.16271e-19)
(11.3145 -0.788643 -4.54748e-18)
(12.3864 -0.861501 6.79082e-18)
(13.2047 -0.915696 3.66105e-23)
(13.9139 -0.961158 -2.03098e-18)
(14.5674 -1.0012 1.63791e-18)
(15.1941 -1.03728 -1.33865e-18)
(15.812 -1.06991 1.10236e-18)
(16.4323 -1.09885 -1.36445e-18)
(17.0604 -1.1235 7.53016e-19)
(17.6942 -1.14063 -3.51425e-22)
(18.3214 -1.15682 1.82744e-22)
(9.83043 -0.686676 1.51062e-17)
(11.3028 -0.787627 -4.89203e-18)
(12.3729 -0.860126 0)
(13.1893 -0.913957 0)
(13.8965 -0.958999 2.05467e-18)
(14.5474 -0.99858 1.02144e-23)
(15.1714 -1.03416 -1.3547e-18)
(15.7862 -1.06625 0)
(16.4032 -1.09458 0)
(17.0278 -1.11866 -3.82715e-19)
(17.6585 -1.13481 -6.31543e-19)
(18.2832 -1.14953 0)
(9.81567 -0.685564 0)
(11.2875 -0.78647 4.94455e-18)
(12.3562 -0.858779 -3.46978e-18)
(13.1712 -0.912354 2.63268e-18)
(13.8764 -0.95707 -2.0783e-18)
(14.5253 -0.996234 1.67688e-18)
(15.1468 -1.0313 2.5387e-23)
(15.7588 -1.06277 -2.54237e-23)
(16.3727 -1.0904 -9.32949e-19)
(16.9943 -1.11385 1.15471e-18)
(17.6222 -1.12961 -2.95122e-21)
(18.2456 -1.14629 5.16189e-19)
(9.80853 -0.685078 1.54271e-17)
(11.2795 -0.785606 -4.99765e-18)
(12.3454 -0.85722 3.50926e-18)
(13.1577 -0.910429 -2.6633e-18)
(13.8603 -0.954689 1.31972e-19)
(14.5062 -0.993367 2.13029e-19)
(15.1244 -1.02787 1.38772e-18)
(15.7329 -1.05867 -5.05658e-23)
(16.3431 -1.08552 -9.44417e-19)
(16.9612 -1.10815 0)
(17.5863 -1.12276 -6.46441e-19)
(18.2083 -1.13689 -2.74367e-21)
(9.77624 -0.684481 -1.22369e-19)
(11.2441 -0.784383 0)
(12.3138 -0.857682 0)
(13.1267 -0.910896 2.52239e-18)
(13.8288 -0.955125 -4.38491e-18)
(14.4737 -0.993363 -2.14163e-19)
(15.0907 -1.02702 1.40365e-18)
(15.6977 -1.0566 1.15655e-18)
(16.3064 -1.08192 -1.43617e-18)
(16.923 -1.10285 3.92448e-19)
(17.547 -1.11579 -3.06956e-21)
(18.1679 -1.12827 5.28942e-19)
(9.83404 -0.670948 8.00417e-18)
(11.3001 -0.783702 4.94111e-18)
(12.3439 -0.853397 -3.58608e-18)
(13.1457 -0.908518 -9.04911e-22)
(13.8391 -0.952872 -1.34692e-19)
(14.4757 -0.990378 0)
(15.0845 -1.02278 1.42421e-18)
(15.6838 -1.05082 -8.79316e-19)
(16.2851 -1.07448 4.81863e-19)
(16.8949 -1.09384 3.98046e-19)
(17.513 -1.10554 -6.62147e-19)
(18.1294 -1.11711 5.36527e-19)
(9.46066 -0.796003 -7.74711e-18)
(11.1305 -0.791151 4.92776e-18)
(12.208 -0.88841 3.61178e-18)
(13.0159 -0.936612 -2.58253e-18)
(13.7148 -0.973665 2.32386e-18)
(14.359 -1.00496 3.05725e-21)
(14.9772 -1.03203 -1.44222e-18)
(15.5869 -1.05533 -2.96239e-19)
(16.1998 -1.07488 0)
(16.8216 -1.0908 -8.09531e-19)
(17.452 -1.09926 6.65177e-19)
(18.0803 -1.10802 1.08234e-18)
(9.14881 1.93264 1.8468e-17)
(9.56471 0.435651 0)
(10.1605 0.840454 1.06034e-19)
(10.8854 1.25025 3.83162e-18)
(11.7057 1.61641 -3.15592e-18)
(12.5701 1.89956 0)
(13.4283 2.097 8.57279e-19)
(14.2371 2.19353 -1.52706e-18)
(14.9648 2.18673 2.64052e-18)
(15.5943 2.09389 -5.51006e-19)
(16.1249 1.94171 9.06136e-19)
(16.5688 1.72446 1.49202e-18)
(13.3185 -0.689282 1.63196e-17)
(14.2029 -1.38242 0)
(14.051 -0.804343 0)
(14.0218 -0.472759 0)
(14.0875 -0.1093 0)
(14.2424 0.251586 -2.51799e-18)
(14.4862 0.589134 1.58485e-18)
(14.8108 0.877192 4.18612e-19)
(15.1977 1.09683 1.39473e-18)
(15.6193 1.23821 -6.39542e-20)
(16.0473 1.30043 -3.97259e-18)
(16.4581 1.26104 4.75022e-20)
(15.0924 -1.04149 0)
(16.0302 -1.00582 0)
(15.8422 -0.672024 -5.29819e-18)
(15.6576 -0.508227 3.8229e-18)
(15.5215 -0.29286 3.00566e-18)
(15.4448 -0.0701874 -2.45879e-18)
(15.4398 0.152418 0)
(15.5135 0.363784 1.7011e-18)
(15.6662 0.553564 -7.10438e-20)
(15.8905 0.711932 -2.30992e-20)
(16.1723 0.829838 2.02085e-18)
(16.4883 0.867824 -8.52454e-19)
(15.1738 -1.14134 1.37151e-17)
(16.184 -0.926138 -8.36661e-18)
(16.1534 -0.840585 5.59753e-18)
(16.0248 -0.725227 0)
(15.9154 -0.565559 -3.26968e-18)
(15.8465 -0.394869 5.30241e-18)
(15.828 -0.213747 -3.83411e-18)
(15.8649 -0.0286431 9.29774e-19)
(15.9601 0.151683 -7.73967e-19)
(16.1131 0.31801 6.44941e-19)
(16.3206 0.462452 -2.11413e-18)
(16.5696 0.545308 -8.37311e-19)
(15.411 -1.17545 0)
(16.4369 -1.03441 0)
(16.5143 -1.04257 1.87522e-19)
(16.4153 -0.942952 0)
(16.3063 -0.820193 -2.07766e-19)
(16.2226 -0.681063 -3.35999e-19)
(16.1768 -0.524862 -5.74561e-19)
(16.176 -0.355772 4.76812e-19)
(16.225 -0.180824 0)
(16.3262 -0.00867435 -6.44425e-19)
(16.4796 0.152918 1.84724e-20)
(16.6762 0.26523 -8.64685e-19)
(15.7053 -1.15483 1.1985e-17)
(16.7659 -1.10744 -7.88649e-18)
(16.9169 -1.12104 5.75928e-18)
(16.8413 -1.0379 -4.0485e-18)
(16.7287 -0.945291 6.79536e-18)
(16.6258 -0.834737 -2.40225e-18)
(16.5492 -0.70733 0)
(16.508 -0.564922 1.88031e-18)
(16.5093 -0.411132 -1.59001e-18)
(16.5582 -0.251555 1.31525e-18)
(16.6579 -0.0915379 2.27526e-20)
(16.8027 0.0368153 3.83814e-20)
(15.8376 -1.1303 0)
(16.9657 -1.14817 0)
(17.1857 -1.15267 -5.69239e-18)
(17.1419 -1.08807 4.02222e-18)
(17.0402 -1.0153 2.15813e-19)
(16.9361 -0.925012 0)
(16.8492 -0.820011 2.81795e-18)
(16.7892 -0.700773 -1.89465e-18)
(16.7633 -0.568796 2.34898e-18)
(16.7776 -0.427226 -3.94835e-18)
(16.8364 -0.27865 2.17822e-18)
(16.9386 -0.145739 1.54698e-20)
(15.8708 -1.11725 1.13902e-21)
(17.0805 -1.17711 1.52937e-17)
(17.3674 -1.17963 -5.6849e-18)
(17.3557 -1.1319 -4.2981e-18)
(17.269 -1.07239 3.18751e-18)
(17.1705 -0.996519 3.39481e-19)
(17.0824 -0.907324 -3.40088e-18)
(17.0153 -0.804643 1.89554e-18)
(16.976 -0.689096 -7.99567e-19)
(16.9702 -0.562609 -6.41835e-19)
(17.0026 -0.42646 -2.16368e-18)
(17.0752 -0.295398 2.67651e-18)
(15.8721 -1.11339 2.21967e-17)
(17.1695 -1.19738 -7.55486e-18)
(17.5189 -1.20288 5.47781e-18)
(17.5366 -1.16795 -4.56179e-18)
(17.464 -1.11803 3.81473e-18)
(17.3711 -1.05334 -3.10429e-18)
(17.2829 -0.976363 5.74943e-19)
(17.2109 -0.886755 1.88375e-18)
(17.1622 -0.784702 7.68472e-19)
(17.1419 -0.671416 -6.62467e-19)
(17.1542 -0.54814 7.01304e-21)
(17.1998 -0.427758 -8.86872e-19)
(15.8448 -1.11154 0)
(17.2429 -1.21038 -7.21862e-18)
(17.6483 -1.2207 5.96684e-18)
(17.6934 -1.1949 2.70906e-19)
(17.6347 -1.15233 -3.59651e-18)
(17.5477 -1.09642 2.74865e-18)
(17.4604 -1.0291 0)
(17.3851 -0.950113 1.87968e-18)
(17.3292 -0.85928 -1.59266e-18)
(17.2977 -0.756971 1.32214e-20)
(17.2944 -0.642908 1.9987e-20)
(17.3211 -0.526595 0)
(15.7944 -1.1089 -1.07044e-17)
(17.2939 -1.2179 7.34993e-18)
(17.7541 -1.23445 -5.74958e-18)
(17.8259 -1.21562 -2.60879e-19)
(17.781 -1.1791 3.58477e-18)
(17.7009 -1.13018 0)
(17.6158 -1.07055 1.69625e-18)
(17.5393 -1.00013 -1.88009e-18)
(17.479 -0.918568 -7.91047e-19)
(17.4398 -0.825846 6.58406e-19)
(17.4259 -0.720882 1.92274e-20)
(17.44 -0.608528 1.75865e-18)
(15.7346 -1.10566 -1.05343e-17)
(17.3228 -1.22174 -7.24971e-18)
(17.8403 -1.2456 1.08851e-17)
(17.9387 -1.23254 -8.2184e-18)
(17.9076 -1.20117 6.51576e-18)
(17.8347 -1.158 3.34662e-19)
(17.7527 -1.10471 -4.49028e-18)
(17.6763 -1.04139 2.33639e-18)
(17.6135 -0.967657 1.55593e-18)
(17.5691 -0.883356 -1.30141e-18)
(17.547 -0.787627 1.80944e-20)
(17.5492 -0.68274 -1.37792e-20)
(15.6751 -1.10209 0)
(17.3335 -1.22311 -4.12807e-21)
(17.9105 -1.25472 1.72913e-19)
(18.0364 -1.24663 -2.61738e-19)
(18.0192 -1.21974 -3.35162e-18)
(17.9535 -1.1814 2.04283e-18)
(17.875 -1.13343 5.66069e-19)
(17.7994 -1.07609 -9.32113e-19)
(17.7349 -1.009 -1.54978e-18)
(17.6867 -0.931843 1.29497e-18)
(17.6581 -0.843913 1.69626e-20)
(17.6503 -0.746477 -1.7382e-18)
(15.618 -1.09816 8.10908e-23)
(17.3296 -1.22294 -7.25402e-18)
(17.9668 -1.26203 -1.68412e-19)
(18.1215 -1.25837 2.65212e-19)
(18.1183 -1.23545 0)
(18.0601 -1.20122 3.42135e-19)
(17.9852 -1.15777 2.23338e-18)
(17.9107 -1.10552 4.64202e-19)
(17.8454 -1.04416 -1.54795e-18)
(17.7942 -0.973292 1.28313e-18)
(17.7604 -0.892298 9.72023e-21)
(17.7452 -0.801401 -1.73328e-18)
(15.5628 -1.09398 -1.56131e-19)
(17.3148 -1.22194 0)
(18.011 -1.26778 5.55652e-18)
(18.1956 -1.26823 -4.18541e-18)
(18.2067 -1.24888 3.32761e-18)
(18.1561 -1.21822 -5.07154e-18)
(18.0851 -1.17866 1.67551e-18)
(18.0121 -1.13078 0)
(17.9462 -1.07437 1.53693e-18)
(17.8928 -1.00904 -1.28216e-18)
(17.8547 -0.93426 1.06791e-18)
(17.8334 -0.848651 8.74104e-19)
(15.5082 -1.08973 3.1085e-19)
(17.2921 -1.2205 7.0755e-18)
(18.0448 -1.27223 -5.34476e-18)
(18.2601 -1.27659 0)
(18.2859 -1.26049 -3.31539e-18)
(18.2429 -1.23296 4.71403e-18)
(18.176 -1.19675 1.10718e-18)
(18.1047 -1.15263 -4.59966e-19)
(18.0388 -1.10047 -1.53393e-18)
(17.9836 -1.03987 0)
(17.9421 -0.970502 2.10087e-18)
(17.916 -0.889962 -8.69367e-19)
(15.4537 -1.0855 1.95096e-17)
(17.264 -1.21874 -1.35874e-17)
(18.07 -1.27559 5.14049e-18)
(18.3164 -1.2837 0)
(18.3572 -1.27058 3.30307e-18)
(18.3221 -1.24582 -5.03034e-18)
(18.2593 -1.21255 1.6546e-18)
(18.1899 -1.17171 6.25424e-21)
(18.1242 -1.12325 0)
(18.0676 -1.06684 1.26635e-18)
(18.0231 -1.00237 -1.06559e-18)
(17.9916 -0.927234 0)
(15.3991 -1.08134 2.91928e-17)
(17.2319 -1.21664 -1.36694e-17)
(18.0881 -1.27806 2.181e-21)
(18.3657 -1.28974 0)
(18.4217 -1.27936 0)
(18.3946 -1.25708 0)
(18.3361 -1.22639 2.20072e-18)
(18.2687 -1.18837 4.57379e-19)
(18.2034 -1.14306 -7.57512e-19)
(18.1459 -1.09005 -1.8914e-18)
(18.0991 -1.02907 -8.4443e-21)
(18.0648 -0.957715 -8.49095e-19)
(15.3447 -1.07727 -9.78728e-18)
(17.1969 -1.21418 -6.66713e-18)
(18.1001 -1.27975 1.06229e-17)
(18.4087 -1.29485 -4.10255e-18)
(18.4803 -1.28706 -3.27693e-18)
(18.4613 -1.26703 1.3282e-21)
(18.4072 -1.23863 6.57876e-18)
(18.342 -1.2031 -3.63936e-18)
(18.2774 -1.16058 1.52039e-18)
(18.2194 -1.11069 -1.88106e-18)
(18.1712 -1.05303 3.30045e-21)
(18.1345 -0.985748 8.51814e-19)
(15.2913 -1.07335 1.93955e-17)
(17.1602 -1.21134 -1.28932e-23)
(18.1064 -1.28072 -5.18396e-18)
(18.446 -1.29916 4.07746e-18)
(18.5336 -1.29387 -6.52693e-18)
(18.5229 -1.27592 2.65493e-18)
(18.4733 -1.2496 2.18402e-18)
(18.4104 -1.21634 -2.26244e-18)
(18.3467 -1.17637 -7.47298e-19)
(18.2884 -1.12938 3.75158e-18)
(18.2389 -1.07501 -1.04006e-18)
(18.1994 -1.01236 -8.32902e-19)
(15.24 -1.06964 1.87749e-17)
(17.1227 -1.20822 -1.30654e-17)
(18.1074 -1.28104 5.13462e-18)
(18.4779 -1.30277 2.51887e-19)
(18.5821 -1.2999 0)
(18.58 -1.28388 0)
(18.5349 -1.25947 2.71681e-18)
(18.4744 -1.22824 -1.35112e-18)
(18.4116 -1.19053 1.49842e-18)
(18.3532 -1.14607 -6.2708e-19)
(18.3028 -1.09448 1.02934e-18)
(18.2624 -1.0371 -5.60919e-21)
(15.1915 -1.0661 1.861e-17)
(17.0846 -1.20497 -1.31316e-17)
(18.1035 -1.28083 5.0859e-18)
(18.5049 -1.30577 4.02451e-18)
(18.6263 -1.30524 -3.23638e-18)
(18.6329 -1.29103 0)
(18.5925 -1.26838 -5.84353e-21)
(18.5345 -1.239 4.46834e-19)
(18.4727 -1.20337 0)
(18.4143 -1.16131 6.15481e-19)
(18.3632 -1.11209 -1.02727e-18)
(18.3215 -1.05826 -8.39235e-19)
(15.1456 -1.06271 -9.1515e-18)
(17.0464 -1.20173 2.01126e-19)
(18.0957 -1.2802 -5.04003e-18)
(18.5274 -1.30822 7.50648e-18)
(18.6664 -1.30994 -6.69117e-22)
(18.6821 -1.29745 -8.61589e-22)
(18.6466 -1.27639 -2.70299e-18)
(18.5911 -1.24866 8.93917e-19)
(18.5304 -1.21482 -7.41273e-19)
(18.4721 -1.17479 -1.23538e-18)
(18.4204 -1.12739 0)
(18.3786 -1.07369 8.16896e-19)
(15.1021 -1.05948 -9.22158e-18)
(17.0082 -1.19862 6.34262e-18)
(18.0846 -1.27932 4.99791e-18)
(18.5459 -1.31023 -3.97836e-18)
(18.7031 -1.31412 -1.99583e-19)
(18.728 -1.30325 0)
(18.6974 -1.28366 0)
(18.6446 -1.25741 4.4783e-19)
(18.5852 -1.22517 7.44004e-19)
(18.5272 -1.18697 1.22819e-18)
(18.4752 -1.14179 -2.06828e-21)
(18.4336 -1.08817 -2.49767e-18)
(15.0603 -1.05637 9.14959e-18)
(16.9704 -1.19567 6.28832e-18)
(18.0709 -1.27824 -1.12162e-22)
(18.561 -1.31187 -3.95669e-18)
(18.7364 -1.31786 2.00677e-19)
(18.7709 -1.30855 2.60377e-18)
(18.7454 -1.29034 -2.67679e-18)
(18.6954 -1.26548 1.77449e-18)
(18.6373 -1.2347 -1.4749e-18)
(18.5799 -1.19812 0)
(18.5278 -1.15515 1.01139e-18)
(18.4855 -1.10232 2.83398e-21)
(15.0196 -1.05336 9.08186e-18)
(16.933 -1.19282 0)
(18.0553 -1.27702 0)
(18.5729 -1.3132 2.47314e-19)
(18.7669 -1.32122 3.37889e-18)
(18.8111 -1.31343 -6.62484e-22)
(18.7909 -1.29653 5.35412e-19)
(18.7436 -1.27295 -2.20838e-18)
(18.687 -1.24356 -7.30738e-19)
(18.6302 -1.20843 1.21763e-18)
(18.5781 -1.16752 -2.01222e-18)
(18.5349 -1.11645 -8.21841e-19)
(14.9796 -1.05044 0)
(16.896 -1.19011 -6.1912e-18)
(18.0381 -1.2757 4.73844e-18)
(18.5822 -1.31427 2.43803e-19)
(18.7946 -1.32424 -1.98888e-19)
(18.8488 -1.31791 2.58313e-18)
(18.8339 -1.30226 -7.72342e-22)
(18.7895 -1.2799 -1.75734e-18)
(18.7344 -1.25182 7.34313e-19)
(18.6783 -1.21808 0)
(18.6263 -1.17904 -9.93682e-19)
(18.5821 -1.13042 8.21173e-19)
(14.9401 -1.04754 -8.95803e-18)
(16.8593 -1.18742 1.22961e-17)
(18.0197 -1.27429 1.52483e-19)
(18.5891 -1.31508 -3.90131e-18)
(18.8198 -1.32695 3.35025e-18)
(18.8841 -1.32204 -5.61638e-22)
(18.8746 -1.30757 -2.64612e-18)
(18.8332 -1.28635 3.81022e-21)
(18.7797 -1.25951 0)
(18.7242 -1.22712 0)
(18.6721 -1.18974 1.99844e-18)
(18.6266 -1.14336 0)
(14.9015 -1.04472 8.90117e-18)
(16.8227 -1.18473 7.57048e-23)
(18.0003 -1.27277 -4.83027e-18)
(18.5939 -1.31566 3.636e-18)
(18.8427 -1.32933 -3.53357e-18)
(18.9172 -1.3258 0)
(18.9133 -1.31245 5.2985e-19)
(18.8749 -1.29228 8.7351e-19)
(18.8229 -1.26654 0)
(18.7681 -1.23531 5.98966e-19)
(18.716 -1.19919 -1.99302e-18)
(18.67 -1.15354 7.97578e-19)
(14.8635 -1.04201 0)
(16.7866 -1.18211 0)
(17.9803 -1.27118 4.7996e-18)
(18.5968 -1.31602 -3.85849e-18)
(18.8636 -1.33142 3.90899e-19)
(18.9484 -1.32923 0)
(18.9501 -1.31694 -5.2341e-19)
(18.9148 -1.29774 1.30275e-18)
(18.8645 -1.27298 -8.79282e-22)
(18.8104 -1.24283 -1.7996e-18)
(18.7584 -1.20797 -1.97637e-18)
(18.7128 -1.16225 -8.0378e-19)
(14.8259 -1.03936 0)
(16.7513 -1.17952 0)
(17.96 -1.26952 -1.4837e-19)
(18.5979 -1.31616 3.83444e-18)
(18.8824 -1.33327 -3.50145e-18)
(18.9778 -1.3324 0)
(18.9853 -1.32112 2.61942e-18)
(18.9532 -1.30284 -3.46598e-18)
(18.9046 -1.27902 2.15457e-18)
(18.8513 -1.24984 0)
(18.7996 -1.21629 7.78076e-21)
(18.7541 -1.1717 1.62076e-18)
(14.7895 -1.03666 0)
(16.7164 -1.17667 0)
(17.9395 -1.26764 5.02792e-18)
(18.5972 -1.31595 -8.68706e-23)
(18.8994 -1.3348 1.26074e-21)
(19.0055 -1.33527 -2.53269e-18)
(19.0189 -1.32498 -2.08544e-18)
(18.99 -1.30761 3.88201e-18)
(18.9432 -1.2847 -2.15132e-18)
(18.8908 -1.25647 -1.18716e-18)
(18.8394 -1.22423 9.90116e-19)
(18.7934 -1.18122 -8.09479e-19)
(14.7547 -1.03415 0)
(16.6824 -1.17401 0)
(17.9188 -1.26582 -1.47351e-19)
(18.5948 -1.31562 0)
(18.9145 -1.33616 3.08317e-18)
(19.0316 -1.33791 -3.69558e-22)
(19.051 -1.32857 -2.07766e-18)
(19.0254 -1.31205 -3.28768e-21)
(18.9803 -1.28999 2.13624e-18)
(18.9288 -1.26263 -5.93926e-19)
(18.8776 -1.23148 7.31166e-21)
(18.8309 -1.18947 -8.00247e-19)
(14.7214 -1.03177 8.63754e-18)
(16.6494 -1.17139 -5.90907e-18)
(17.8978 -1.26394 0)
(18.591 -1.31513 3.75745e-18)
(18.9278 -1.33732 -3.0654e-18)
(19.0561 -1.34032 -2.51168e-18)
(19.0817 -1.33189 4.13836e-18)
(19.0595 -1.31615 -2.14235e-18)
(19.0163 -1.29484 -5.30092e-21)
(18.9656 -1.26821 -1.17779e-18)
(18.9146 -1.23785 4.20235e-21)
(18.8675 -1.19669 7.40406e-22)
(14.6896 -1.02945 0)
(16.6177 -1.16882 0)
(17.8768 -1.26203 0)
(18.5859 -1.31451 0)
(18.9397 -1.33829 3.24317e-18)
(19.0793 -1.34251 -2.50172e-18)
(19.1112 -1.33497 -2.57406e-18)
(19.0925 -1.31997 1.70577e-18)
(19.0511 -1.29937 -5.19465e-21)
(19.0014 -1.27342 -5.83858e-19)
(18.9509 -1.24379 9.70057e-19)
(18.9038 -1.20345 -7.90456e-19)
(14.6596 -1.02724 8.53778e-18)
(16.5868 -1.16633 5.83169e-18)
(17.8556 -1.26015 8.67488e-23)
(18.5796 -1.31381 -3.86003e-23)
(18.9501 -1.33912 -1.9119e-22)
(19.1013 -1.34454 -2.80172e-18)
(19.1396 -1.33789 2.56743e-18)
(19.1244 -1.32361 4.2266e-19)
(19.085 -1.30369 -3.524e-18)
(19.0364 -1.27842 1.16805e-18)
(18.9864 -1.24952 -1.92701e-18)
(18.9393 -1.21051 7.93677e-19)
(14.6311 -1.02515 1.69771e-17)
(16.5569 -1.16397 -5.79427e-18)
(17.8344 -1.25829 4.56337e-18)
(18.5725 -1.31306 -3.45684e-18)
(18.9592 -1.33982 1.8827e-19)
(19.122 -1.34644 2.7921e-18)
(19.1668 -1.34066 -3.66154e-22)
(19.1553 -1.3271 -2.11636e-18)
(19.1179 -1.30786 0)
(19.0704 -1.28331 0)
(19.0209 -1.25511 -9.53982e-19)
(18.9739 -1.21791 1.5613e-18)
(14.6034 -1.02318 0)
(16.5281 -1.16181 5.75832e-18)
(17.8132 -1.25652 -4.53326e-18)
(18.5645 -1.3123 -4.58101e-19)
(18.9671 -1.34045 -3.76137e-19)
(19.1415 -1.34823 0)
(19.193 -1.3433 -5.07253e-19)
(19.1851 -1.33043 1.68459e-18)
(19.1498 -1.31185 -2.7937e-18)
(19.1033 -1.28803 5.77553e-19)
(19.0543 -1.26057 1.91813e-18)
(19.0075 -1.22397 -7.64452e-19)
(14.5766 -1.02114 8.39426e-18)
(16.5 -1.15951 1.4374e-22)
(17.792 -1.25465 9.54442e-23)
(18.5559 -1.31139 2.2852e-19)
(18.974 -1.34089 1.14864e-21)
(19.1599 -1.34982 -2.46069e-18)
(19.2181 -1.34575 2.03109e-18)
(19.214 -1.33356 -1.67815e-18)
(19.1807 -1.31559 1.39081e-18)
(19.1353 -1.29242 -1.7317e-18)
(19.0866 -1.26571 0)
(19.0402 -1.23039 1.54213e-18)
(14.5508 -1.01926 1.66971e-17)
(16.4726 -1.15746 9.79642e-23)
(17.7709 -1.25291 6.60106e-23)
(18.5467 -1.3105 -2.57823e-23)
(18.9798 -1.34125 -2.79457e-18)
(19.1774 -1.35128 2.45033e-18)
(19.2424 -1.34801 -2.01623e-18)
(19.2421 -1.33644 2.0873e-18)
(19.2109 -1.319 -4.39564e-22)
(19.1665 -1.29633 -1.72048e-18)
(19.1183 -1.26993 -9.46053e-19)
(19.0724 -1.23398 -7.79857e-19)
(14.5257 -1.01746 0)
(16.4461 -1.15549 0)
(17.7501 -1.25119 4.58923e-18)
(18.5371 -1.30958 -3.60401e-18)
(18.9848 -1.34152 2.96765e-18)
(19.1939 -1.35261 -2.4403e-18)
(19.2658 -1.35012 5.04519e-19)
(19.2694 -1.33915 -2.08151e-18)
(19.2404 -1.32221 6.92202e-19)
(19.1972 -1.3 3.82794e-21)
(19.1498 -1.27417 6.32748e-21)
(19.1046 -1.23904 0)
(14.5011 -1.01567 -5.89822e-23)
(16.4205 -1.15356 5.62582e-18)
(17.7296 -1.24949 -1.38744e-19)
(18.5274 -1.30862 0)
(18.9891 -1.3417 1.83967e-19)
(19.2096 -1.35383 2.42961e-18)
(19.2885 -1.35214 -4.99343e-19)
(19.296 -1.34177 -1.65748e-18)
(19.2692 -1.32537 6.89089e-19)
(19.2273 -1.30372 -5.66964e-19)
(19.1806 -1.2786 2.82317e-18)
(19.1354 -1.24486 -7.59373e-19)
(14.4773 -1.01394 8.21716e-18)
(16.3952 -1.15165 5.5947e-18)
(17.7095 -1.24783 7.35476e-23)
(18.5175 -1.30764 6.81494e-24)
(18.9926 -1.34179 -1.29744e-21)
(19.2245 -1.35495 -2.41896e-18)
(19.3104 -1.35404 5.00305e-19)
(19.322 -1.34425 1.65022e-18)
(19.2974 -1.32835 -1.36789e-18)
(19.2567 -1.30717 5.64828e-19)
(19.2105 -1.28248 -9.39912e-19)
(19.1654 -1.24922 2.49866e-21)
(14.4543 -1.01228 1.63478e-17)
(16.3707 -1.14979 -5.56358e-18)
(17.6898 -1.24617 4.23752e-18)
(18.5076 -1.30661 -3.3215e-18)
(18.9955 -1.34175 -3.28654e-18)
(19.2386 -1.35592 1.48605e-22)
(19.3317 -1.35578 3.97233e-18)
(19.3473 -1.34652 -1.64353e-18)
(19.3249 -1.33106 0)
(19.2854 -1.31029 -3.64567e-21)
(19.2398 -1.28599 0)
(19.195 -1.25311 0)
(14.4318 -1.01071 8.00467e-18)
(16.3472 -1.14804 8.86623e-23)
(17.6707 -1.24457 -4.07586e-18)
(18.4978 -1.30556 3.29929e-18)
(18.9978 -1.34163 1.82072e-19)
(19.252 -1.35678 -2.39646e-18)
(19.3523 -1.35738 -1.97763e-18)
(19.3721 -1.34862 2.04425e-18)
(19.352 -1.33356 2.03153e-18)
(19.3138 -1.31312 -1.68708e-18)
(19.2688 -1.28906 -9.25671e-19)
(19.2244 -1.25598 -7.60886e-19)
(14.4101 -1.00911 1.6304e-17)
(16.3244 -1.1462 1.21507e-22)
(17.6523 -1.24292 -4.45629e-18)
(18.4882 -1.30443 0)
(18.9995 -1.34138 2.88682e-18)
(19.2648 -1.35751 -2.38478e-18)
(19.3725 -1.35885 1.96902e-18)
(19.3964 -1.3506 -2.03797e-18)
(19.3788 -1.33593 -6.7714e-19)
(19.3419 -1.31582 0)
(19.2977 -1.29216 5.94921e-21)
(19.2538 -1.25945 7.59954e-19)
(14.3897 -1.00753 8.04564e-18)
(16.3022 -1.1443 1.27674e-22)
(17.6344 -1.24123 1.33873e-19)
(18.4786 -1.30325 7.10782e-23)
(19.0007 -1.34104 -2.86935e-18)
(19.2769 -1.35815 2.37298e-18)
(19.3921 -1.36023 -1.9605e-18)
(19.4203 -1.35249 0)
(19.4051 -1.33823 0)
(19.3696 -1.31847 0)
(19.3262 -1.29525 -9.13898e-19)
(19.2826 -1.26284 2.75335e-22)
(14.3703 -1.00614 1.60046e-17)
(16.281 -1.14265 9.55255e-23)
(17.6171 -1.23971 -8.66757e-18)
(18.469 -1.30216 3.23655e-18)
(19.0015 -1.34071 -2.85196e-18)
(19.2885 -1.35875 1.02838e-22)
(19.4112 -1.36154 1.46536e-18)
(19.4438 -1.3543 1.61461e-18)
(19.431 -1.34043 -1.3378e-18)
(19.3968 -1.32098 5.52276e-19)
(19.3542 -1.29813 5.81077e-21)
(19.3109 -1.26579 7.48872e-19)
(14.3519 -1.00482 1.59176e-17)
(16.2608 -1.14105 -5.40616e-18)
(17.6004 -1.23819 0)
(18.4595 -1.30106 1.37459e-21)
(19.0019 -1.34035 2.83475e-18)
(19.2995 -1.35928 -9.03987e-23)
(19.4298 -1.36277 -3.8824e-18)
(19.4668 -1.35601 1.60746e-18)
(19.4565 -1.3425 0)
(19.4238 -1.32334 -1.65598e-18)
(19.3818 -1.30084 1.82604e-18)
(19.3388 -1.26866 -4.71868e-21)
(14.3345 -1.00355 7.79191e-18)
(16.2417 -1.13948 5.37421e-18)
(17.5843 -1.23668 1.09688e-22)
(18.4502 -1.29995 -3.1928e-18)
(19.002 -1.33992 0)
(19.3101 -1.35972 0)
(19.4481 -1.3639 4.85e-19)
(19.4895 -1.35761 0)
(19.4818 -1.34444 6.6054e-19)
(19.4504 -1.32554 0)
(19.4092 -1.3034 0)
(19.3664 -1.27115 -7.44931e-19)
(14.3182 -1.00235 7.99473e-18)
(16.2235 -1.13799 -5.34211e-18)
(17.5689 -1.23524 4.18566e-18)
(18.441 -1.29886 -3.17363e-18)
(19.002 -1.33947 5.77649e-18)
(19.3202 -1.36009 -2.61581e-18)
(19.4659 -1.36494 -4.7963e-19)
(19.5119 -1.35909 1.98909e-18)
(19.5067 -1.34625 -1.32324e-18)
(19.4768 -1.32757 0)
(19.4363 -1.30573 -1.80244e-18)
(19.3937 -1.27358 7.39416e-19)
(14.3027 -1.00124 7.82733e-18)
(16.2064 -1.13664 -5.1445e-18)
(17.5541 -1.23389 -4.15904e-18)
(18.4321 -1.29781 3.15174e-18)
(19.0018 -1.339 -1.74586e-19)
(19.3301 -1.36039 -2.02394e-18)
(19.4835 -1.36589 3.83403e-18)
(19.5341 -1.36047 -1.98218e-18)
(19.5315 -1.34793 -4.19907e-21)
(19.503 -1.32945 0)
(19.4632 -1.30788 5.69866e-21)
(19.4207 -1.27592 7.32905e-19)
(14.2884 -1.00013 -7.78293e-18)
(16.1901 -1.13523 1.03904e-17)
(17.54 -1.2325 -4.13225e-18)
(18.4235 -1.2967 3.13295e-18)
(19.0016 -1.33846 -2.76793e-18)
(19.3398 -1.3606 0)
(19.5008 -1.36672 3.07528e-21)
(19.556 -1.36173 1.57682e-18)
(19.5561 -1.34946 -1.96119e-18)
(19.529 -1.33116 -1.08149e-18)
(19.4899 -1.30977 1.79059e-18)
(19.4476 -1.27796 -2.19509e-18)
(14.2752 -0.999041 7.7381e-18)
(16.1745 -1.13381 -5.08266e-18)
(17.5266 -1.23111 0)
(18.4152 -1.29557 1.34805e-21)
(19.0014 -1.33785 2.75162e-18)
(19.3492 -1.36072 -2.29015e-18)
(19.5179 -1.36744 1.89963e-18)
(19.5778 -1.36285 -1.56898e-18)
(19.5805 -1.35084 0)
(19.555 -1.33268 -5.3627e-19)
(19.5166 -1.31141 0)
(19.4745 -1.27986 1.45805e-18)
(14.263 -0.998134 0)
(16.1599 -1.13265 5.05073e-18)
(17.5138 -1.2299 8.60541e-23)
(18.4073 -1.29455 -3.09187e-18)
(19.0012 -1.33729 0)
(19.3586 -1.3608 2.27791e-18)
(19.5349 -1.36809 -1.88382e-18)
(19.5995 -1.36387 0)
(19.6049 -1.35208 0)
(19.5808 -1.33404 3.47576e-21)
(19.5432 -1.31283 -8.81757e-19)
(19.5013 -1.28146 -7.28713e-19)
(14.2516 -0.997291 7.64687e-18)
(16.1465 -1.13154 1.61483e-19)
(17.5019 -1.22871 -4.05373e-18)
(18.3999 -1.29354 0)
(19.0014 -1.3367 2.71877e-18)
(19.3679 -1.36084 -2.26533e-18)
(19.5518 -1.36866 -1.8738e-18)
(19.6211 -1.36478 1.55261e-18)
(19.6293 -1.35319 0)
(19.6067 -1.33523 1.59869e-18)
(19.5699 -1.314 2.86703e-21)
(19.5282 -1.28274 0)
(14.2411 -0.996497 -1.18358e-19)
(16.134 -1.13048 -1.08129e-21)
(17.4908 -1.22755 0)
(18.3931 -1.29254 0)
(19.0018 -1.33607 -2.70181e-18)
(19.3773 -1.36079 4.50442e-18)
(19.5687 -1.36913 -3.26502e-18)
(19.6428 -1.36558 1.1594e-18)
(19.6537 -1.35415 -1.27866e-18)
(19.6327 -1.33627 1.24764e-23)
(19.5967 -1.31499 2.88609e-21)
(19.5553 -1.28404 -2.54093e-21)
(14.2316 -0.995761 8.04631e-22)
(16.1225 -1.12947 4.95632e-18)
(17.4806 -1.22645 8.9442e-23)
(18.387 -1.29156 -6.6718e-18)
(19.0027 -1.33542 5.3688e-18)
(19.3868 -1.36067 -2.23842e-18)
(19.5857 -1.3695 0)
(19.6646 -1.36625 7.67707e-19)
(19.6782 -1.35497 6.33573e-19)
(19.6587 -1.33714 0)
(19.6235 -1.31578 5.82466e-21)
(19.5824 -1.28485 -1.43272e-18)
(14.2229 -0.995128 1.17711e-19)
(16.1121 -1.12859 -4.92507e-18)
(17.4714 -1.22545 0)
(18.3817 -1.29062 2.01523e-19)
(19.0041 -1.33475 0)
(19.3965 -1.36048 2.22405e-18)
(19.6028 -1.36977 3.1896e-23)
(19.6865 -1.3668 -1.90939e-18)
(19.7029 -1.35562 -6.34186e-19)
(19.6849 -1.33781 0)
(19.6504 -1.31638 8.67908e-19)
(19.6095 -1.28645 1.42985e-18)
(14.2154 -0.994454 0)
(16.1025 -1.12756 4.89125e-18)
(17.4632 -1.22435 -3.94696e-18)
(18.3772 -1.28959 2.9921e-18)
(19.0061 -1.33397 -2.64742e-18)
(19.4065 -1.36014 -2.75132e-19)
(19.62 -1.36986 0)
(19.7085 -1.36715 0)
(19.7278 -1.35603 0)
(19.7112 -1.33822 0)
(19.6775 -1.31648 -8.56886e-19)
(19.6365 -1.28626 -7.10147e-19)
(14.2093 -0.99397 7.4056e-18)
(16.0942 -1.12679 -4.85864e-18)
(17.4562 -1.22342 0)
(18.3738 -1.28864 1.98697e-19)
(19.0088 -1.33319 2.62814e-18)
(19.4168 -1.35971 -1.91804e-18)
(19.6375 -1.3698 0)
(19.7309 -1.36728 0)
(19.753 -1.35615 0)
(19.7379 -1.33823 0)
(19.7048 -1.31617 6.00783e-21)
(19.6641 -1.28571 0)
(14.2045 -0.993452 7.35319e-18)
(16.0871 -1.12586 4.82297e-18)
(17.4505 -1.22239 1.26162e-22)
(18.3715 -1.28759 -3.14381e-18)
(19.0124 -1.33229 2.60805e-18)
(19.4277 -1.35913 1.52935e-22)
(19.6554 -1.36955 1.40528e-22)
(19.7537 -1.36718 -1.12467e-18)
(19.7786 -1.356 0)
(19.765 -1.33792 0)
(19.7326 -1.3156 6.12751e-21)
(19.6922 -1.28462 0)
(14.2014 -0.993128 0)
(16.0814 -1.12514 0)
(17.4463 -1.22149 0)
(18.3705 -1.28659 3.11926e-18)
(19.0169 -1.33137 -2.58714e-18)
(19.4391 -1.35843 0)
(19.6739 -1.36911 0)
(19.7771 -1.36683 -2.83714e-21)
(19.8047 -1.35554 0)
(19.7927 -1.33722 0)
(19.7609 -1.31458 8.46271e-19)
(19.7208 -1.28263 0)
(14.2002 -0.992942 -7.24212e-18)
(16.0774 -1.1245 5.05623e-18)
(17.4436 -1.22062 0)
(18.3709 -1.28558 0)
(19.0226 -1.33037 2.56542e-18)
(19.4514 -1.35758 2.21235e-22)
(19.693 -1.36846 -2.22576e-18)
(19.8011 -1.3662 -3.70594e-19)
(19.8316 -1.35471 0)
(19.821 -1.33607 0)
(19.7897 -1.31311 0)
(19.75 -1.28022 0)
(14.2008 -0.992884 7.07057e-18)
(16.0756 -1.12397 -1.26935e-21)
(17.4428 -1.21976 3.79676e-18)
(18.3729 -1.28454 -3.25711e-18)
(19.0295 -1.32926 0)
(19.4648 -1.35654 0)
(19.713 -1.36753 4.43752e-19)
(19.826 -1.3652 3.64776e-19)
(19.8592 -1.35345 0)
(19.85 -1.33438 0)
(19.8192 -1.31111 8.27699e-19)
(19.7796 -1.27633 -6.74799e-19)
(14.2026 -0.992921 9.76173e-22)
(16.0763 -1.12357 4.6678e-18)
(17.4442 -1.21896 -3.76119e-18)
(18.3768 -1.28347 3.22788e-18)
(19.0381 -1.32803 -5.03571e-18)
(19.4794 -1.35527 1.8415e-18)
(19.7342 -1.36626 0)
(19.8519 -1.36375 -3.1287e-21)
(19.8878 -1.35162 0)
(19.8799 -1.33194 0)
(19.8495 -1.3083 -8.27793e-19)
(19.8097 -1.27221 6.74393e-19)
(14.2067 -0.993118 1.1072e-19)
(16.0798 -1.12332 -4.62409e-18)
(17.4481 -1.21821 3.7239e-18)
(18.383 -1.28233 -3.00626e-18)
(19.0485 -1.32662 0)
(19.4956 -1.35369 2.34457e-18)
(19.7566 -1.36453 -1.73649e-18)
(19.879 -1.36173 -3.26712e-21)
(19.9176 -1.34912 0)
(19.911 -1.32869 0)
(19.8808 -1.30453 0)
(19.8405 -1.26756 0)
(14.2135 -0.993395 0)
(16.0864 -1.12306 4.57446e-18)
(17.4549 -1.21738 -3.68381e-18)
(18.3918 -1.28102 2.97387e-18)
(19.0613 -1.32491 -2.4651e-18)
(19.5137 -1.35166 2.06126e-18)
(19.7809 -1.36222 -1.71934e-18)
(19.9078 -1.35897 -7.13281e-19)
(19.9488 -1.34574 -5.8823e-19)
(19.9433 -1.32447 0)
(19.9133 -1.29949 8.06693e-19)
(19.8721 -1.26271 0)
(14.2235 -0.993769 6.90263e-18)
(16.0965 -1.12279 -4.52375e-18)
(17.4652 -1.21643 0)
(18.4037 -1.27942 0)
(19.0767 -1.32272 2.43673e-18)
(19.5343 -1.34896 -2.03731e-18)
(19.8071 -1.35903 0)
(19.9384 -1.35516 3.62452e-21)
(19.9817 -1.34117 5.87993e-19)
(19.9769 -1.31901 0)
(19.9468 -1.29308 -8.06488e-19)
(19.9046 -1.25582 0)
(14.2386 -0.994497 6.81783e-18)
(16.1115 -1.12282 -4.75562e-18)
(17.4801 -1.21555 7.18968e-18)
(18.4198 -1.27764 4.88733e-22)
(19.0959 -1.32006 -2.40503e-18)
(19.5581 -1.34548 0)
(19.8362 -1.35474 0)
(19.9713 -1.34993 6.97894e-19)
(20.0165 -1.3349 0)
(20.012 -1.31172 -4.77355e-19)
(19.9811 -1.28493 0)
(19.9376 -1.24644 0)
(14.2581 -0.995447 -6.72223e-18)
(16.1313 -1.12269 4.54515e-18)
(17.4996 -1.2141 0)
(18.4403 -1.27488 0)
(19.1191 -1.31598 2.3713e-18)
(19.5854 -1.34016 -1.9838e-18)
(19.8684 -1.34825 0)
(20.0069 -1.34221 -4.14277e-21)
(20.0535 -1.32592 5.684e-19)
(20.0488 -1.30154 4.7693e-19)
(20.0164 -1.27385 0)
(19.9714 -1.23255 -6.39623e-19)
(14.2903 -0.99695 6.51189e-18)
(16.1636 -1.12286 1.38531e-19)
(17.5307 -1.21278 -1.07973e-19)
(18.4711 -1.27181 2.81264e-18)
(19.1512 -1.31108 -2.33171e-18)
(19.6201 -1.33336 0)
(19.9062 -1.33956 0)
(20.0467 -1.33166 -4.51108e-21)
(20.0934 -1.31366 -5.67572e-19)
(20.0875 -1.28784 -4.65864e-19)
(20.053 -1.25956 7.73758e-19)
(20.0059 -1.21678 6.09444e-21)
(14.3213 -0.997894 1.0216e-19)
(16.1939 -1.12206 4.24258e-18)
(17.5612 -1.20763 -6.71831e-18)
(18.5023 -1.26332 5.5078e-18)
(19.1844 -1.29912 -2.28377e-18)
(19.6566 -1.31863 1.67987e-18)
(19.9463 -1.32285 -1.60332e-18)
(20.0887 -1.31369 -6.68386e-19)
(20.1352 -1.29499 0)
(20.1274 -1.2688 4.6509e-19)
(20.0903 -1.24099 -7.72815e-19)
(20.0402 -1.19759 6.34007e-19)
(14.4096 -1.00717 1.26405e-17)
(16.2922 -1.11744 -4.13747e-18)
(17.6521 -1.2056 1.02171e-19)
(18.5838 -1.25671 0)
(19.2564 -1.28862 0)
(19.7199 -1.30399 4.81493e-21)
(20.0023 -1.30417 0)
(20.1386 -1.29182 5.08438e-21)
(20.1797 -1.27132 0)
(20.1676 -1.24461 0)
(20.1268 -1.21766 0)
(20.0725 -1.17842 0)
(14.4397 -0.939907 0)
(16.2792 -1.13669 3.98874e-18)
(17.6373 -1.17225 -1.9145e-19)
(18.5752 -1.20594 1.1526e-20)
(19.2592 -1.22857 -2.14787e-18)
(19.7362 -1.24195 2.30068e-19)
(20.0309 -1.24688 0)
(20.1748 -1.24288 3.24666e-19)
(20.2184 -1.23096 0)
(20.2053 -1.2109 0)
(20.1616 -1.18856 0)
(20.1032 -1.15284 0)
(20.3416 -0.986558 3.31612e-18)
(20.0069 -0.311556 5.58402e-17)
(21.0734 -0.557342 -5.97315e-18)
(20.8915 -0.962656 -1.21404e-21)
(19.2467 -1.18332 0)
(17.8986 -0.804367 0)
(18.6166 -0.724953 4.96104e-18)
(22.6044 -0.408482 -1.57305e-19)
(19.0593 -0.614265 -2.96556e-18)
(20.7272 -1.01124 2.71781e-18)
(20.3496 -0.610338 0)
(17.6131 0.20782 -1.3818e-17)
(18.4008 -0.60261 -5.26712e-18)
(21.5694 -0.14724 6.48901e-18)
(20.045 0.0105675 -3.14819e-17)
(19.9543 -0.42413 -3.29815e-16)
(21.5209 0.2585 -4.58372e-18)
(19.9699 -0.249899 0)
(20.6238 0.253381 -6.01332e-16)
(19.6302 0.0191523 2.66263e-16)
(19.9824 -0.379793 -1.36877e-17)
(20.1282 0.206537 -1.20374e-16)
(21.7079 -0.791131 0)
(19.3979 -0.851025 0)
(19.6763 -1.25493 0)
(20.3592 -0.0600011 7.59123e-17)
(20.3419 0.0877663 8.47266e-18)
(19.2829 -1.10248 -2.766e-18)
(20.1908 -0.711994 4.40588e-17)
(19.7274 -0.169468 -4.78997e-17)
(19.5516 -0.815957 1.07591e-17)
(20.5087 -0.419632 1.68243e-17)
(21.9183 -0.576335 2.44421e-18)
(19.4433 -1.16807 -4.38516e-19)
(20.3328 -0.535343 8.59414e-18)
(18.9292 -0.496514 -8.83911e-17)
(21.9093 2.10047 -1.55362e-18)
(19.8283 0.0487093 1.54275e-17)
(19.3154 0.00242668 -2.61707e-17)
(20.8821 -0.359934 -5.24602e-18)
(21.073 -1.05487 2.53456e-18)
(19.9389 -0.175169 3.89085e-17)
(19.9643 -0.157811 8.79299e-17)
(20.151 0.0813732 -8.96938e-16)
(19.3732 -1.08304 9.84223e-18)
(20.5568 -0.825495 -1.00639e-17)
(19.1211 -0.977629 0)
(19.6801 -1.14096 -1.39955e-18)
(18.9133 -1.05617 0)
(21.8648 -0.196375 3.58858e-18)
(19.954 -0.148913 7.01761e-17)
(20.2698 0.0741095 -1.08353e-16)
(18.631 1.90559 1.53534e-18)
(19.6504 -0.982231 9.94309e-19)
(20.1102 -0.0128378 2.03451e-16)
(20.5897 0.196132 -2.43241e-17)
(18.366 1.60257 -1.6976e-18)
(18.5566 0.0843323 -6.19093e-18)
(19.2245 -0.411084 1.81717e-17)
(19.9071 0.179345 -8.96256e-17)
(20.2469 -0.904179 -9.82129e-18)
(20.0003 -0.991975 1.59062e-18)
(19.8304 0.17784 6.13514e-17)
(20.5864 -0.703409 5.71639e-18)
(19.5604 1.10067 -8.48292e-18)
(21.2085 -1.02235 0)
(19.8386 -0.879104 0)
(20.1425 -0.0220007 5.92086e-20)
(19.7142 -1.07855 0)
(18.4405 0.882231 1.40311e-17)
(19.4593 0.564237 2.02462e-17)
(20.0964 -0.0929709 2.18105e-16)
(20.7993 -0.4934 0)
(19.0074 -1.08303 -6.79423e-18)
(19.8042 -0.266529 -2.29703e-17)
(20.6986 -1.11228 4.73492e-18)
(19.9181 -0.402964 0)
(18.8172 0.0281013 -3.71671e-17)
(18.5461 -0.91675 -6.46047e-18)
(20.1696 -0.196523 3.00168e-17)
(20.6382 0.115993 -1.31587e-16)
(20.0287 -0.0155216 7.32354e-18)
(18.689 0.578372 1.49103e-20)
(20.9925 -0.244806 0)
(20.1581 0.000149371 0)
(20.0043 0.0317286 2.886e-16)
(19.0958 -0.31573 2.35528e-18)
(20.0066 -0.30658 0)
(20.8615 -0.825028 -1.41221e-19)
(20.5674 -1.1652 6.33161e-18)
(20.8616 0.404826 -4.88515e-18)
(21.3866 -0.845605 0)
(19.9347 -0.146038 0)
(20.037 0.0555629 -5.35001e-17)
(21.1429 0.874095 0)
(19.9763 0.24517 9.60694e-17)
(18.7569 -1.07932 9.17289e-18)
(20.5224 -1.01277 3.05184e-21)
(20.0524 0.0750426 -1.32259e-16)
(19.8392 -0.252557 -2.90593e-16)
(20.1319 -0.203231 -1.8413e-18)
(20.2679 -0.571441 -5.31285e-17)
(18.6955 -0.508092 3.47772e-20)
(19.6932 -0.425402 0)
(19.8924 0.117338 9.07375e-17)
(21.2006 0.505367 4.60647e-18)
(19.3115 -0.524459 -3.34274e-17)
(19.0764 -0.999381 4.31656e-18)
(18.1229 -0.237463 -3.37204e-18)
(20.2322 2.5523 -5.00384e-19)
(22.5659 -0.254509 5.40915e-19)
(20.4016 0.0108104 1.16171e-16)
(20.1332 0.0174653 9.9709e-17)
(20.4584 -0.177367 -4.76448e-17)
(19.8203 -0.750798 1.06486e-17)
(19.9647 -0.0687094 1.29648e-17)
(19.5733 -0.322997 1.72857e-16)
(20.274 -0.00376319 0)
(21.1717 0.00793994 0)
(19.6538 -1.17448 -3.16176e-18)
(20.0115 -0.0354337 1.99263e-17)
(20.8294 -0.00176615 -1.46375e-16)
(19.4942 -1.14704 -1.03858e-17)
(21.3581 -0.947249 -3.84197e-18)
(20.0317 0.18873 0)
(17.7559 -0.114525 -7.2797e-18)
(20.1534 -0.239881 4.47226e-17)
(20.0848 -0.323458 -9.84465e-17)
(19.5841 -0.152295 -4.88951e-17)
(20.3817 -0.105974 4.04683e-16)
(20.0033 -0.185243 7.2595e-17)
(19.8225 -1.11863 2.68865e-18)
(21.561 -0.687966 0)
(19.6333 -0.740793 0)
(19.0786 -1.06588 -1.99117e-17)
(19.9697 1.70408 -5.12804e-18)
(19.7307 -0.242259 9.5374e-17)
(20.1833 -0.518393 4.17416e-19)
(20.0148 -0.114189 2.08273e-16)
(19.4422 -0.656865 -2.04819e-17)
(19.6496 -0.722053 8.62975e-18)
(20.31 -0.748941 -4.9796e-18)
(20.7978 -0.988084 7.77019e-18)
(20.0586 0.0331623 0)
(19.1999 -1.00046 -3.58429e-18)
(19.8317 -0.179701 2.66901e-17)
(19.4702 0.211937 -3.86862e-17)
(20.1383 -0.924738 0)
(21.0731 -0.214277 0)
(19.7645 -0.758456 6.25753e-18)
(21.81 -0.85714 -2.13645e-19)
(20.0199 -0.359443 3.96748e-19)
(19.9452 -0.000765671 2.78148e-16)
(19.7476 -0.676061 6.27439e-18)
(19.6685 -0.59554 1.52228e-17)
(21.5802 -1.01047 1.09921e-18)
(17.8866 1.61846 0)
(18.4993 -0.653872 0)
(19.4575 -1.25656 2.45417e-18)
(22.2543 0.0229549 1.1998e-16)
(19.8608 0.0308871 5.61116e-17)
(19.3835 -1.18314 -9.02924e-19)
(22.1407 0.17991 1.70779e-18)
(20.0888 0.0396711 3.41154e-16)
(21.7271 -0.869975 -2.88569e-18)
(20.3087 -0.0718855 -3.47821e-17)
(20.5725 -1.09851 3.80055e-18)
(19.6919 -0.260528 -3.13327e-16)
(20.6056 -0.980931 -8.18443e-19)
(20.4446 -1.06597 -8.81653e-18)
(20.4437 -0.638717 7.50985e-18)
(20.3725 -0.126415 5.26586e-17)
(20.0548 -0.273031 -4.67047e-16)
(21.9897 -0.611133 -8.24542e-19)
(19.9824 -0.4216 0)
(17.1561 -0.158334 -6.40702e-19)
(20.1193 -0.00312077 9.57908e-17)
(19.6174 0.740665 -2.94349e-19)
(19.9844 0.359092 -4.08517e-17)
(21.4823 -0.225074 9.09333e-18)
(18.3109 -0.738458 7.33251e-18)
(19.9679 -0.524105 4.88742e-17)
(20.6284 1.49519 -1.97013e-17)
(19.8268 -1.16657 4.2099e-18)
(19.3278 -1.15659 6.63946e-18)
(18.0368 -0.373007 5.49828e-18)
(20.5184 -0.634636 2.31824e-20)
(18.2651 -0.290858 5.65375e-18)
(20.039 0.0430012 3.37904e-16)
(17.9701 -0.72525 -4.03525e-18)
(19.3211 -0.580617 1.44486e-17)
(19.9811 -0.304669 8.18995e-17)
(20.0992 -0.264299 0)
(19.7835 0.591442 5.12634e-17)
(19.4081 -1.11209 -5.42145e-18)
(19.9709 -1.07956 1.50023e-20)
(15.0852 0.111793 0)
(19.0111 -0.992176 2.26179e-18)
(20.6641 0.0278643 2.82883e-17)
(19.8585 0.273424 0)
(19.7689 -0.0446841 0)
(19.6225 -0.363212 -2.04935e-16)
(21.8263 -0.580645 9.3683e-20)
(20.1068 -0.0498927 -6.95609e-17)
(18.4742 2.00703 0)
(21.177 0.381791 -3.81251e-18)
(22.2481 1.2267 0)
(21.6832 -0.982487 -1.07851e-18)
(19.4843 -1.25688 -8.50075e-18)
(19.9996 0.00710767 -2.57524e-16)
(20.6415 -1.14346 -1.58563e-18)
(19.9185 -0.17567 3.84188e-16)
(19.126 0.363273 -9.4351e-18)
(18.991 0.147651 8.9459e-20)
(19.6848 -0.128562 5.01687e-17)
(19.3566 -0.814347 -1.08696e-17)
(18.7095 -1.04117 4.34742e-19)
(20.1259 -0.22243 1.3349e-16)
(21.2665 -0.681745 -3.19226e-18)
(19.7645 -0.139457 0)
(19.6369 0.135048 2.89549e-17)
(18.3698 2.12821 -2.78587e-18)
(19.339 -1.05365 4.35781e-18)
(17.6863 0.763904 -3.82338e-18)
(19.7494 -0.290024 4.14486e-16)
(20.1306 -0.403542 0)
(20.1525 -0.166344 4.96876e-17)
(20.431 0.042639 -4.34562e-17)
(19.4908 -1.01334 1.77883e-18)
(20.5346 -1.14076 1.624e-18)
(20.2724 -0.329481 -5.45225e-18)
(20.0601 -0.194841 3.6577e-16)
(20.3897 0.343531 3.83408e-17)
(19.6046 0.293929 0)
(23.3 0.822807 2.79999e-20)
(20.05 -0.0307791 4.05104e-16)
(19.6318 -1.20464 -3.74441e-19)
(20.8566 0.0457526 -1.53813e-16)
(18.1922 1.66191 -4.34136e-18)
(20.2323 0.0586805 9.12736e-17)
(18.4969 -1.0701 -2.29945e-18)
(18.5825 -0.990284 7.70662e-18)
(20.0111 -0.238215 -1.26551e-16)
(19.8293 -1.00533 0)
(19.8958 -1.16495 1.05663e-18)
(20.0076 0.0380498 0)
(19.1726 1.61552 -3.78425e-18)
(19.0527 -0.81658 7.22785e-18)
(20.0757 0.0100099 1.55867e-16)
(19.9814 -0.502663 1.32934e-16)
(20.6999 -0.763305 -1.42379e-19)
(18.0588 -0.452648 -2.95268e-17)
(21.0551 0.765529 -7.81902e-18)
(19.5815 -0.388016 3.06041e-18)
(20.8955 -0.85685 3.35051e-18)
(19.628 -1.04258 -2.57537e-18)
(18.9542 -1.07766 -3.90342e-18)
(19.9995 -0.0373989 -3.39966e-16)
(19.6073 -0.700796 7.39895e-18)
(18.7821 -1.00694 -2.42469e-18)
(20.5013 -0.955016 1.42648e-18)
(20.3041 -0.647927 -1.27578e-17)
(22.2519 0.737195 -2.12946e-19)
(14.9158 -0.848351 -2.73728e-18)
(19.6803 0.0420955 1.00978e-16)
(20.7149 1.23921 0)
(19.7339 0.134262 -4.47598e-17)
(16.8062 1.29975 -2.14895e-18)
(21.5444 -0.886688 -5.31776e-19)
(21.4835 0.776259 4.89765e-18)
(19.718 -0.269237 -7.0546e-18)
(19.9109 0.0248994 2.94166e-16)
(20.0983 -0.147376 -2.09225e-16)
(20.0512 -0.221635 -2.31939e-16)
(20.4034 -1.08771 0)
(20.0167 0.12072 0)
(21.6489 0.225079 6.48185e-18)
(20.1121 -0.30322 -1.89928e-16)
(17.71 0.0875812 1.20747e-17)
(20.273 -0.383654 -2.3781e-17)
(18.7026 -0.199635 -1.99571e-18)
(18.2067 0.0400035 0)
(18.6977 -0.585535 6.72252e-18)
(21.1984 -1.0465 0)
(20.9114 -0.140054 1.45361e-16)
(20.1814 -0.991016 3.79984e-18)
(20.1977 -1.08421 -2.06008e-18)
(21.4848 -0.900175 5.40069e-19)
(21.7198 2.4479 -9.49995e-19)
(18.4266 1.4993 4.94589e-18)
(18.0371 -0.482928 -3.80501e-18)
(17.6643 -0.453413 1.54395e-18)
(21.4789 0.126688 -4.60939e-18)
(19.9849 0.0876714 -6.92063e-17)
(19.1962 -1.0972 1.66269e-18)
(20.1143 -0.17165 -9.89679e-17)
(19.0408 -1.11398 -3.37093e-18)
(20.0701 -0.0172536 -4.14154e-16)
(21.1808 0.0351657 0)
(20.0224 0.00248582 1.07837e-18)
(19.9342 -0.028625 -4.68937e-17)
(20.0265 0.0242372 3.19638e-17)
(20.3721 -1.05328 0)
(19.8848 0.0144452 -2.74822e-16)
(17.9738 0.808416 1.68635e-18)
(19.8442 0.0764928 -9.65714e-17)
(20.4791 -1.01573 1.61148e-18)
(20.0903 0.0640152 2.60444e-16)
(20.083 -0.0794361 -1.63304e-16)
(20.8679 -1.03575 0)
(21.4531 -0.956364 -2.39514e-19)
(19.159 -1.08476 0)
(18.0605 0.365528 -2.79369e-18)
(21.6671 -0.359245 -2.67781e-18)
(19.7349 -1.00732 -6.79981e-18)
(19.8515 -0.89831 -2.86125e-18)
(20.0055 -0.775579 1.13266e-17)
(19.9381 -0.0764398 0)
(20.0245 0.0291502 -5.32658e-17)
(20.283 -0.263596 -2.66646e-17)
(20.1967 -0.966744 -3.60015e-18)
(17.9112 -0.0958431 3.34963e-18)
(20.0692 -0.99102 0)
(19.536 -0.855908 1.28429e-17)
(19.6613 0.33255 -1.05263e-16)
(18.0684 -0.129559 4.55652e-18)
(20.4142 -0.496907 1.48369e-19)
(20.4262 -0.84565 -1.62053e-18)
(18.6132 -0.8612 1.17118e-17)
(19.8095 0.328848 -1.98258e-19)
(19.1721 -1.12322 0)
(20.0611 -0.30278 3.3677e-16)
(19.976 -0.02006 1.03315e-16)
(20.4726 -0.990012 0)
(19.865 1.20003 -8.21173e-18)
(20.1105 0.181165 7.91039e-17)
(19.9981 -0.239528 1.88628e-16)
(19.5025 -0.798626 0)
(20.0572 -0.0499394 2.01391e-17)
(20.2916 -0.779146 0)
(20.3147 0.0556539 2.10803e-17)
(19.286 1.20472 -1.88942e-19)
(19.8293 -0.825047 0)
(19.7118 -0.834927 2.1576e-17)
(19.0122 0.518099 -1.00298e-17)
(20.1008 -0.856966 3.58179e-18)
(20.3425 -0.222149 -3.9911e-17)
(18.5429 0.424593 2.71309e-18)
(19.3383 -0.927735 -7.23022e-18)
(20.2387 -0.42017 -4.56782e-17)
(19.9092 -1.11908 1.02872e-17)
(19.1793 -0.894123 -4.83018e-18)
(20.0626 -0.359855 0)
(18.1007 0.00403789 -2.58906e-18)
(20.3722 -0.862149 -3.21233e-18)
(20.0826 -0.238413 -7.78154e-17)
(19.4049 0.475858 -1.91108e-17)
(20.0187 -0.313987 -2.77767e-19)
(19.9493 0.512294 2.93836e-17)
(18.773 1.43238 -8.89902e-18)
(20.6045 1.94001 3.71337e-18)
(20.1417 -0.327495 3.46297e-16)
(20.0426 0.0748857 1.70311e-16)
(16.7917 0.678692 -5.40188e-18)
(16.0254 -0.136039 0)
(20.0454 0.0589893 1.04885e-16)
(20.128 0.302152 3.64389e-17)
(19.6898 0.157114 0)
(20.3265 -0.383341 -2.62514e-17)
(20.24 -0.140268 -3.32093e-17)
(17.4089 0.302697 -2.39052e-18)
(22.1098 -0.778746 1.84944e-19)
(18.5344 0.584242 0)
(19.5233 -0.999186 -1.19783e-18)
(20.8886 -1.14192 0)
(20.0072 0.0304085 0)
(19.7568 -0.724816 0)
(20.3708 0.235697 -7.97166e-17)
(20.5402 -0.310278 7.45151e-18)
(19.9873 -1.12966 5.00074e-18)
(19.239 -1.23578 3.2285e-18)
(18.9788 1.04033 -3.26315e-18)
(20.1473 -1.16173 0)
(19.65 -0.0312681 7.284e-17)
(20.0704 -0.116993 1.79633e-16)
(22.2948 0.178331 0)
(21.4335 -1.04067 -6.55584e-19)
(19.5261 -1.22346 -2.08397e-18)
(20.4764 -0.105617 0)
(22.0078 -0.870361 -9.81541e-20)
(19.5631 -1.2532 9.39089e-21)
(21.5601 0.389363 2.15581e-18)
(17.7383 -0.371964 -2.17511e-18)
(18.3232 -0.907011 9.32521e-18)
(19.3121 -1.21079 1.12682e-18)
(20.107 0.0458172 0)
(20.0648 -0.930708 2.36461e-18)
(20.0404 -0.244988 -1.18061e-16)
(21.6711 0.155989 0)
(20.5539 -0.864216 -2.5484e-18)
(20.0111 0.0287919 1.9297e-16)
(18.4132 1.33138 2.93351e-18)
(19.9814 0.186037 -4.41795e-17)
(19.9892 2.49281 -1.28845e-18)
(20.6827 -0.937154 0)
(19.872 1.53958 -1.45272e-17)
(19.8746 0.515218 -2.94593e-17)
(20.2666 0.192543 2.10711e-19)
(21.2137 0.0876961 -4.62494e-18)
(21.0828 -0.992356 0)
(20.1121 -0.438451 0)
(20.3071 0.0149902 9.56495e-18)
(19.9111 0.0868165 -4.20012e-17)
(19.373 0.340334 0)
(20.3782 -0.191227 1.99111e-17)
(19.4121 -0.11124 -2.16843e-17)
(19.7766 0.259913 -8.04264e-17)
(20.1616 -0.939438 0)
(19.516 -1.03395 -5.65619e-18)
(17.0347 -0.0081847 -4.79109e-18)
(18.4667 0.0688103 -2.76741e-17)
(19.9326 -0.752377 1.10276e-17)
(20.2329 0.174298 -4.83948e-17)
(20.4027 1.28648 3.52899e-17)
(22.7612 0.282769 -2.48636e-19)
(19.8342 -0.439246 -4.39318e-17)
(20.3054 -0.406807 0)
(21.1238 1.46023 -3.90224e-18)
(20.0433 -0.191943 0)
(18.3987 -0.352653 -5.55371e-18)
(19.7538 0.499675 1.36809e-17)
(20.0004 0.0430002 4.41785e-16)
(20.0862 0.0276004 -1.83444e-16)
(18.8398 -0.953087 5.29255e-18)
(19.4355 1.56229 0)
(18.3461 1.04819 -5.28223e-18)
(21.3185 0.510302 0)
(20.0297 0.115081 -3.17232e-17)
(19.5949 -0.833884 0)
(19.7698 -1.14515 6.13296e-19)
(20.0622 -0.0264433 5.87913e-16)
(19.8819 -0.497797 -6.00467e-17)
(21.2527 -1.04019 1.20193e-18)
(19.6152 -0.204138 -5.82392e-17)
(20.2031 -0.81957 0)
(19.8572 0.103357 -8.44878e-17)
(19.3405 0.550011 1.3093e-17)
(22.2359 -0.770036 0)
(20.4076 0.614662 1.21812e-17)
(19.6219 -1.25945 5.15007e-18)
(19.7253 -1.13992 -1.82649e-18)
(19.3849 -0.984996 9.79244e-19)
(20.1745 -0.393507 1.47053e-16)
(22.9999 0.641386 2.92612e-20)
(20.1985 -0.429365 0)
(19.636 -0.0777826 -2.6328e-17)
(22.2144 -0.72267 -3.11545e-19)
(19.5012 0.975854 4.46567e-18)
(18.5359 1.78194 -2.65952e-18)
(20.3592 -0.702655 9.79847e-18)
(20.0674 -0.293251 0)
(19.8627 0.354554 0)
(20.2525 -1.15128 -4.17254e-18)
(19.8115 -0.245316 1.34032e-17)
(20.4102 -0.290854 -1.22333e-19)
(22.0757 -0.133587 -7.43166e-17)
(19.9152 0.0642007 1.16103e-16)
(22.8466 -0.326352 -2.86245e-16)
(19.0883 -1.13015 0)
(20.7921 -0.406077 8.76055e-18)
(19.4849 -0.685477 2.90678e-17)
(21.4274 -0.908603 3.28671e-19)
(19.8388 -0.275217 -2.05678e-16)
(19.9053 -0.167918 8.59951e-17)
(19.0533 -1.02599 6.4852e-19)
(19.8022 -0.795421 -1.04986e-17)
(18.3611 -0.914649 -5.27198e-18)
(19.9067 -0.22257 4.26229e-16)
(20.0031 0.0628494 -1.05981e-16)
(20.1159 0.0370533 0)
(19.835 -0.0402096 -2.0172e-16)
(20.0693 -0.633095 2.00607e-17)
(19.5345 -0.0121228 8.61591e-17)
(17.8759 1.93953 0)
(19.8359 -0.930665 0)
(20.1714 -0.865852 4.97661e-18)
(19.8169 -1.15416 1.91606e-18)
(19.2631 -1.19227 -1.18416e-18)
(22.5386 2.60876 -4.43583e-20)
(18.0396 -0.878468 1.54846e-18)
(18.7482 -0.478732 5.93466e-17)
(21.3978 -0.088472 2.11642e-16)
(19.8385 -0.799474 0)
(20.0871 -0.038746 2.13943e-16)
(19.9916 0.0685674 0)
(19.8046 -0.206805 -1.75685e-17)
(20.0128 0.0624129 -2.57019e-16)
(20.085 -1.07595 0)
(20.146 -0.218136 0)
(20.1588 -0.79309 6.29619e-20)
(19.1166 -1.07091 6.0921e-18)
(19.7234 0.027566 3.13859e-16)
(18.0712 0.486452 1.3893e-18)
(18.7636 1.05662 -4.01739e-18)
(20.0003 0.0485826 -8.06213e-17)
(20.4423 -0.00527526 -5.77694e-17)
(21.8699 -0.686125 0)
(19.9247 0.369867 3.61794e-17)
(17.3544 1.2557 3.93402e-18)
(19.6402 -0.762507 0)
(20.0727 0.0228633 0)
(19.9073 -0.364552 -6.97731e-17)
(20.9976 1.14409 -5.41922e-18)
(20.2191 -0.888421 1.31562e-20)
(19.9004 -0.327389 0)
(19.203 -0.32061 0)
(21.1132 -1.10526 6.27467e-20)
(18.8039 2.18684 4.51855e-19)
(20.1346 -0.453559 -3.27635e-16)
(19.3227 -1.24823 0)
(20.1302 -0.836468 0)
(19.0189 0.712877 -6.71349e-18)
(20.5672 -1.08332 4.73389e-19)
(19.9993 0.0192391 0)
(20.8988 1.65713 4.40149e-18)
(16.9347 -0.626138 -1.12373e-17)
(20.3557 -0.153506 2.98308e-17)
(19.9259 -0.97559 0)
(18.2853 -0.966002 1.42403e-18)
(19.877 0.150095 3.19563e-17)
(17.0661 -0.653273 -1.64118e-16)
(20.3897 -0.230338 -3.66906e-17)
(19.3597 -1.10873 5.60183e-18)
(19.8262 0.0423525 2.14317e-18)
(20.2318 -0.508042 3.20707e-17)
(15.8914 -0.899758 -7.22433e-19)
(20.8326 -1.02505 9.72525e-20)
(19.8996 -0.325253 1.36176e-16)
(18.2584 -0.671975 2.68606e-18)
(19.9983 0.0152837 0)
(20.6354 -0.696927 -1.83249e-17)
(21.5906 0.109494 1.23259e-19)
(19.8722 0.0511555 -1.14232e-17)
(21.7152 -0.217351 9.90093e-18)
(18.2958 0.535837 -8.87457e-18)
(20.3821 -0.736477 9.03431e-18)
(20.3134 1.42167 -1.31456e-17)
(20.4975 -0.757232 4.67843e-18)
(20.0002 0.0590553 -1.90964e-16)
(20.5631 0.46668 -1.78332e-17)
(20.3269 0.364068 -1.75227e-17)
(20.1415 -0.0421512 -1.29559e-16)
(20.2657 1.18907 -2.52717e-17)
(18.9031 -1.1502 1.2964e-18)
(21.8064 0.724028 6.60813e-19)
(20.5505 0.797097 9.00223e-18)
(19.5974 -0.0498955 1.82294e-17)
(19.696 -0.248853 5.97217e-18)
(21.6827 0.0307985 -3.82333e-16)
(18.5514 -0.771799 3.07461e-18)
(20.8238 0.529766 1.68007e-17)
(21.8523 -0.0312776 -4.66067e-16)
(19.6837 -0.0934604 -1.13923e-16)
(21.0314 -0.515953 0)
(20.1328 0.0296382 -4.02516e-17)
(19.9206 -0.83852 0)
(21.1159 0.114408 1.4767e-17)
(18.7478 0.235306 1.60939e-20)
(22.7764 0.104808 1.47865e-16)
(20.1205 0.0923267 -1.35862e-16)
(18.8321 -0.0540781 6.06335e-18)
(19.88 -0.313686 0)
(19.9468 0.0192265 1.0066e-16)
(17.4732 0.105442 -3.93067e-18)
(21.2884 -1.07576 -1.48331e-18)
(19.3779 -1.25347 0)
(20.0604 0.00309214 1.57709e-17)
(19.6233 -0.277672 -2.06463e-18)
(19.3947 -0.929508 0)
(20.1432 0.0260263 -2.09223e-16)
(16.7555 -0.570852 -2.96514e-19)
(18.7573 -0.491659 -3.4711e-17)
(18.5984 -0.919362 0)
(19.4929 -0.847001 -6.8784e-18)
(19.8604 -0.00291686 -6.08018e-16)
(21.2047 -0.669333 -5.45195e-18)
(19.9087 -0.198764 -2.16718e-16)
(20.3975 -0.874836 2.81789e-18)
(18.9108 -0.982661 0)
(20.5272 -0.105064 4.86312e-16)
(19.5646 -1.22637 -2.84975e-18)
(20.0719 -0.711634 3.65175e-17)
(20.3979 -0.662988 1.6244e-18)
(20.9658 -0.618176 0)
(20.1942 0.167097 1.44146e-16)
(20.0319 0.0125806 -1.6564e-16)
(19.1297 1.41491 0)
(19.9994 0.00439597 0)
(19.211 -1.06944 2.97599e-18)
(19.971 0.000377798 3.00864e-16)
(18.6024 2.00712 -1.2285e-20)
(19.0903 -0.560732 1.17662e-17)
(19.998 0.0674081 0)
(18.9156 -0.674652 5.87478e-21)
(19.4944 -0.315051 6.66966e-17)
(19.9878 -0.019813 9.88979e-17)
(17.4331 1.53491 -3.47173e-18)
(20.0062 -0.731674 9.7197e-18)
(18.4672 0.500192 -2.87248e-19)
(22.2229 -0.497312 2.06041e-19)
(19.7232 -0.917798 -6.76119e-18)
(20.1231 -0.239442 -9.46232e-17)
(19.8647 -0.337964 -3.62811e-17)
(20.6984 -1.12782 1.85875e-18)
(20.0832 -0.182465 -8.28454e-17)
(22.3552 -0.71215 5.15246e-20)
(19.6489 -1.25735 -2.46777e-18)
(19.0283 -0.762887 0)
(21.2625 -1.0503 0)
(20.1456 -0.361166 2.17419e-19)
(19.8892 -0.498832 1.61993e-17)
(19.9277 -0.373796 5.28355e-19)
(19.506 -0.636496 -3.47882e-17)
(19.8663 -0.167644 1.2887e-16)
(21.1782 -1.07468 -2.00719e-18)
(22.1329 -0.679669 4.0754e-19)
(19.5569 -0.36146 3.57423e-16)
(21.5655 -0.966199 1.47243e-19)
(20.8867 -0.766464 0)
(18.6389 -0.988098 1.92924e-18)
(20.6355 0.224485 -1.52596e-16)
(19.8824 -0.736805 4.06876e-20)
(19.1484 0.754593 1.61478e-17)
(20.0482 -0.394474 -1.51283e-17)
(18.9802 -0.520308 -2.36646e-17)
(22.3749 1.73577 0)
(23.0481 1.48599 -2.02167e-20)
(19.616 0.203308 -5.33339e-17)
(19.6071 2.06765 -2.50111e-18)
(19.1392 -1.15934 0)
(20.1566 -0.302918 2.10442e-16)
(19.1234 -1.1677 -3.2682e-18)
(22.741 -0.366351 -3.64867e-19)
(20.4523 -0.067022 -6.5299e-17)
(16.1218 0.227756 0)
(19.4987 -1.17976 3.28205e-18)
(19.2847 -1.1765 -9.47425e-19)
(20.1604 0.190686 -3.40925e-16)
(19.0562 0.284765 0)
(20.0701 -0.251406 2.20613e-16)
(22.6178 0.376799 3.18815e-16)
(21.1432 2.23266 -6.68876e-19)
(19.7316 -1.21901 -5.20009e-18)
(20.0392 -0.291926 2.30062e-16)
(20.0558 -0.228054 8.48195e-17)
(20.1299 -0.190548 1.69809e-17)
(20.3923 -0.954471 3.10628e-18)
(20.4497 -0.809337 -2.77444e-18)
(20.6958 -0.809291 1.22164e-18)
(22.2059 2.67336 0)
(19.9312 0.0839498 3.80897e-17)
(19.7922 -0.615714 -2.2157e-17)
(19.5719 -1.01062 2.58156e-18)
(20.4005 0.0867349 0)
(20.1624 0.122452 -1.00029e-16)
(20.0004 0.0913198 -1.196e-16)
(20.1044 -1.05114 -4.29119e-18)
(20.1063 0.0748384 -1.07703e-16)
(21.0815 0.514524 2.26646e-19)
(19.736 2.14899 -1.52693e-18)
(19.9482 -0.722384 -4.47856e-18)
(19.9894 -0.823935 3.95635e-18)
(20.436 -0.1943 -3.21386e-16)
(18.7826 -0.500049 -9.19269e-18)
(20.5117 -0.33444 1.78986e-17)
(19.8001 0.0666075 -3.37788e-17)
(21.2181 -0.327576 0)
(20.1321 -0.515975 -3.30251e-17)
(19.9931 0.077286 1.92515e-16)
(21.5084 1.29233 3.39087e-18)
(20.7278 -0.497272 -1.53024e-17)
(20.0096 -1.16968 -4.54527e-18)
(20.0643 -0.166402 4.72024e-19)
(20.028 0.163353 -4.66828e-17)
(19.9983 0.024881 -4.72524e-16)
(21.7544 -0.144072 6.40562e-16)
(18.187 0.383358 -1.04902e-17)
(20.1768 0.097957 6.99512e-17)
(18.2702 -0.910651 -2.27275e-20)
(20.3559 0.226764 -2.07061e-17)
(18.6236 0.361585 -2.18952e-18)
(20.5011 -1.17402 0)
(20.3457 -1.18001 -5.79788e-19)
(20.1414 -0.00918961 -1.32202e-16)
(20.0138 0.063848 0)
(20.3805 -0.9429 -1.89959e-18)
(17.3741 0.700347 0)
(18.6192 -0.212474 1.04265e-18)
(21.6355 -0.806026 2.79956e-18)
(18.7193 -1.0953 -6.23472e-19)
(18.8302 -1.12142 -5.64297e-19)
(20.3525 -0.735608 -2.08897e-18)
(20.0063 0.0643983 2.41331e-17)
(17.8302 0.168201 -8.99092e-18)
(19.7885 -0.00141054 -1.32446e-16)
(19.4067 -0.0664538 -1.27905e-17)
(19.9001 -0.292842 5.65941e-17)
(21.857 1.14028 0)
(19.9397 -0.0936834 8.33588e-17)
(20.3918 -0.575663 1.2527e-17)
(19.7595 -0.643021 8.2552e-19)
(19.9165 -0.0220455 9.76496e-17)
(19.8527 -0.118435 -7.39067e-17)
(20.1595 -0.0640483 8.52766e-17)
(20.7565 -0.00510501 -7.76023e-18)
(19.7211 -0.00252901 0)
(19.186 0.853285 5.77363e-18)
(21.2406 0.775342 -2.47645e-18)
(19.9057 -0.0406158 -3.62081e-20)
(19.9889 -0.00819437 0)
(22.158 0.0207868 2.16557e-18)
(20.5227 -0.380154 -9.24322e-18)
(20.0277 -0.265867 2.27198e-16)
(19.9703 -0.0726819 -1.27592e-16)
(20.6706 0.413696 1.53847e-19)
(20.5205 -0.982318 -3.55283e-18)
(19.6968 -0.939317 0)
(19.9982 0.00564238 0)
(19.3294 2.32146 -3.99307e-20)
(19.1046 -0.225294 2.53822e-17)
(20.0066 0.0129959 -7.62731e-17)
(19.7253 -0.616648 2.6338e-17)
(19.2394 -1.0847 -1.73943e-20)
(20.6398 -0.939724 1.1742e-18)
(19.9987 0.00459814 -3.60701e-16)
(20.058 0.221594 5.24603e-17)
(17.1015 1.28554 -5.77196e-18)
(18.6535 -1.10263 -1.47266e-18)
(20.6804 -0.980593 4.1803e-18)
(20.1369 -1.19719 -3.1633e-19)
(20.076 -0.353873 0)
(19.6532 -0.215575 0)
(20.0243 -1.05915 0)
(20.0478 -1.10836 -6.3962e-18)
(18.9248 1.77054 -1.93347e-19)
(19.9267 -0.574569 -2.28686e-17)
(18.9005 -1.17901 1.10251e-18)
(21.4207 2.1237 0)
(20.0787 -0.769695 -5.64265e-18)
(19.6451 -0.419929 -1.89881e-17)
(21.4663 -0.770553 1.31352e-20)
(20.1831 -0.805292 6.99481e-18)
(19.3536 -0.0580578 -1.36628e-17)
(19.9391 0.0372363 -1.40056e-16)
(20.2383 0.015814 -3.44529e-17)
(18.1669 -0.0950259 -5.36354e-18)
(20.087 -0.919929 6.37828e-18)
(20.2273 -0.177102 -5.42444e-17)
(23.3525 -1.04599 -2.79959e-16)
(17.6981 -0.210045 -4.10199e-18)
(19.9706 -0.221946 3.19749e-16)
(19.2598 -0.684456 0)
(18.4127 -1.03484 -1.33097e-18)
(19.6986 0.0579266 1.93859e-16)
(17.9519 2.32528 8.40929e-19)
(20.0164 0.0666719 2.42251e-17)
(19.8474 -0.0307207 -3.19679e-17)
(18.9356 -0.370235 4.0553e-17)
(19.7208 0.364428 -5.09619e-17)
(20.9782 -0.970584 -3.50497e-18)
(19.6981 -0.985549 -4.71904e-21)
(21.5583 -0.822527 0)
(20.1874 -0.763551 0)
(19.9872 0.0667712 -1.30086e-16)
(18.356 -0.264539 -5.52168e-18)
(20.7142 -1.15078 -1.04096e-18)
(19.1357 0.291374 0)
(18.3592 -0.443108 1.80279e-17)
(19.9195 0.157009 1.77362e-16)
(19.7769 -0.962825 5.06268e-18)
(19.8207 -1.20308 -2.55622e-18)
(18.6676 -1.11813 5.99543e-18)
(18.8152 -1.07769 0)
(18.2586 1.53166 7.94726e-21)
(20.2024 -0.126209 -5.46673e-17)
(21.1435 -0.960302 2.51211e-18)
(19.1363 -0.979311 -2.47094e-18)
(19.2839 0.486415 -1.62931e-17)
(20.0182 -0.331942 -9.87687e-17)
(20.2127 -0.467681 2.69193e-17)
(19.9417 -0.383504 1.60589e-16)
(18.3079 -1.00833 0)
(19.8663 -0.419916 2.51136e-17)
(20.0908 -0.272158 1.48715e-17)
(18.4432 2.32862 4.59868e-21)
(18.7141 -0.833125 1.25088e-18)
(18.1208 1.27317 3.2657e-18)
(20.0381 0.0622374 0)
(23.0572 0.852431 0)
(19.6599 -0.689009 5.10013e-20)
(17.8214 -0.0179883 -6.61668e-18)
(19.1944 -1.06437 3.60298e-18)
(20.321 0.119087 3.0548e-19)
(19.9768 0.212759 6.16581e-18)
(19.4141 -1.02738 0)
(19.97 -0.0935525 -1.2489e-16)
(19.5271 -0.421937 2.52831e-17)
(19.264 -0.355886 0)
(18.8958 2.05703 -7.32853e-19)
(19.793 -0.93237 -3.87017e-18)
(20.2188 -1.13846 -2.19556e-18)
(20.5688 -0.790961 -4.63283e-18)
(19.9818 0.089749 1.26954e-16)
(19.8863 0.0894882 2.62471e-16)
(19.9332 -0.397107 0)
(19.9574 0.463929 0)
(20.0324 -0.192441 0)
(20.5841 -0.456371 1.79887e-17)
(20.0675 -0.433944 1.94676e-16)
(21.4184 -0.364162 -7.25773e-18)
(17.2347 -0.0141062 6.23453e-18)
(18.8861 -0.958485 -1.13132e-17)
(20.2374 -0.328376 -1.14304e-17)
(21.7025 0.342249 6.21552e-18)
(19.5706 -0.917568 0)
(18.0365 -0.647083 3.97816e-18)
(19.029 2.0067 0)
(19.2723 -0.805293 0)
(20.3565 -0.572879 7.27145e-18)
(19.855 -1.14571 1.50387e-20)
(20.3949 -0.835676 -1.76266e-20)
(20.0702 -1.14885 3.49045e-18)
(20.7625 1.87335 2.01033e-18)
(20.1805 -0.318743 -1.97749e-16)
(21.9428 -0.114526 -1.35105e-18)
(20.035 -0.93609 3.5998e-18)
(19.2333 -0.935407 7.28838e-19)
(20.2255 2.33908 0)
(19.7304 -0.775414 -6.59072e-18)
(20.0932 0.0979519 0)
(17.9737 -0.634148 -1.29929e-17)
(20.0078 0.0576978 1.15679e-16)
(21.5022 -0.0458895 -4.01433e-18)
(20.039 0.108191 -7.04398e-17)
(18.6486 0.0631127 -9.62792e-19)
(22.464 -0.363229 -3.53826e-19)
(15.1528 -0.795259 3.89288e-18)
(22.0595 -0.274995 -1.3285e-16)
(20.464 0.41641 -1.40518e-17)
(20.0846 -1.13115 -6.7411e-19)
(20.9665 -0.0693961 1.58578e-16)
(19.3979 0.196305 4.04247e-17)
(21.2345 -0.821436 -1.00015e-18)
(20.8498 0.183643 6.57345e-17)
(21.3699 -1.05609 0)
(19.2263 -0.0613683 2.81923e-17)
(21.2664 1.27935 -4.74056e-18)
(22.0127 -0.255528 1.17104e-18)
(20.6027 1.13238 -1.00545e-17)
(20.8282 -1.0806 1.27838e-18)
(21.8315 -0.77838 -4.0094e-19)
(19.9894 -0.0395409 -9.1092e-17)
(22.6252 0.505953 -4.29261e-20)
(20.5169 -0.919159 -3.84178e-18)
(20.9147 -1.03872 0)
(19.8336 -0.633495 -1.17166e-17)
(20.2546 0.31424 3.31201e-17)
(19.4975 1.33305 -1.75948e-17)
(20.3279 2.4606 4.63464e-19)
(20.8852 -1.0064 0)
(19.0913 -1.00326 -1.57541e-19)
(19.704 0.022694 -7.82052e-17)
(17.8096 -0.443057 -2.34984e-18)
(19.1051 0.674361 -1.14361e-17)
(20.4493 -0.584765 3.0579e-17)
(18.6084 0.510684 2.01328e-18)
(20.0529 0.00110848 2.63035e-16)
(19.991 0.123207 7.23141e-17)
(19.2833 -1.207 2.24767e-18)
(17.8033 -0.959955 -5.53738e-17)
(20.2791 -0.228882 -3.27539e-17)
(20.293 -1.05728 3.75117e-18)
(19.6268 -1.1823 3.57941e-18)
(22.4858 -0.160003 4.56163e-19)
(18.3584 1.98718 1.02362e-18)
(19.8615 -0.533293 -9.48702e-18)
(20.3861 -0.802249 1.77105e-18)
(20.0301 0.0504163 1.15764e-16)
(20.033 0.0130299 -2.42862e-17)
(19.4828 -1.01064 2.17262e-18)
(20.1939 -0.310429 0)
(20.012 -0.255288 6.89355e-17)
(18.6629 -0.953419 4.66884e-18)
(18.4628 -0.961029 -5.3175e-19)
(20.0026 0.0238536 2.51145e-16)
(20.0475 -0.0222234 2.23039e-18)
(21.8965 -0.151336 2.69804e-16)
(18.6885 -0.909026 -1.3215e-17)
(19.5821 -0.869411 -1.9261e-17)
(19.3619 -1.14383 3.05491e-18)
(18.3033 0.0892094 -1.36136e-17)
(19.6104 -1.0009 2.69963e-18)
(18.6091 -0.788136 -4.93583e-18)
(19.9165 0.102514 -1.87055e-16)
(18.9723 -0.882928 -2.30557e-18)
(19.7758 -0.864672 6.39333e-18)
(20.0016 0.0635677 1.20764e-16)
(20.1534 -0.0148422 -1.06432e-16)
(19.1199 1.83235 -6.90921e-18)
(19.4621 -1.03962 0)
(19.8872 -0.161611 -2.09822e-16)
(19.1446 0.213227 -1.56475e-17)
(20.9122 -1.12058 2.71295e-18)
(19.6235 -1.13451 6.72821e-18)
(18.7441 0.48902 1.64641e-20)
(20.9562 2.01792 5.04862e-18)
(20.0239 0.0668908 1.69703e-16)
(19.7354 -1.08922 -1.71643e-18)
(19.4322 -0.81288 -9.56342e-18)
(17.5537 0.367506 9.91381e-18)
(19.0464 1.69694 3.14237e-18)
(20.1555 -0.0419985 4.572e-17)
(20.3358 -0.763604 4.63751e-18)
(19.9997 0.0673408 2.16928e-16)
(20.0955 0.0519023 1.70061e-17)
(20.09 -0.171441 0)
(15.1063 0.0221652 7.63487e-16)
(20.7482 0.271606 -1.10454e-16)
(22.0513 1.16442 0)
(19.8294 -0.363699 -2.53166e-17)
(20.0702 0.144306 0)
(22.0338 1.35152 1.43398e-19)
(20.0551 0.590471 0)
(18.874 -1.07903 -2.03039e-18)
(19.9588 -1.01212 -2.56125e-18)
(19.0854 -1.17128 1.78452e-18)
(17.6518 -0.649417 -2.49107e-18)
(19.5832 1.45664 -8.05319e-18)
(21.0791 -0.436083 5.25631e-18)
(15.7586 0.643656 -1.68357e-16)
(17.5391 -0.902355 0)
(20.2283 -0.00713832 2.49093e-18)
(17.3461 -0.396917 6.52481e-18)
(21.5968 -0.487962 0)
(20.5634 -0.978875 2.11597e-18)
(19.9831 -0.173 4.75047e-17)
(22.2021 -0.950304 -2.77593e-17)
(20.0952 -0.948005 0)
(21.2367 0.968652 6.54198e-18)
(20.0928 0.0828152 -1.27363e-16)
(21.062 -0.118502 4.21479e-18)
(20.9458 0.364929 4.52161e-18)
(17.5474 0.622537 1.77462e-16)
(20.1274 -0.0593619 5.60069e-17)
(18.3911 -0.943219 -9.55588e-18)
(20.9529 -1.05471 -6.19423e-18)
(17.8385 0.969181 6.6421e-18)
(19.5415 -0.949036 1.22131e-18)
(20.1567 -0.432452 -4.41935e-17)
(20.2388 -1.02813 2.95237e-20)
(21.915 1.79892 -7.20892e-19)
(20.1187 0.0673855 -1.76101e-16)
(19.919 -0.897879 -2.72081e-18)
(20.107 0.0350773 3.53666e-17)
(20.0072 0.0618147 3.56998e-17)
(20.0381 0.132346 0)
(18.3392 1.15072 -7.15395e-19)
(20.0016 0.106344 6.37006e-17)
(17.3809 0.498998 0)
(18.2189 -0.193085 2.85512e-18)
(20.7301 -0.100209 1.79632e-16)
(19.5701 0.081676 1.70619e-16)
(19.5783 -0.901273 1.14866e-18)
(20.3981 -1.18482 0)
(21.2214 -0.603824 6.41555e-18)
(20.6063 0.373089 -2.60511e-17)
(20.3509 -1.07872 -2.81858e-20)
(19.03 -1.20487 0)
(21.5096 -0.939733 6.4103e-19)
(18.7452 -0.963688 -2.02497e-17)
(19.9033 0.210492 0)
(19.7615 0.956177 -5.32109e-17)
(18.6569 1.49152 -1.4966e-18)
(20.1803 -0.226419 0)
(20.0844 0.34176 -2.73388e-19)
(19.7518 0.309019 1.32222e-16)
(19.7583 -0.0163115 0)
(21.3322 -1.00164 0)
(19.2718 -0.93215 -7.17085e-18)
(19.3301 0.924736 -2.52061e-18)
(19.9514 -0.26931 -4.51727e-17)
(20.2603 -0.173129 -3.19942e-17)
(20.3461 -0.805814 -6.50345e-18)
(19.4984 -0.975721 -7.94836e-18)
(20.3298 -0.0398681 -2.95019e-17)
(19.9863 -0.500612 -6.15478e-17)
(17.45 -0.684101 4.21458e-16)
(20.9368 0.639955 1.34473e-17)
(20.2097 0.329327 0)
(17.9347 -0.350928 3.72094e-18)
(20.1216 0.0415789 6.95742e-17)
(21.1933 2.37317 1.40786e-18)
(19.7349 0.056309 -3.36802e-16)
(19.2073 -1.13266 0)
(19.864 -0.99772 -5.99612e-18)
(20.0997 0.526472 9.70723e-17)
(19.9793 0.274822 -1.72868e-16)
(19.9355 -0.255078 1.24117e-16)
(20.0356 0.0468246 -2.39722e-16)
(20.1156 -0.0730796 -1.16793e-16)
(19.3082 0.253995 2.46548e-17)
(21.421 0.0413446 1.36588e-17)
(21.3319 -0.826883 1.9438e-18)
(19.996 0.0784643 1.86863e-19)
(21.747 -0.940684 1.10825e-18)
(19.8077 -0.966861 9.50972e-18)
(20.6205 -0.480417 -2.95638e-17)
(18.8393 1.90634 1.4712e-18)
(18.7516 0.702795 -2.75361e-20)
(19.1056 -1.11308 0)
(20.073 -0.845903 -8.87106e-18)
(19.3815 -0.581588 0)
(20.6694 -1.06555 1.57489e-18)
(21.831 -0.907972 0)
(19.5285 -0.274408 0)
(20.0323 1.89303 0)
(20.0411 -1.195 -6.86156e-19)
(19.4167 -1.21889 -2.23535e-18)
(19.2461 1.10789 9.2037e-20)
(21.9242 0.966609 -1.2039e-18)
(21.3649 0.173884 6.71385e-18)
(20.9428 -0.934204 4.61207e-18)
(19.9731 -0.298071 1.72059e-16)
(19.7392 2.76216 -3.84285e-19)
(20.1185 -0.147299 3.20282e-19)
(22.9098 -0.207732 -2.3763e-16)
(20.1389 -0.294825 -1.6694e-17)
(21.6539 -0.0965912 -1.25623e-17)
(20.4224 -0.557841 3.30618e-20)
(20.4429 0.101533 0)
(21.0379 -1.11777 -3.29103e-18)
(21.8965 -0.913294 -8.88082e-19)
(18.4693 -1.01317 2.75908e-18)
(19.4441 -1.21952 1.12911e-18)
(19.9998 0.0454925 -2.67543e-16)
(22.4947 -0.253162 1.61419e-16)
(20.078 0.0603832 -1.04486e-16)
(20.0146 0.0222601 7.80856e-17)
(20.8487 -0.982503 3.06005e-18)
(19.7636 -0.16581 0)
(19.9343 -0.973729 9.52761e-18)
(20.02 0.0362398 0)
(19.2945 -1.24354 -6.57197e-19)
(19.854 -0.94805 -1.34101e-17)
(19.5393 -1.25835 2.32651e-18)
(19.7361 -1.04716 4.00911e-18)
(19.6911 -1.20716 -1.09187e-18)
(19.3806 1.04168 -5.1004e-18)
(18.3658 -0.703885 -1.89167e-20)
(21.5928 2.05642 9.93317e-19)
(18.544 -1.0832 0)
(20.0574 -0.0950915 -3.98564e-17)
(19.7608 -0.495783 -5.23417e-17)
(19.8395 -1.05784 -4.36201e-18)
(19.9871 0.162019 9.41175e-17)
(18.7706 -0.912559 0)
(19.6766 1.76315 2.93746e-18)
(19.0399 -0.951373 9.33886e-18)
(20.1149 0.140999 -1.63305e-16)
(19.241 -0.9259 0)
(19.0799 -1.09476 6.8751e-18)
(20.576 -0.0471061 1.66681e-16)
(19.9019 0.00245331 9.93868e-18)
(16.9954 0.801369 -1.33923e-18)
(19.0855 -0.750701 0)
(19.7833 0.0456187 -1.08514e-17)
(21.0794 0.602967 5.52731e-18)
(18.68 -0.745028 -4.71232e-18)
(19.1735 -0.0940146 -6.1908e-17)
(20.1939 0.498801 -2.02856e-19)
(19.9608 -0.998779 -3.06262e-21)
(20.714 1.67318 -6.87359e-18)
(18.5633 -0.715389 6.1198e-18)
(20.0719 -0.880602 0)
(19.9183 -1.03428 -1.17983e-18)
(19.7946 -0.669119 -9.57932e-18)
(20.0814 -0.00704631 0)
(20.3321 0.525329 0)
(20.8036 0.629427 -3.07097e-17)
(20.1086 -0.937746 0)
(19.1269 -1.12613 2.4432e-18)
(20.4825 0.278583 -1.35211e-16)
(20.0197 0.0269868 0)
(18.5472 0.784251 4.79625e-18)
(20.0226 -0.000700487 1.18502e-16)
(19.3108 -0.691636 -1.28047e-17)
(19.5283 0.650049 -1.94034e-17)
(20.2569 -0.457206 -4.06857e-19)
(20.0388 -0.111979 1.0212e-16)
(19.8349 -0.0303253 0)
(19.4634 -0.779943 -1.55411e-17)
(20.4621 -1.04637 0)
(20.1139 -0.720371 -7.81064e-18)
(19.837 0.0109604 1.11173e-16)
(20.3062 -0.869548 0)
(19.9628 -0.914625 2.97834e-18)
(19.9797 -0.49486 -1.43913e-17)
(19.9864 -0.13141 0)
(23.3253 1.16411 -3.77949e-20)
(20.0066 0.0346378 -1.17597e-16)
(18.0284 1.13261 -8.92416e-18)
(19.7713 0.0207957 -3.82629e-16)
(21.3021 1.82335 0)
(19.941 0.240479 1.16633e-16)
(19.363 -1.11244 0)
(21.6537 -0.170063 -1.7389e-17)
(19.4257 -0.893194 -1.15039e-17)
(18.9532 -0.956111 1.85646e-18)
(19.9485 -0.717937 2.59609e-18)
(19.7946 0.218649 3.57891e-17)
(19.1589 -0.580931 2.15839e-17)
(20.3804 -0.0269911 3.67349e-17)
(19.935 -1.15703 0)
(19.5146 -0.75563 -1.95913e-17)
(20.47 -0.875602 4.86024e-18)
(19.7322 0.051319 -4.67443e-17)
(19.9416 0.278826 0)
(21.6386 1.52705 1.22874e-18)
(19.8563 0.731119 2.3191e-17)
(20.1085 -0.100131 -1.10964e-17)
(18.0396 -0.268511 0)
(20.0968 -0.0259558 1.66965e-16)
(20.9315 -1.09657 -3.32771e-18)
(20.1583 -0.800931 0)
(21.3831 -1.01631 5.90215e-19)
(21.2833 -0.606881 0)
(19.8367 -0.0570406 0)
(14.0258 -0.66579 -2.09688e-18)
(20.5696 -1.11106 -5.81183e-18)
(20.9511 -0.490914 0)
(19.7628 -0.934416 2.04446e-18)
(19.7303 -0.207923 0)
(20.3603 0.148338 3.46418e-17)
(22.0407 -0.146427 -1.51419e-18)
(20.0094 -0.951144 -3.31025e-18)
(18.8373 -1.05064 8.14353e-21)
(19.9622 -0.0242776 2.19651e-16)
(19.2276 0.235988 7.11238e-17)
(19.1951 -1.16382 1.99862e-18)
(18.421 0.279106 -5.90156e-18)
(18.9403 -0.897006 0)
(16.2764 0.0303379 -1.63513e-16)
(22.1502 0.576531 0)
(18.3576 -0.798326 -1.12553e-17)
(15.1921 -0.263853 -2.05579e-16)
(19.7318 0.238951 -9.10117e-17)
(21.1764 -1.09505 3.92099e-19)
(19.7002 0.283862 -9.22778e-20)
(19.9379 0.0579184 0)
(18.7162 2.01063 -1.82012e-18)
(19.9888 0.0778276 -2.05092e-16)
(20.6233 0.299569 0)
(19.1971 -1.19389 -5.64253e-18)
(21.5586 -0.200338 -1.48236e-18)
(20.0999 -0.216944 8.6865e-17)
(19.5859 -0.514184 -3.51284e-18)
(21.0307 0.941009 3.05495e-18)
(18.8684 1.06181 0)
(20.3634 -0.775022 0)
(20.2161 -0.425298 2.06686e-16)
(19.6273 -0.397159 -3.20704e-17)
(17.0146 1.0386 2.74491e-18)
(19.9566 -0.326506 1.44854e-16)
(19.9189 -0.307097 1.01531e-16)
(19.688 -0.326587 3.19245e-16)
(19.1001 -0.794876 6.76239e-18)
(19.9185 -0.272275 0)
(18.3803 -1.02547 3.58888e-19)
(18.1467 2.34727 -5.84747e-19)
(19.7432 -0.313412 -3.47197e-17)
(20.6237 -0.545249 1.14314e-17)
(18.8251 -0.974615 0)
(19.1038 -0.478489 2.19443e-17)
(20.2513 -0.15455 1.89956e-16)
(19.5218 -1.03656 -8.39546e-18)
(20.6489 -0.980513 0)
(20.5271 -0.674327 -1.73014e-18)
(20.0076 0.164767 -9.02156e-18)
(18.5656 1.3579 0)
(19.9983 -0.118007 0)
(18.9385 1.15364 -3.91357e-18)
(16.9509 0.119325 9.83444e-17)
(19.9672 -0.116382 1.25661e-16)
(19.8718 -0.59384 0)
(19.9986 0.0546473 8.94157e-17)
(20.0071 -0.752648 -3.18854e-20)
(21.5803 -0.408779 2.82621e-18)
(20.0116 0.103678 0)
(20.0614 -0.00389093 0)
(20.0577 -0.168823 2.76926e-16)
(21.7223 -0.701951 0)
(19.7432 -0.504048 -1.76279e-17)
(19.2197 -0.987036 -2.79031e-18)
(20.0052 -1.03129 -1.00737e-18)
(20.2466 -0.234174 5.04918e-17)
(18.9618 2.4063 -2.37704e-19)
(19.4741 -1.10206 -7.92593e-19)
(20.0284 -0.791868 -4.57345e-20)
(21.248 -0.245588 0)
(19.8512 -0.869498 -5.85965e-18)
(20.1993 0.118927 8.83496e-20)
(19.6826 -0.96371 0)
(18.3249 -0.366971 3.1685e-18)
(19.8908 -0.917717 -2.13883e-18)
(19.0779 -0.0679828 1.81424e-17)
(18.5013 1.89099 0)
(18.9033 0.144479 -1.08469e-17)
(17.8403 0.606348 0)
(19.6952 -0.706818 0)
(19.9748 -0.895804 -1.49843e-18)
(19.5584 -1.20488 1.77948e-20)
(20.012 0.0583462 -6.62548e-17)
(20.1645 -0.273932 0)
(21.2007 -0.407983 7.20329e-17)
(18.3922 -1.0293 -3.34027e-20)
(20.2544 -0.83536 -1.98789e-17)
(20.2721 -0.0617198 -1.49819e-19)
(20.223 -0.583966 0)
(20.0212 -0.421708 0)
(18.7928 -0.763157 4.49687e-17)
(20.0753 -0.972911 0)
(19.2844 -1.06229 1.02093e-17)
(20.0782 0.100625 8.92565e-18)
(22.2596 -0.0753325 1.67567e-16)
(19.8772 -0.0216277 2.61839e-16)
(20.149 -0.39819 7.58775e-17)
(19.877 -0.041981 9.35912e-17)
(20.0051 -0.148574 -5.08059e-21)
(20.474 -0.786348 2.87275e-18)
(20.0553 -0.138365 0)
(19.4151 0.138852 0)
(19.3052 -0.901153 0)
(17.4935 -0.971017 6.31685e-19)
(20.9112 -0.0389339 -4.13265e-21)
(20.3794 2.24097 1.15271e-19)
(20.1473 0.0297382 0)
(20.0288 0.0913164 6.65611e-17)
(21.3308 0.635252 -4.61762e-18)
(23.088 -0.139516 1.16702e-16)
(19.4507 2.66138 1.90798e-19)
(16.3016 -0.923702 1.13955e-18)
(19.6839 -0.118864 -1.80996e-16)
(21.0589 -1.03483 -1.48332e-18)
(20.0654 0.0662626 -2.43448e-16)
(16.5083 -0.825908 4.88566e-17)
(18.145 1.05399 -2.8815e-18)
(19.682 -0.899335 6.00509e-18)
(21.0711 0.0498075 -1.71073e-16)
(17.3456 0.968986 1.47118e-17)
(20.3122 0.863252 8.19592e-20)
(18.7372 -1.12506 1.46075e-18)
(19.1854 -0.712947 6.30435e-18)
(19.7233 -0.0306314 5.95091e-16)
(19.7239 -0.963027 1.0667e-17)
(20.0112 -0.436527 1.61379e-18)
(19.9896 0.141463 -2.05678e-16)
(20.1695 -0.203211 0)
(18.6877 0.291 -1.06295e-17)
(19.9338 0.316103 3.68184e-17)
(19.7925 -0.333851 -9.27825e-17)
(20.0359 -0.810025 1.28811e-17)
(19.8945 -0.552809 0)
(19.5932 0.159928 2.84415e-17)
(18.8027 2.10247 -4.67232e-19)
(18.8544 -1.00462 3.32221e-18)
(18.8837 -1.0722 2.2164e-18)
(19.8008 -0.132885 -6.13211e-17)
(20.4162 -0.90955 -3.2101e-18)
(18.986 0.174827 4.03399e-17)
(20.3247 -0.124669 -3.28752e-17)
(18.4626 1.19868 -2.5174e-18)
(20.2645 -0.0891309 2.7304e-17)
(21.0806 -0.963165 2.34743e-18)
(19.9973 0.0650893 -1.02294e-16)
(20.2074 -0.211264 -3.77053e-17)
(17.4201 1.85123 -4.50114e-18)
(20.3407 -0.0931074 1.10203e-17)
(19.4227 -0.965802 0)
(19.5373 2.2387 -1.63814e-20)
(20.0707 -0.394749 0)
(20.7472 -0.751483 -2.00297e-18)
(20.5191 -0.2552 9.15362e-17)
(20.5986 -0.209446 -1.46736e-17)
(19.7637 -0.304089 8.70157e-17)
(20.8949 -0.301411 8.28086e-18)
(20.0676 -0.205411 -9.28819e-17)
(20.4827 0.499477 -2.86683e-17)
(19.9739 -0.330226 1.01454e-16)
(18.1624 0.810819 -7.03864e-18)
(21.9786 -0.490742 -1.56521e-18)
(19.9897 -0.379001 0)
(20.5158 -0.831898 8.54201e-18)
(20.2381 -0.863234 5.58799e-18)
(19.8024 -1.17766 0)
(19.8436 -0.296029 1.88017e-16)
(19.9882 0.0906216 -2.37447e-16)
(21.0805 -0.711778 8.78758e-19)
(21.6085 1.1825 -3.16776e-18)
(18.3148 0.406711 1.33593e-17)
(19.1555 -1.10172 0)
(18.0601 -0.807664 2.56738e-18)
(19.9989 0.00623019 -2.39602e-16)
(21.0364 -0.832115 9.43979e-19)
(15.56 -0.897633 9.01875e-19)
(18.4874 -0.966293 1.91759e-18)
(20.0015 0.0169695 4.77426e-16)
(20.2552 -0.540689 7.36758e-17)
(21.1456 -1.07585 0)
(20.8206 1.17414 0)
(20.3631 -0.508137 -2.07682e-17)
(19.4574 -0.499954 0)
(18.8224 -0.907253 5.06878e-18)
(21.2305 -0.444993 3.75829e-19)
(18.1984 0.775647 1.21153e-16)
(20.5442 0.27902 0)
(19.7255 -0.100158 2.2555e-19)
(19.9055 -1.03023 0)
(17.143 0.153051 -4.51849e-18)
(19.7255 -0.134328 0)
(20.9562 0.120032 -1.81621e-18)
(19.0757 -1.14544 3.69372e-18)
(20.1877 -0.395001 3.41379e-19)
(18.7382 -0.273768 1.91721e-18)
(20.5791 0.0623801 6.20422e-18)
(20.268 -0.969597 -3.45233e-18)
(19.8981 -0.392313 -3.81941e-17)
(19.9801 -0.289249 -2.40716e-16)
(16.4397 -0.930175 5.24462e-18)
(20.6576 -0.507541 2.12037e-17)
(18.5399 0.185382 7.89408e-18)
(22.7936 1.39755 0)
(22.9452 -0.921709 -2.86204e-16)
(19.2067 0.534173 1.82829e-17)
(19.6494 0.0191547 -3.2533e-16)
(19.9999 0.00380706 0)
(20.2849 -0.913061 1.66736e-18)
(21.8825 0.0922687 3.18783e-18)
(20.0288 -0.0562747 2.17088e-16)
(19.6807 -0.778095 0)
(21.6693 0.697219 -1.373e-18)
(21.0254 -0.616569 9.1963e-18)
(20.698 -0.275607 2.7764e-17)
(20.1694 -0.958061 0)
(18.7441 1.77651 2.47859e-18)
(23.0757 -0.143693 -2.52513e-19)
(20.5629 1.31712 2.71181e-18)
(21.3904 2.43298 0)
(19.9182 -0.357736 1.50412e-17)
(23.3892 -0.414857 -3.02875e-16)
(18.9328 -0.681295 -2.07293e-18)
(19.9515 -0.359992 -2.09257e-17)
(20.1417 -0.331777 -4.0334e-17)
(19.97 0.115836 1.74252e-16)
(19.7191 -0.476012 1.99505e-17)
(19.6963 1.58684 4.40217e-18)
(18.8225 -0.726381 0)
(20.1772 -0.366083 -4.38536e-17)
(19.7968 -1.24563 0)
(20.4068 -0.137421 -4.63198e-17)
(19.2797 -0.435067 -1.50399e-17)
(20.2978 -0.35396 2.3794e-17)
(18.0581 0.69533 0)
(20.853 -1.08842 5.57803e-18)
(20.4791 -0.553414 -2.99255e-17)
(20.089 0.253025 0)
(23.0851 0.437622 1.53896e-19)
(19.9068 -0.0240621 2.15039e-16)
(19.4602 -0.22366 2.13692e-17)
(19.7511 1.393 7.0352e-18)
(21.0647 2.3799 -1.86892e-18)
(20.279 -0.0356892 0)
(18.8857 -0.607292 2.06549e-17)
(19.6019 -1.14211 -1.73882e-18)
(21.1838 -0.825454 5.71279e-18)
(21.6745 -0.463822 0)
(20.5975 -0.877525 -7.14258e-18)
(18.2355 0.957725 -1.43297e-18)
(19.1186 -0.127227 3.4006e-17)
(21.1877 2.02129 -3.38733e-18)
(21.8829 0.607276 0)
(19.7933 -0.101781 4.75432e-17)
(20.2325 0.595017 2.70452e-17)
(20.0868 0.215825 0)
(19.8983 -1.09182 -6.71329e-18)
(20.9376 -0.373604 -2.26701e-17)
(19.2886 -0.95314 2.57562e-19)
(18.7044 -0.964371 3.73956e-18)
(20.8547 -0.894447 -8.53848e-18)
(20.2671 -0.946137 3.33601e-18)
(19.8226 -1.17124 2.2392e-18)
(19.9085 0.0276606 -1.6224e-16)
(20.3221 0.284186 3.77576e-19)
(19.9143 -0.505435 9.3342e-17)
(20.1147 -0.174478 1.78609e-16)
(19.8605 -0.51905 -3.67456e-17)
(20.1958 -1.18094 1.10143e-18)
(20.313 -0.224694 4.2315e-17)
(20.0018 0.0447005 1.02788e-16)
(17.2487 0.222124 -4.51454e-17)
(20.5357 -1.04531 3.51974e-20)
(18.9921 -0.582269 6.10787e-18)
(20.1256 0.0179659 -2.22689e-16)
(19.9931 -0.223093 3.28858e-17)
(20.0977 -0.961833 -4.69656e-18)
(19.5303 -0.947534 2.66846e-17)
(19.1701 0.150514 2.77491e-17)
(19.6705 0.00298437 0)
(20.7942 0.0743882 -1.95492e-17)
(18.5564 -1.03743 2.24261e-18)
(20.2978 0.19828 7.20794e-17)
(20.6943 -0.331048 -2.36171e-17)
(20.2513 0.230855 -1.07266e-16)
(20.083 0.130922 1.39735e-16)
(20.0536 -0.070182 1.28946e-16)
(18.4613 -0.0651787 -6.67479e-18)
(20.0534 -0.132096 0)
(19.9562 0.0688037 0)
(21.9605 2.34769 7.41576e-19)
(21.1182 -1.00991 -2.83066e-18)
(19.2507 -1.03269 -2.08048e-18)
(19.8161 -0.15457 3.08388e-17)
(18.2719 0.774352 1.65723e-17)
(19.35 -0.268661 6.32045e-18)
(18.9359 -0.849412 0)
(19.95 -1.00681 -8.09659e-18)
(20.3107 -0.609327 -1.0332e-20)
(19.6443 -0.132404 6.02059e-17)
(21.1332 -1.05117 -3.31346e-18)
(19.8277 -1.1816 2.59346e-18)
(20.2466 0.976002 -1.0687e-17)
(19.308 -0.959108 -3.99487e-18)
(18.1337 -0.418391 5.73885e-18)
(19.9416 -1.20769 1.5967e-18)
(18.6197 -0.5766 0)
(17.8767 1.75082 -4.54183e-18)
(19.9524 -0.236294 -9.49499e-17)
(20.4702 -0.507463 2.92457e-16)
(21.4598 2.30503 3.28525e-19)
(18.7499 -1.14558 -2.12347e-18)
(20.7769 -0.588385 0)
(20.8656 0.134156 1.80863e-16)
(20.1367 0.161345 2.53453e-16)
(20.4208 -0.802223 3.29381e-18)
(20.6828 -1.15635 1.98291e-18)
(21.6858 2.71768 -3.3758e-19)
(19.7026 -0.864515 -2.52322e-17)
(20.0205 -0.3334 4.6054e-17)
(20.4785 -0.820354 -8.66522e-21)
(18.8955 -1.00408 1.29409e-17)
(20.083 -1.0393 0)
(21.1198 2.50685 0)
(19.034 0.41013 0)
(20.7527 -0.272898 -4.16567e-17)
(20.7791 -0.849317 0)
(20.0073 -0.302119 -6.75033e-17)
(20.1005 -0.331273 0)
(19.2035 -0.464144 -1.60005e-17)
(20.1479 -0.603571 -4.06143e-17)
(18.9601 -1.07881 -4.29093e-18)
(20.9666 2.17009 8.69853e-19)
(15.3899 -0.327901 -2.35214e-16)
(20.8711 -1.13932 2.62822e-18)
(18.9602 -1.1559 5.89582e-19)
(20.1304 -0.925498 0)
(15.6441 -0.884899 -4.18164e-18)
(20.8985 -0.577486 4.48629e-19)
(21.1744 0.279216 0)
(20.034 0.0349583 1.14673e-16)
(19.7705 0.0941041 2.90059e-17)
(19.0482 -0.435656 0)
(21.4039 -0.102861 -1.21506e-17)
(20.4262 -1.13753 6.05669e-18)
(18.959 0.63934 5.52338e-18)
(19.6565 -0.931299 -1.07329e-17)
(20.1333 -1.00778 0)
(19.6469 -0.298141 -9.83955e-17)
(20.0333 -1.00474 -1.19821e-18)
(19.0588 -1.17219 4.51822e-18)
(20.0196 0.0624432 -1.72803e-16)
(19.8131 -0.491245 6.72747e-17)
(22.0134 -0.828303 -2.20254e-19)
(20.1537 -0.944556 5.12603e-18)
(18.6787 0.427978 6.17193e-18)
(19.8308 0.121552 5.70861e-17)
(20.0005 0.0610225 -7.80167e-20)
(17.4509 -0.481726 -6.43307e-18)
(20.4898 -0.680434 1.27971e-17)
(21.8402 0.187151 -2.63069e-17)
(19.3036 -0.249507 -1.24459e-17)
(20.023 -0.585203 0)
(20.2961 -0.104189 1.54776e-17)
(18.316 -0.834461 3.8847e-18)
(22.0651 -0.517444 -1.24753e-18)
(20.4111 -0.973967 4.93615e-19)
(18.5687 0.283187 -2.06625e-18)
(20.4552 -0.913425 -5.33791e-18)
(19.4971 -1.21907 0)
(19.6985 -1.17052 1.36036e-18)
(21.8945 1.58565 0)
(18.8165 2.00827 4.37641e-19)
(18.9865 -0.282245 1.15651e-17)
(18.603 -0.406476 -1.13558e-17)
(20.5545 -1.13614 1.99001e-18)
(20.0877 -0.206364 -1.31672e-16)
(16.8518 0.408622 -1.55132e-18)
(19.305 -0.741099 -1.05392e-21)
(17.8991 -0.708323 2.49593e-18)
(20.7481 -0.164636 -1.29982e-16)
(20.04 -0.313778 -2.81569e-16)
(20.6128 -0.0431612 -6.36778e-18)
(19.7388 -0.551194 -1.26728e-17)
(20.037 -0.900388 0)
(19.8047 -0.306817 -2.32271e-16)
(19.6601 0.175037 2.63144e-17)
(20.845 -0.717021 -4.73028e-18)
(20.0058 0.14309 1.6476e-16)
(18.5097 -0.935657 -7.25643e-20)
(20.5974 -0.932074 -1.36687e-18)
(20.0509 -0.332895 -1.0222e-16)
(19.1936 0.374284 -1.78494e-17)
(19.0099 -0.437931 3.3868e-18)
(18.0808 0.253847 1.18315e-17)
(20.5249 0.230323 0)
(19.5531 -0.47097 1.18938e-20)
(20.0612 -0.955218 0)
(19.8242 -0.074164 -5.71293e-17)
(20.1507 0.0830057 1.44037e-16)
(18.3142 0.281886 9.1212e-20)
(19.4258 -1.08839 0)
(18.9197 0.219975 0)
(20.0077 0.0452227 -1.76759e-16)
(20.7494 -0.897902 0)
(19.971 0.0710265 2.16882e-17)
(19.7608 -0.10509 4.74379e-17)
(20.192 -0.251375 2.62304e-17)
(20.5511 -0.939768 0)
(21.699 1.04048 9.47374e-20)
(18.8187 0.53867 6.61789e-20)
(20.022 0.0559911 0)
(20.0295 -0.96858 0)
(20.0014 0.0136737 -3.5863e-16)
(20.9257 -1.01546 -1.25512e-18)
(18.4848 -1.05854 1.24475e-18)
(20.2227 0.809612 -3.52722e-17)
(17.4488 2.15695 2.62505e-18)
(19.3388 -0.320727 -2.2689e-17)
(19.3982 -0.775817 9.2899e-18)
(19.8653 -0.767562 -5.26994e-20)
(19.8096 -0.881108 4.34069e-18)
(21.2504 -0.0535096 -2.10892e-17)
(21.5614 -0.921329 3.51022e-19)
(20.3711 -0.92342 9.38131e-18)
(22.2222 1.96602 5.77782e-19)
(20.3036 2.85082 -1.05467e-20)
(20.1277 -0.0353062 -1.08253e-16)
(18.9182 0.398058 0)
(17.3329 0.0788167 -7.07251e-18)
(20.0218 0.0856624 5.66086e-17)
(18.7529 0.92088 4.17334e-18)
(21.5886 0.171835 0)
(18.3237 -0.16131 5.84528e-18)
(18.7113 -0.974269 -2.55991e-18)
(21.3693 1.38661 -3.48905e-18)
(18.2141 1.1849 5.85017e-18)
(20.0175 -0.390198 3.05607e-16)
(20.7892 -0.636425 -3.63344e-18)
(18.8272 -0.402902 2.10367e-17)
(19.9939 0.0914857 1.20388e-16)
(21.1229 -0.609728 -1.58184e-18)
(19.7513 -0.831937 -3.42358e-18)
(19.8729 -0.206155 0)
(20.1404 -0.490924 -2.6505e-16)
(21.6574 1.39156 6.64849e-19)
(20.0219 0.140623 -7.59877e-17)
(20.0653 -0.0841218 -1.05556e-16)
(18.2761 -0.0611624 -1.03405e-18)
(18.6675 -0.862247 -5.31691e-18)
(21.4017 0.273153 4.68227e-18)
(20.0008 0.0433036 8.42065e-19)
(19.8008 -0.905528 0)
(18.5186 -0.416198 4.64913e-18)
(20.0587 -1.16864 0)
(20.4772 -0.310798 -1.63118e-17)
(19.96 -0.236331 -4.19494e-18)
(19.7382 -0.167974 5.88728e-16)
(19.2412 -1.14364 -1.09435e-18)
(20.1656 0.0150498 0)
(19.5677 -0.683995 1.52756e-17)
(22.0878 1.52518 1.95627e-18)
(20.0872 -0.323062 -2.69851e-19)
(18.1804 0.490751 1.21733e-17)
(20.0004 0.0138553 1.96827e-16)
(20.2131 -0.834671 1.21969e-17)
(20.7458 -1.02797 2.64637e-18)
(18.2119 -0.88168 4.45209e-18)
(21.7236 0.0657759 0)
(20.0207 0.0464535 0)
(19.8961 -0.959174 4.42739e-18)
(19.7778 -1.14066 3.2712e-19)
(14.1956 -0.760253 9.77688e-22)
(20.3174 -1.17992 4.78116e-20)
(20.0913 0.032484 -1.33882e-16)
(20.7657 0.0715763 5.42001e-18)
(20.1048 -0.029044 -4.15508e-16)
(21.5072 2.53443 -2.89374e-19)
(18.8985 0.584746 3.73263e-18)
(20.3604 -1.02939 0)
(19.218 0.425486 4.55595e-17)
(22.3049 0.0134922 -7.05113e-17)
(20.571 -0.663264 -2.6385e-18)
(20.745 -1.13629 -3.40136e-18)
(20.3397 0.0224368 -3.0548e-17)
(17.1784 0.874555 -9.90486e-18)
(20.2121 0.0208733 1.71717e-16)
(19.9649 -0.314501 5.70292e-17)
(20.1878 0.0195579 4.18937e-20)
(18.5932 -1.03888 1.63261e-18)
(19.4534 -0.047623 0)
(20.2095 -0.0555714 4.94985e-17)
(20.4201 -0.709376 4.17277e-18)
(19.5699 -0.321163 3.47766e-17)
(18.9413 2.16316 2.20639e-18)
(18.924 -0.302316 6.39733e-18)
(18.9749 0.457054 1.47435e-17)
(20.5372 1.75596 -2.25224e-18)
(18.4332 -0.67827 -5.52922e-18)
(19.6166 0.0878893 -3.35319e-17)
(19.9867 -0.744475 -4.03469e-17)
(20.1078 -0.349157 -1.68344e-16)
(20.0986 -0.89427 2.32693e-18)
(18.7706 -1.05786 -7.52387e-18)
(20.3817 0.11009 2.22442e-18)
(19.7445 -0.452012 -1.60707e-17)
(17.9175 0.061977 2.9118e-18)
(17.4602 -0.350949 -5.20902e-18)
(19.8317 -0.513744 -8.97699e-17)
(21.9415 0.264608 2.2674e-18)
(20.3275 -0.723323 -1.01385e-17)
(20.4913 0.174697 3.32951e-17)
(19.0084 -1.17018 -4.74514e-19)
(19.0333 -0.676232 0)
(20.2523 0.048952 1.6016e-17)
(19.4157 -0.693095 -2.62912e-17)
(20.9678 -0.545296 0)
(20.5201 -0.720324 -2.09853e-18)
(20.7271 -1.14754 0)
(19.8976 -0.192078 5.86783e-17)
(20.1635 -0.841662 -3.38921e-18)
(20.3059 -0.313105 2.18892e-17)
(21.4558 1.79037 1.27085e-18)
(20.6977 -1.1614 0)
(20.4148 -0.176823 2.95577e-17)
(21.7483 0.145654 -5.1748e-18)
(19.9397 -0.21378 -1.25368e-16)
(20.4949 0.59232 3.09956e-17)
(20.7947 -1.14062 -9.28331e-19)
(20.2538 -0.810535 0)
(18.707 -1.11801 3.94103e-18)
(19.8342 -0.0407207 -4.57352e-16)
(18.7851 0.611782 7.98418e-18)
(21.0051 -0.688217 -1.16751e-17)
(20.4299 -1.02271 0)
(20.0316 -1.20125 -1.27523e-18)
(20.1077 -0.975847 4.26728e-18)
(21.3397 -0.917048 7.31792e-18)
(18.9961 -1.15683 4.14392e-18)
(19.8832 -0.101449 -9.93026e-17)
(18.9077 0.0601237 -3.93791e-18)
(18.817 1.76235 2.78949e-18)
(19.7584 0.0245911 3.8325e-17)
(19.0336 -1.17358 1.16875e-18)
(18.9146 -1.12804 -2.34884e-18)
(18.8235 -1.1646 -2.17466e-18)
(22.6795 -0.266385 -2.17448e-19)
(16.7142 0.2209 0)
(19.5911 -1.22658 1.1514e-18)
(20.0436 -0.00367327 -1.52752e-17)
(18.8185 0.169515 -2.00634e-19)
(20.4293 -0.667558 6.35298e-19)
(20.9386 -0.827915 0)
(20.1392 -1.01618 0)
(21.0328 -1.1116 3.4938e-20)
(19.6344 -1.21778 4.28272e-18)
(20.3925 -0.0848581 -4.11263e-17)
(19.556 -0.77233 4.98067e-18)
(18.6475 0.907669 -4.55619e-18)
(20.0031 0.0482069 -9.40106e-17)
(20.1382 -0.252761 3.67627e-16)
(20.1005 0.0184727 5.74611e-19)
(20.4061 -0.770979 -5.08339e-19)
(20.2766 -0.744473 0)
(20.9377 -0.766562 0)
(19.7743 -0.909016 -1.33106e-18)
(20.1427 -0.062979 -7.63819e-17)
(20.3891 -0.701315 -1.1928e-17)
(19.6904 -1.20072 4.24559e-18)
(17.998 -0.0345892 -1.42628e-18)
(20.3552 -1.14735 1.31234e-18)
(15.0184 -0.4415 -7.50747e-16)
(20.3867 -0.612091 0)
(19.0662 -1.16037 -1.40716e-20)
(21.9118 -0.163888 -4.38741e-16)
(20.2903 -0.858313 -4.47349e-18)
(19.4336 1.17227 -4.93125e-18)
(20.1915 0.077343 1.21756e-17)
(20.9152 1.4738 4.06682e-18)
(20.6415 -0.909328 -3.25025e-17)
(21.9037 -0.305734 1.36519e-18)
(20.0036 0.123491 -7.35178e-17)
(20.0289 -0.464209 -2.04347e-16)
(19.0456 -1.02541 1.74602e-20)
(22.1439 0.561882 -1.51258e-16)
(20.2588 0.518344 -2.50609e-17)
(18.1461 -0.956763 -2.94445e-18)
(17.2485 -0.299412 8.89607e-18)
(20.1292 0.0772259 8.62896e-17)
(20.6394 2.45609 1.36768e-18)
(20.0674 -0.15154 -1.48802e-16)
(20.0016 0.548376 -2.86419e-17)
(18.3994 -0.912388 5.07523e-18)
(19.5707 0.347191 0)
(19.8159 -0.0232944 2.13512e-16)
(21.9169 -0.443054 1.07551e-16)
(20.7516 -1.05061 -2.79606e-18)
(20.0077 0.0880096 1.17097e-16)
(20.059 -1.01046 1.06236e-18)
(19.0499 -0.508389 0)
(20.0046 0.0396131 -4.6051e-16)
(20.3068 -0.796689 -1.01812e-17)
(19.9413 -0.198237 8.42815e-17)
(19.9018 0.142418 -8.46683e-17)
(19.8137 0.0216301 2.50363e-17)
(19.9126 -1.19714 0)
(20.3055 0.156797 3.91367e-17)
(18.9236 -0.584663 -6.84307e-18)
(18.7078 -1.13212 -9.5377e-18)
(20.0985 -1.2038 0)
(21.2041 -0.937739 -1.34456e-18)
(19.6014 -0.277194 8.74571e-17)
(19.6098 -0.10519 -4.02709e-17)
(21.4876 -0.380193 5.27072e-18)
(18.7593 -0.611526 0)
(20.4713 -0.609123 -5.28699e-18)
(18.8613 -1.17093 7.30438e-19)
(22.3031 2.30912 5.93907e-19)
(20.8409 -0.60782 3.76731e-18)
(20.8031 -1.10769 -6.20253e-18)
(20.2389 -0.368728 -1.70654e-17)
(20.1373 -0.263696 1.02123e-16)
(20.3068 -1.02268 4.75013e-18)
(20.1066 -0.0901787 5.37458e-17)
(22.3243 -0.669339 0)
(19.8583 -0.398974 7.26559e-18)
(17.5259 0.962756 -1.47712e-17)
(19.5196 -0.892078 -6.90687e-18)
(18.8302 0.712074 -6.9579e-18)
(20.238 -0.205727 3.45621e-17)
(20.0263 -0.301081 -3.40151e-16)
(19.6848 0.436069 3.36542e-19)
(18.8124 -0.560235 1.29935e-17)
(20.0679 0.831181 -1.87604e-17)
(20.3174 0.624991 -2.67277e-17)
(19.2451 -0.942059 -1.96331e-19)
(22.4794 -0.480336 0)
(20.1939 0.676287 1.47682e-17)
(20.227 -0.927691 -3.988e-18)
(20.1116 -0.242188 2.46907e-16)
(20.3591 -0.242804 1.64276e-17)
(21.2734 0.5046 -6.31633e-18)
(19.7251 -0.102974 9.32799e-17)
(22.6925 -0.343275 2.72972e-16)
(18.4673 -0.751352 1.66415e-17)
(19.9774 0.0567197 -2.16359e-16)
(20.4267 -0.220436 0)
(19.5715 -0.296355 -1.12085e-16)
(22.4166 -0.284727 7.54037e-20)
(22.0307 -0.661298 7.85604e-19)
(18.7276 -1.01375 0)
(19.9838 1.10005 1.36192e-17)
(19.4933 -0.337379 -1.26923e-16)
(19.9982 -0.0654399 -1.13968e-16)
(19.7351 -0.414027 2.6501e-17)
(19.9796 0.121498 0)
(19.8639 -0.845542 1.99593e-18)
(19.4421 -1.00123 -2.21397e-18)
(20.8373 -0.954941 -4.95348e-18)
(20.2841 0.0732848 -2.79461e-17)
(20.3287 -0.177305 -2.2188e-17)
(20.0038 0.0243511 -2.84871e-16)
(20.3048 -1.10678 0)
(19.6632 -1.21482 -4.43779e-18)
(19.783 -0.224245 2.32218e-17)
(19.6758 0.494588 -1.4613e-17)
(20.1147 -0.680002 7.18456e-18)
(20.9628 -1.12964 1.66176e-18)
(18.9327 -0.969467 0)
(20.0424 -0.0964837 -1.10041e-16)
(20.0164 -1.04507 3.09114e-18)
(20.1132 0.108494 0)
(20.0622 -0.461897 -5.49341e-17)
(19.2667 -1.23958 -5.85797e-18)
(21.3515 0.03097 1.43176e-18)
(21.7882 -0.950571 1.14787e-18)
(19.068 0.211377 -8.06926e-18)
(22.0239 0.671551 0)
(18.3363 0.88881 -1.29285e-17)
(18.2237 -0.504122 -6.82784e-18)
(20.5009 -1.07347 -3.86657e-18)
(19.511 -1.25709 6.06893e-19)
(20.9884 -0.905053 2.81561e-18)
(21.3976 -0.27129 -8.42822e-18)
(18.9664 -0.370355 -6.70721e-18)
(17.9772 -0.516146 1.92019e-18)
(19.942 -0.307013 0)
(19.4425 -1.14424 8.90938e-18)
(22.4245 0.530312 -3.66988e-19)
(19.6909 -0.163376 4.91234e-17)
(21.802 -0.680908 1.32562e-18)
(19.5972 -1.1432 -4.01955e-18)
(19.7982 -0.391273 1.43051e-17)
(19.287 -0.851735 5.14655e-18)
(20.313 0.25149 0)
(20.4507 -1.18861 -5.42236e-19)
(17.3417 -0.256459 -1.17859e-17)
(19.4374 0.868479 2.22579e-18)
(19.9544 -0.911195 1.87461e-18)
(18.5588 -0.644963 9.7807e-18)
(19.065 -1.20779 -1.4097e-18)
(20.0248 0.0426797 1.96588e-16)
(15.9742 -0.759432 -3.52754e-17)
(18.1182 -0.510775 6.92514e-18)
(19.9853 -0.00259432 1.38086e-16)
(21.7743 -0.782063 -3.58412e-20)
(19.7829 -0.384355 8.20629e-17)
(20.6703 -0.60296 4.32814e-18)
(19.8719 0.594387 -4.60175e-17)
(21.0384 -1.08166 -1.59032e-18)
(20.1503 0.0637071 -1.23159e-16)
(18.5815 1.26639 -1.37258e-18)
(20.2135 -0.148935 -2.37362e-19)
(20.2009 0.00349878 3.61944e-17)
(21.9998 0.112883 -6.0802e-18)
(19.9669 0.0474844 -1.62035e-16)
(20.3796 -0.295239 1.7643e-17)
(19.5696 -0.0864667 9.37216e-17)
(20.8283 -0.295343 -9.29507e-18)
(19.9093 0.0236984 -8.54541e-19)
(22.8733 1.78017 -3.753e-20)
(18.7442 -0.7448 0)
(20.1128 0.230637 9.3174e-18)
(21.1278 -1.0639 0)
(20.115 0.064272 1.05146e-17)
(21.4399 -1.00293 -7.03777e-19)
(19.3422 0.425357 -2.08709e-17)
(19.6048 -0.334598 -5.54577e-16)
(19.3251 -1.08515 -9.18183e-18)
(18.9386 -1.09147 0)
(19.6118 -0.0122572 -2.14087e-17)
(20.0498 -0.0221588 0)
(20.6414 0.499767 2.09233e-17)
(20.2911 -1.18688 -7.5499e-21)
(20.3112 0.147751 7.78057e-17)
(20.4251 0.13765 0)
(20.0892 -0.140299 4.33233e-17)
(20.1957 -0.184047 2.94233e-17)
(20.2309 -0.900156 -9.72626e-19)
(19.9699 -0.301936 0)
(19.9405 -0.407175 -6.41389e-17)
(19.3263 -1.128 -2.48631e-18)
(20.0523 0.0566579 2.41639e-16)
(23.0886 0.212907 1.18688e-19)
(20.8817 -0.521537 -3.26669e-18)
(18.677 -1.07925 1.19816e-18)
(20.0129 0.0622213 -6.70272e-17)
(19.227 -1.16992 -2.62064e-18)
(18.9919 -1.10364 0)
(19.7166 -1.05396 0)
(20.4788 -1.13729 3.95547e-18)
(21.9585 -0.796594 4.82454e-19)
(19.3174 -0.783573 6.42757e-18)
(19.9701 -1.09972 0)
(20.5536 -0.0659451 1.5897e-19)
(20.0456 0.330144 6.2835e-17)
(21.9014 2.74475 1.30338e-20)
(19.4794 0.151911 0)
(19.5915 -0.969843 -7.37538e-21)
(20.8257 0.0127702 -3.93647e-18)
(19.7604 -0.216689 -4.00127e-16)
(20.1123 -0.893674 4.64132e-18)
(20.4317 -1.04564 4.90793e-21)
(20.0077 -0.316867 0)
(21.5032 -0.986425 -1.62038e-19)
(18.9774 -0.128067 3.56534e-18)
(22.0326 0.388668 0)
(17.3556 -0.0802578 4.49697e-18)
(18.4522 -1.04492 6.50166e-19)
(20.1281 -1.03025 -3.80741e-19)
(19.7101 0.837659 5.6742e-17)
(17.7124 2.27119 5.95422e-19)
(19.8151 -1.19349 -6.40947e-18)
(18.7848 -1.04454 1.21543e-18)
(20.2842 0.274338 5.60897e-17)
(18.4331 -0.903859 -7.81754e-18)
(19.4433 -1.18679 0)
(20.0133 -0.0541493 -2.43477e-17)
(22.6474 0.235231 -2.97149e-16)
(20.4965 -1.18002 -1.12045e-18)
(17.8131 2.08237 -1.70031e-18)
(20.2636 -1.1095 0)
(20.1184 -0.543126 2.56264e-18)
(19.5579 -0.982299 -5.519e-18)
(20.1028 -0.811015 7.05487e-18)
(21.6427 -0.730635 -9.6116e-19)
(19.7365 -0.375976 -1.43317e-17)
(19.2574 -1.17384 0)
(20.6998 2.53619 -4.84137e-21)
(21.5226 2.65239 8.14984e-20)
(20.0839 -0.225413 -1.90032e-16)
(17.9863 -0.165096 7.1866e-18)
(20.3002 -0.192505 0)
(18.8771 -1.13883 1.60841e-18)
(20.0797 -0.625191 -5.43363e-18)
(22.1374 -0.248696 1.30784e-18)
(19.3028 -1.00689 5.42786e-19)
(20.6344 -0.559622 -6.84114e-17)
(19.3171 1.69278 8.26651e-18)
(20.7638 0.383219 -7.69916e-17)
(20.0124 0.0445816 -1.83198e-16)
(19.2975 -0.383242 8.23196e-18)
(20.0186 -0.0917093 0)
(21.8125 0.029021 9.02653e-19)
(19.0228 2.47385 1.9226e-21)
(20.1396 -0.990833 3.36693e-19)
(20.002 -0.263823 1.504e-16)
(19.1454 -1.11426 -8.81021e-19)
(17.9173 -0.423294 -5.54744e-18)
(19.9981 0.00682187 2.10841e-16)
(22.4372 0.702577 -1.13624e-18)
(20.5042 -0.513144 0)
(20.5108 -0.864824 -2.50719e-18)
(17.8396 0.775775 0)
(19.9595 -0.312599 -5.52676e-17)
(18.2475 1.8518 0)
(20.1311 0.340029 -1.24029e-16)
(19.0655 -0.416806 -8.84871e-18)
(20.0147 0.0849967 -1.80488e-16)
(18.8543 0.918201 7.02232e-18)
(20.1108 0.0275975 -1.98188e-16)
(20.9124 -0.235068 4.15172e-18)
(17.1589 -0.967727 -9.22603e-19)
(19.9476 -0.813707 0)
(19.9173 -0.452118 6.68386e-17)
(19.988 0.0453571 1.34696e-16)
(20.0022 0.0318859 -1.41154e-19)
(21.7738 0.0440358 0)
(20.447 -0.524484 -1.8328e-17)
(19.2411 -1.04659 -8.53055e-18)
(16.7698 0.960024 6.13802e-18)
(19.7937 -0.758349 5.59915e-18)
(19.6628 1.02276 -2.89327e-19)
(19.694 -0.0548614 -2.45787e-17)
(20.2786 -0.0482448 -1.085e-16)
(20.1247 -0.593259 4.02483e-16)
(19.4743 -0.957318 -5.67895e-18)
(19.7084 -0.0237265 0)
(19.9751 0.102716 1.91198e-19)
(20.6418 -0.84946 2.9582e-19)
(20.0354 0.0825669 8.9549e-17)
(20.1086 0.0348906 1.60051e-16)
(19.5021 -1.06203 0)
(21.0771 2.10218 -4.01009e-20)
(20.1839 -0.25384 -9.80959e-17)
(20.0628 -0.27757 9.50229e-18)
(19.9148 0.0462517 1.02172e-18)
(19.9991 -0.0864788 2.36297e-17)
(21.0459 -1.11283 0)
(18.447 0.164333 7.96996e-18)
(19.6248 -0.952998 6.23662e-18)
(20.4081 0.512932 -1.22263e-17)
(20.3614 -0.836081 2.56103e-18)
(18.9823 1.86931 1.8255e-19)
(19.5385 -0.566249 0)
(19.1138 -1.18032 -4.12031e-18)
(20.1824 -0.744286 4.93439e-18)
(19.5946 -0.281603 -1.62123e-19)
(19.5104 -0.467633 -6.91046e-18)
(18.7089 2.10312 1.42257e-18)
(18.6205 -0.981081 -2.06719e-18)
(22.2574 -0.28622 -2.30966e-16)
(20.014 -0.297451 1.77082e-16)
(19.5008 -0.922332 -1.90099e-17)
(20.0194 -0.325162 -9.31175e-17)
(21.1595 -0.211776 0)
(19.9216 -0.238573 -5.78446e-17)
(19.1872 0.639427 -2.97664e-19)
(19.7515 -1.04883 1.1687e-20)
(20.0936 -0.39839 -1.31857e-17)
(20.6469 -0.435411 -8.92062e-20)
(22.6065 0.311675 -6.85654e-20)
(21.0704 0.526595 5.58207e-16)
(21.5184 1.91354 1.0366e-18)
(19.8368 -0.568421 1.07068e-17)
(19.8384 -0.242433 -7.12506e-20)
(21.2313 2.55403 -3.8874e-19)
(18.4385 0.537873 -1.04308e-16)
(19.9303 2.60454 -5.34934e-20)
(20.0628 2.65834 -1.70312e-18)
(18.5129 -0.164282 -1.04861e-17)
(19.8337 -0.188674 1.89886e-16)
(19.6472 0.0315036 -2.23472e-17)
(20.2779 -1.15588 0)
(20.0056 -0.309111 0)
(15.2363 0.392197 3.30318e-18)
(19.5331 -1.17399 0)
(19.6559 0.249689 1.03079e-16)
(19.8423 -0.3114 -7.42111e-17)
(21.7696 0.495427 -9.02e-18)
(18.6484 0.669383 -1.18478e-17)
(20.7497 -0.951531 -2.33766e-18)
(22.1194 -0.577736 9.86007e-19)
(20.1516 -0.958443 1.51876e-18)
(20.3131 -0.260741 3.62285e-17)
(19.9183 -0.599843 2.40976e-17)
(18.7582 -1.03038 6.95791e-20)
(20.6098 -0.157189 2.34215e-17)
(21.3422 0.213448 7.22025e-17)
(20.1275 2.16137 0)
(21.0063 -0.991871 1.48289e-18)
(22.2718 -0.0380162 3.488e-16)
(19.621 0.405094 2.59337e-17)
(19.0387 -1.02192 -6.93083e-20)
(21.3499 2.61615 3.70339e-19)
(20.1383 -0.0467956 9.56438e-17)
(20.0594 -0.0809548 7.29975e-17)
(19.9946 -0.272592 0)
(18.0267 2.1397 7.87638e-19)
(18.2306 -0.811949 6.3234e-18)
(21.9103 0.473058 0)
(19.3278 -0.453869 -8.14341e-18)
(18.2642 -0.98688 -2.1902e-19)
(20.5015 -0.278409 -1.59606e-17)
(19.7959 -0.162775 1.5194e-18)
(18.6625 2.26975 5.09109e-19)
(18.0679 1.97973 7.71919e-19)
(19.943 0.112134 -1.30392e-16)
(21.7905 0.118591 -8.66013e-17)
(20.0195 -0.131373 -4.23337e-17)
(19.5122 -0.331191 -4.0538e-17)
(20.027 0.0361697 3.24041e-16)
(19.3039 -0.993786 1.07778e-18)
(20.8437 -0.0175635 5.02014e-17)
(19.4514 0.353442 0)
(20.0107 0.0241004 -3.0497e-16)
(20.0025 0.0549988 5.93917e-17)
(20.1455 -0.9719 0)
(19.7019 -1.09843 3.52804e-18)
(20.0016 0.00704737 1.0669e-17)
(20.2248 -0.115164 -4.11101e-17)
(19.8153 -0.221258 3.50444e-16)
(20.6146 -0.102201 -7.86977e-18)
(20.6863 -0.857084 -2.36961e-18)
(19.4603 -1.12225 4.43347e-18)
(18.4562 -0.505403 -2.41978e-17)
(21.8823 -0.832686 3.02038e-20)
(18.3855 1.86643 -9.69253e-19)
(20.2318 -0.916246 2.24293e-18)
(19.2147 -0.148067 2.84779e-17)
(20.5456 -1.12589 2.00686e-18)
(20.1607 -0.895327 -2.99345e-18)
(18.7471 -0.876692 0)
(20.8418 0.331732 0)
(22.8384 0.665001 -3.07678e-20)
(20.5474 -0.435101 -1.71274e-17)
(20.7443 -0.705901 1.52934e-18)
(20.4209 -0.0441361 -4.32396e-19)
(19.7962 -0.0766291 2.14759e-17)
(19.8321 0.232694 3.17248e-17)
(19.3239 -0.632501 -2.94733e-17)
(21.4833 -0.478458 6.07154e-18)
(20.4021 2.8214 0)
(19.2345 -0.803924 5.48285e-18)
(21.1369 1.07386 5.90947e-18)
(19.239 -0.882574 1.13695e-17)
(19.7664 -0.335609 1.32362e-16)
(19.414 -1.18722 0)
(21.3038 -1.07025 -7.53311e-19)
(19.4659 -0.0940499 2.24462e-17)
(18.3972 -0.851993 7.89388e-18)
(20.6727 -0.386234 -7.67641e-20)
(21.0435 2.45068 4.40955e-19)
(19.8229 -0.142618 0)
(17.2642 0.248337 1.34629e-18)
(18.1368 -0.463885 5.33994e-17)
(20.9839 -0.116741 2.26537e-18)
(18.8337 -1.14817 -5.38461e-18)
(21.5981 -0.0571238 -1.11202e-16)
(20.9119 -0.0908378 -8.70986e-17)
(22.8792 -0.14513 0)
(19.564 -0.487351 -4.69766e-17)
(18.8318 0.803162 8.69563e-20)
(20.089 -0.129229 -4.66812e-16)
(17.6047 -0.135532 9.45086e-18)
(20.2739 -0.796947 5.86028e-18)
(21.843 2.59618 -2.36536e-19)
(21.3436 -0.161155 4.22199e-18)
(18.6814 1.70602 -3.25314e-18)
(19.2541 -1.20244 -3.42322e-18)
(18.5341 -0.246935 3.12286e-18)
(19.6217 -0.891794 6.08297e-18)
(19.3832 2.18058 -2.35227e-18)
(20.01 0.072386 2.90412e-17)
(21.3166 -0.269324 5.17122e-18)
(20.7405 0.479065 2.00772e-17)
(20.2463 -0.713224 -7.51706e-18)
(19.9349 -0.321351 -1.00689e-16)
(20.0269 0.250668 1.03829e-16)
(19.7549 -1.20386 4.60514e-21)
(20.1563 -0.933944 -3.18653e-18)
(20.5896 -0.839565 6.22483e-18)
(19.671 -0.291912 -2.24198e-16)
(20.0162 -0.559808 -1.64477e-17)
(20.2604 -0.918672 0)
(19.7945 -1.12039 -2.71843e-18)
(19.4933 -0.255863 -5.60121e-17)
(20.0677 -0.898725 -3.4424e-18)
(20.168 -1.1019 2.62303e-20)
(20.0894 -0.299348 0)
(21.2736 2.16977 6.82457e-19)
(19.9204 -0.4747 0)
(19.8014 -0.0492805 1.78757e-17)
(19.9238 -0.545723 0)
(18.8209 -0.941678 9.36391e-19)
(18.8119 -0.250464 6.12191e-18)
(19.9848 -0.474549 0)
(20.5924 -0.520736 1.04217e-17)
(20.3292 -0.947631 0)
(19.2722 -0.0294499 0)
(19.9862 -0.252528 -1.26293e-16)
(20.1634 1.09073 0)
(20.6472 -0.263502 1.61737e-17)
(20.1366 -0.799308 -3.98842e-17)
(20.1355 -0.000580744 -3.27724e-16)
(19.9802 -0.930676 0)
(20.0266 0.00665827 -1.83685e-16)
(20.0978 -1.01251 0)
(21.1266 -0.0877964 -1.06638e-17)
(21.081 0.0308482 -1.13545e-17)
(20.1733 -1.03287 -1.27294e-18)
(19.8572 -0.362759 -6.9884e-18)
(17.7979 -0.26953 6.74451e-18)
(19.9229 0.120015 1.50035e-16)
(20.0213 -0.216777 1.39693e-16)
(17.4595 -0.174601 4.76891e-18)
(19.734 -0.00383446 2.29871e-16)
(19.9447 0.164427 -2.27685e-16)
(19.9992 -0.352849 7.3162e-19)
(19.8139 0.098234 -1.13864e-16)
(20.1638 -0.0867012 0)
(23.244 2.11651 0)
(20.019 0.0501465 -8.88908e-17)
(20.1692 -0.213808 1.31261e-16)
(20.1407 0.106717 7.53374e-17)
(19.9478 -0.0272502 5.52917e-16)
(20.6053 -0.410456 2.49311e-17)
(19.2578 -0.197301 -1.53375e-19)
(19.9578 -0.00263945 -1.30669e-16)
(19.8797 0.305292 -4.09423e-17)
(20.046 -1.13772 2.36601e-18)
(19.7732 -0.559668 -9.3598e-18)
(19.5287 -0.288223 2.26482e-17)
(19.9727 2.26414 3.58326e-18)
(19.9644 -1.1271 0)
(20.0005 0.0273002 -1.5373e-16)
(19.6513 -0.688527 -3.54961e-17)
(23.0068 0.0372797 0)
(18.535 -0.00961394 -1.41789e-17)
(19.9786 0.0388814 -2.53085e-17)
(18.1406 0.607885 -6.40174e-18)
(20.7813 1.41204 1.58575e-18)
(20.0857 -0.0566159 -4.79272e-16)
(19.8649 0.191764 0)
(20.423 -0.099133 2.61458e-17)
(16.6789 -0.353237 -1.01355e-16)
(20.6969 -0.720503 9.32287e-18)
(21.2406 -1.08224 5.62051e-19)
(20.0398 -0.286414 -7.52298e-18)
(20.4751 -0.225213 0)
(20.0607 -0.819468 1.16664e-19)
(21.5089 -1.02029 6.42364e-19)
(20.2721 0.372155 3.28762e-17)
(22.3965 -0.115217 -4.49007e-19)
(19.3596 -0.745449 9.34101e-18)
(18.4815 -0.982005 0)
(19.134 -0.0368664 1.61751e-17)
(20.4419 -0.298246 -1.68309e-17)
(19.6931 -0.207235 0)
(21.0515 -0.945441 3.57034e-20)
(19.9401 0.21748 -2.89586e-16)
(19.3986 -0.525901 0)
(19.7915 -1.20679 1.09064e-18)
(18.6205 2.19564 -4.67963e-19)
(19.7468 2.88641 0)
(19.3883 -0.231269 3.72722e-17)
(19.225 -1.19811 7.36995e-18)
(20.0053 0.080294 -1.21641e-17)
(20.0833 -0.924109 -2.26128e-18)
(18.1424 -0.595174 -1.09487e-18)
(20.3461 -0.00988795 -8.13466e-17)
(19.3405 -1.21461 0)
(20.7626 -0.452087 1.45323e-17)
(21.1684 0.199626 4.56348e-18)
(21.0881 -0.769799 -4.82855e-19)
(19.9712 -1.14421 -1.98177e-20)
(20.6489 -1.05425 -7.35636e-18)
(20.3639 -0.904308 -7.28691e-18)
(19.8987 0.449321 -2.06742e-17)
(19.9489 0.0517014 -9.05627e-17)
(20.0685 0.0472933 1.82482e-16)
(19.2666 -0.113636 -2.57887e-17)
(19.152 0.0501303 0)
(19.508 -0.286133 0)
(20.0051 0.0160572 1.19286e-16)
(17.9081 -0.626127 0)
(19.4949 -0.0299534 -6.37678e-17)
(18.7437 1.18407 -1.47573e-19)
(20.5906 -1.14997 2.15293e-19)
(20.0736 0.999548 -1.08021e-17)
(18.4199 -0.981592 1.77612e-18)
(20.7769 -0.968243 -5.02829e-18)
(18.7791 -0.175299 9.19576e-19)
(19.5973 -1.10747 2.28655e-20)
(19.6535 -0.560383 -8.14e-21)
(18.7869 -0.858798 9.66717e-18)
(21.1313 0.708718 0)
(19.3989 -0.624076 -3.03617e-17)
(20.7728 -0.322961 6.23065e-18)
(21.7655 0.253579 0)
(20.791 -0.123838 2.24924e-17)
(18.7136 2.18563 -1.37017e-18)
(18.321 -0.629654 5.56949e-18)
(19.4694 -0.60873 2.49149e-17)
(13.7857 -0.698729 3.73394e-19)
(19.9279 -0.00641747 -2.92785e-16)
(19.5296 -0.113497 -1.06183e-16)
(20.222 -0.392217 1.06779e-16)
(18.5868 -1.0889 -6.96809e-18)
(19.6413 -0.63512 1.86901e-17)
(18.6693 -1.01967 7.17584e-21)
(20.0033 0.000517472 -1.25304e-16)
(23.2822 0.0314821 -1.85419e-16)
(19.9707 2.91245 0)
(20.6468 -0.815709 0)
(20.6542 -1.10094 1.40296e-20)
(21.6592 2.23966 1.38215e-18)
(20.1638 -0.765978 8.75367e-18)
(21.1117 1.65947 2.34675e-18)
(20.0601 -0.926984 1.91276e-18)
(19.8805 -0.379553 7.71378e-17)
(20.4121 -1.12273 0)
(18.8972 -0.723908 -1.93602e-20)
(19.8349 -1.17646 3.96e-18)
(20.4053 0.0743382 8.52639e-18)
(21.0905 1.30032 6.3808e-18)
(19.4251 -0.732077 0)
(20.7265 0.0529034 -3.45403e-19)
(19.1529 -0.282662 -2.41271e-17)
(20.2041 1.89505 -8.87478e-20)
(20.2446 0.0466157 8.46787e-17)
(19.6576 -0.170274 0)
(18.4775 -0.582954 0)
(20.8586 -0.421817 -1.1299e-17)
(19.9534 0.143306 1.20549e-16)
(18.955 -1.15047 -4.20257e-19)
(20.978 0.054289 -2.01271e-16)
(20.133 0.261979 0)
(18.4415 -0.831243 3.49941e-18)
(16.1332 -0.866573 3.07847e-18)
(20.7106 -1.09772 -3.10232e-18)
(14.8138 -0.543853 -3.46485e-19)
(18.1757 -0.681417 -1.77438e-18)
(21.922 -0.435041 -4.74611e-18)
(20.0017 0.0495885 -1.98617e-16)
(20.0823 -0.285463 0)
(19.8014 -0.768657 7.73214e-20)
(20.239 -0.0541503 -9.01065e-17)
(18.5971 -0.117707 0)
(21.0353 0.152745 0)
(19.7632 -0.205937 0)
(21.1164 -0.905466 1.66516e-18)
(16.7199 -0.932912 -3.84419e-18)
(21.3546 1.97616 1.04889e-19)
(19.7824 0.0492546 -1.61682e-16)
(22.1004 0.256197 7.9875e-16)
(19.2031 0.0790986 -1.53082e-17)
(21.4049 -0.629225 9.29484e-18)
(19.963 -0.191604 -5.33147e-17)
(18.5058 -0.864557 -6.19204e-18)
(19.435 -1.20109 -3.81244e-19)
(19.5349 -0.67286 -4.86901e-18)
(18.2934 -0.991173 5.36088e-18)
(19.2612 0.104767 2.9705e-17)
(22.2867 0.923016 5.44321e-19)
(20.9848 -0.759774 0)
(20.794 -0.685856 0)
(20.1301 -0.0593041 -5.19522e-17)
(22.6475 0.711457 5.02538e-19)
(19.2457 -1.17914 -7.67399e-19)
(20.0418 -0.0735899 1.18591e-16)
(19.2842 0.819201 -9.86629e-18)
(20.3714 0.0448923 -1.14814e-19)
(16.9133 -0.639167 2.28684e-19)
(17.9694 -0.854307 4.35395e-18)
(20.8636 -0.0297487 -1.00803e-16)
(19.2849 -0.316845 2.68487e-17)
(20.261 -0.850019 0)
(17.7531 0.291664 9.9881e-18)
(19.9235 -0.3718 0)
(20.0196 0.0166713 0)
(19.4368 -0.402148 -2.51681e-17)
(20.3613 0.762506 -8.96757e-18)
(20.0041 0.06045 9.2635e-17)
(20.0778 -0.0931067 -1.30892e-16)
(20.1321 -0.274735 -3.32249e-16)
(19.9939 0.0346677 0)
(19.3936 -1.05667 0)
(20.3372 -1.17863 0)
(19.1748 -0.384506 0)
(20.3881 -1.1841 1.00798e-18)
(20.0291 -0.232749 2.51755e-16)
(20.0968 0.010433 -3.32506e-16)
(19.7207 -0.271117 2.7265e-16)
(20.2674 -0.610677 0)
(19.5608 1.65759 1.25571e-17)
(20.0383 -0.972697 -1.67282e-18)
(20.0078 0.189378 -1.71092e-17)
(20.0906 -0.166283 2.51177e-16)
(19.8542 -1.08139 1.14332e-17)
(18.7589 -1.11281 1.30123e-18)
(20.2519 0.0653799 0)
(18.8609 -0.873229 -7.35116e-18)
(20.6558 -1.16834 1.59986e-18)
(19.2368 0.722716 -1.59703e-19)
(18.7942 -1.11067 -3.39493e-18)
(20.2942 -1.07767 3.86133e-18)
(20.0697 -0.487408 9.48689e-17)
(20.7188 -0.938985 -1.33951e-18)
(19.1521 -1.22098 0)
(18.9392 -0.631417 8.14023e-17)
(19.8429 0.40814 2.88794e-18)
(20.1142 -0.119892 1.67749e-16)
(19.5905 -0.322704 4.51334e-16)
(20.4414 -0.772537 -1.84272e-18)
(19.1105 -0.466807 3.31278e-17)
(22.66 -0.078321 -3.61187e-16)
(21.2605 -0.91683 0)
(18.703 1.29438 -2.62026e-18)
(21.302 -0.887365 -3.80878e-18)
(19.3977 -1.2 -3.85904e-19)
(20.2742 -0.987816 0)
(19.9465 0.0909728 0)
(18.2462 -0.960127 0)
(19.9993 0.00778358 4.08789e-17)
(20.2661 -0.901002 -6.31137e-19)
(18.8376 -0.619595 3.09334e-18)
(20.0977 0.132814 4.26545e-17)
(20.8036 -1.08557 -1.70542e-18)
(19.1455 -0.882179 0)
(17.6448 -0.0391407 -4.09932e-18)
(20.1654 -1.1961 -1.66287e-19)
(21.7877 0.172598 -4.84825e-17)
(18.8544 -0.321339 0)
(19.5829 -0.565434 -3.99194e-18)
(18.9383 -1.18783 -3.19246e-18)
(17.8483 -0.185963 -1.40958e-17)
(18.4822 -0.567603 -2.71007e-19)
(20.6405 -0.31113 7.88139e-18)
(21.4046 1.19421 1.35351e-20)
(20.0806 -0.0584278 2.63504e-17)
(18.9637 -1.16109 0)
(20.4704 -0.489825 -3.45572e-17)
(19.0903 -1.01062 -2.04442e-18)
(21.3046 -0.756994 7.29388e-18)
(20.739 -0.36733 -1.75824e-17)
(19.7721 -1.0836 0)
(20.7543 -1.13884 -8.88764e-19)
(19.7556 -0.596949 0)
(20.4288 2.56821 -5.71634e-19)
(23.4139 1.85295 1.25148e-20)
(20.0938 -0.697763 7.33876e-18)
(21.5639 -0.773573 2.29648e-18)
(19.9472 -0.0301515 3.65607e-16)
(20.0133 -1.15487 4.46056e-21)
(18.4336 -0.427591 4.99123e-18)
(20.9061 -1.13971 1.68707e-18)
(20.5906 2.72896 0)
(18.2195 1.99972 -5.26961e-19)
(20.6261 -0.360987 7.97327e-18)
(19.5649 -0.43432 -3.61796e-18)
(21.289 1.49908 4.93005e-18)
(20.1801 0.139401 -4.98417e-17)
(18.6132 -0.903554 0)
(19.1082 -1.19323 4.42428e-18)
(19.7203 -0.729592 0)
(18.8652 -1.10252 -2.05617e-18)
(19.7762 -1.0051 -5.00731e-18)
(18.9797 -0.992389 -1.60996e-18)
(18.829 -1.0578 -1.7261e-18)
(19.0163 -0.980164 -9.37168e-18)
(22.2955 0.0376802 3.43444e-19)
(19.3486 -0.201022 2.27854e-19)
(20.1605 -0.244144 0)
(17.6097 1.99333 1.85701e-18)
(21.9401 -0.0887018 -2.94912e-16)
(22.9198 -0.320569 5.30869e-20)
(20.3993 0.422144 1.0241e-17)
(19.7546 -1.16043 1.46979e-18)
(20.746 -0.801001 0)
(19.8283 -1.23382 -1.30154e-18)
(20.0951 2.40085 1.0827e-18)
(19.9353 -0.291194 -1.34439e-16)
(21.6158 -0.589165 1.66158e-18)
(19.7838 -0.259647 3.28698e-18)
(21.1861 -0.134722 5.58235e-18)
(19.9506 -0.782751 -1.00614e-17)
(19.5428 -0.615543 -2.29259e-17)
(19.7109 -0.965868 -2.06623e-18)
(20.0614 -0.246458 0)
(17.6978 -0.484873 4.41818e-18)
(19.9923 -0.0590152 2.39658e-17)
(20.0083 0.018092 2.63326e-16)
(19.8124 -0.107397 -3.31803e-16)
(19.0406 -0.887306 -4.23694e-18)
(15.1762 -0.860333 -1.27529e-18)
(19.1978 -1.02775 7.64017e-19)
(20.899 1.00162 -5.9486e-18)
(20.1521 0.146324 4.85954e-17)
(19.7713 -0.299565 0)
(20.0066 -0.916507 0)
(21.0657 -0.659481 6.56004e-19)
(20.6942 -0.536279 -1.14193e-17)
(21.6804 -0.562754 -1.41463e-18)
(20.0149 0.068114 -1.75072e-16)
(21.5473 -0.235312 2.01825e-16)
(19.7746 -0.193541 -1.62454e-16)
(19.2536 -0.27568 -2.3968e-17)
(20.0233 -0.0485091 2.89727e-16)
(20.5631 -0.383741 -1.37608e-17)
(20.0243 0.371689 -1.99191e-16)
(14.0018 -0.361687 0)
(20.0312 1.45875 2.81194e-17)
(19.6836 -0.265736 -6.87854e-17)
(19.9725 -0.308083 -7.40961e-17)
(20.0239 0.305171 -8.98953e-19)
(19.7537 -0.287194 0)
(19.7675 -0.256721 -7.04093e-17)
(19.3073 -0.161797 0)
(20.1938 -0.296151 0)
(20.1463 -0.682493 -1.6528e-17)
(19.2905 2.48811 8.01604e-19)
(20.2279 0.272332 3.46817e-17)
(18.9046 0.776198 9.05341e-18)
(19.1317 -0.646191 -8.87514e-18)
(19.5186 0.337848 9.97122e-18)
(20.6257 -0.910814 -4.00371e-19)
(19.9634 -0.855806 -4.73737e-18)
(18.6588 -0.305743 -7.75524e-18)
(19.628 2.63452 -1.03086e-18)
(20.0586 1.20643 0)
(19.6166 -1.19739 2.70229e-18)
(21.3223 0.0887513 -6.13322e-18)
(19.3928 -1.0756 -1.90383e-20)
(18.4449 -1.05079 -2.72855e-18)
(21.1319 -0.487815 -5.79644e-18)
(19.2525 -0.97676 -2.29876e-18)
(15.5544 0.445351 -1.80448e-16)
(19.9154 -0.55214 1.38487e-16)
(19.593 -1.10076 -2.62115e-18)
(20.0314 -0.0486961 1.08444e-17)
(19.9194 0.0117054 8.16473e-17)
(20.3943 -0.528686 0)
(19.8823 -0.819159 4.92996e-19)
(20.9005 0.0283363 1.7154e-17)
(21.0646 -0.0386689 0)
(20.1996 -0.0311806 -8.35768e-17)
(20.392 -1.06516 6.73118e-18)
(20.3809 -0.470019 2.3406e-18)
(20.656 -0.771408 0)
(19.2897 -0.991198 3.15179e-20)
(17.224 0.642222 -1.41307e-18)
(19.0619 -0.173395 -2.77973e-17)
(19.2401 2.20698 -4.29919e-18)
(19.5642 -1.05686 -3.09731e-18)
(20.021 0.0786168 5.95008e-17)
(20.7218 -0.125415 9.80854e-20)
(18.9742 -0.633399 0)
(21.5798 0.61379 0)
(19.8689 -0.212922 0)
(20.2167 -0.878072 1.04882e-17)
(18.4182 -0.17644 0)
(19.8622 2.38395 -4.0484e-18)
(19.3166 -0.0832767 2.09433e-17)
(21.7761 1.66278 -8.79562e-20)
(21.9189 -0.872348 -2.28531e-19)
(20.7282 0.275853 9.56639e-18)
(19.3712 -0.650735 2.05822e-17)
(20.575 -1.05937 3.74e-18)
(19.6243 -0.529443 -6.18111e-18)
(20.8166 -0.930777 0)
(20.0063 0.0128927 -1.09889e-16)
(21.8529 0.365178 8.47945e-17)
(19.3858 0.26854 0)
(17.9406 -0.249715 3.90423e-20)
(20.0636 0.0913273 4.30711e-20)
(20.0303 0.0243041 0)
(20.6128 -1.1226 -3.51177e-18)
(19.901 -0.0182868 1.7255e-16)
(19.472 -1.21977 0)
(20.7766 -0.061723 2.51128e-17)
(20.0056 0.0580476 2.92357e-16)
(21.2989 -0.511393 0)
(19.8011 -0.703872 0)
(21.4244 0.0878647 1.15197e-16)
(21.1443 -1.02709 -1.2832e-18)
(20.1173 -1.13129 1.13802e-18)
(21.0206 -0.722345 2.52133e-19)
(19.7051 -1.25425 3.05836e-19)
(20.1027 0.023804 -2.24625e-16)
(20.5171 -0.0502935 -1.91391e-16)
(19.8607 2.91043 0)
(20.3172 -0.0249213 0)
(21.0517 -0.17693 -2.44123e-16)
(20.4327 -0.880271 1.93209e-19)
(20.02 -0.0762962 -8.73861e-17)
(19.6295 -0.280557 9.44956e-17)
(19.2852 0.0547085 1.31893e-17)
(22.1238 -0.821282 4.3347e-20)
(18.2072 -0.563168 1.05733e-17)
(20.0887 2.8987 1.75353e-19)
(19.5928 -1.25884 -4.00767e-18)
(18.6848 -0.121681 2.22009e-18)
(21.4805 -1.03603 -6.38876e-19)
(21.3347 0.0971363 -6.5515e-17)
(20.0002 0.0355344 -2.79094e-16)
(20.0004 0.0785743 2.51787e-16)
(19.2855 -1.0269 -2.67388e-19)
(20.4194 -0.617369 -5.68785e-18)
(20.1851 0.0411034 1.14516e-16)
(18.4695 -0.886736 1.04926e-17)
(20.064 -0.657014 -1.9689e-17)
(20.434 -0.458086 1.01358e-19)
(17.8725 -0.500036 0)
(19.7081 -0.667809 3.58859e-18)
(19.4313 -1.25615 1.2598e-18)
(20.1203 -0.352211 1.1862e-16)
(21.1262 1.84461 2.06479e-18)
(19.9368 -0.353722 0)
(19.5633 -0.547059 2.4282e-19)
(18.5486 -0.573688 -9.48107e-18)
(19.3234 0.18597 -6.51505e-17)
(20.931 1.85792 -4.4499e-18)
(19.7852 -0.923513 3.08817e-18)
(20.0979 -1.09376 4.67109e-18)
(19.9289 -0.230211 -4.02594e-16)
(21.1988 -1.09126 2.31885e-18)
(21.2506 -0.753205 -3.47611e-18)
(19.4795 -0.737101 1.25098e-17)
(16.9321 0.180459 1.60213e-18)
(19.3499 -1.25069 -1.34536e-18)
(19.9068 -0.00709191 0)
(19.4411 -1.14821 -8.64835e-18)
(20.5285 -1.1422 -3.15393e-19)
(19.645 1.24513 3.55089e-17)
(18.0788 1.8218 0)
(21.2878 -0.535133 0)
(20.3227 -0.93056 4.01065e-18)
(18.7401 0.357446 -7.64061e-18)
(18.9424 -1.04679 8.16716e-18)
(21.7342 -0.899344 9.53228e-19)
(19.9032 -0.864159 0)
(21.1923 -1.00924 -4.17056e-19)
(20.1781 1.54649 0)
(20.17 0.0587801 -1.31574e-17)
(20.1402 -0.0897819 -7.50119e-17)
(20.5857 -0.750781 -2.22682e-18)
(17.8199 0.459308 4.29342e-18)
(21.2151 -0.890636 1.1504e-18)
(19.4302 -0.595133 1.35563e-18)
(21.5541 -0.215279 1.57985e-18)
(20.8062 -1.01279 5.33498e-18)
(18.4144 0.401037 2.35968e-18)
(18.627 -1.01835 -3.94352e-18)
(20.0404 -0.902243 1.48579e-18)
(21.4018 -0.970018 3.9275e-20)
(16.1415 -0.060842 -3.63537e-16)
(17.6605 -0.895614 1.30034e-18)
(20.1466 -0.0188593 1.41206e-16)
(19.8923 -0.422968 -3.31149e-17)
(19.3632 -1.18349 1.68661e-18)
(19.8634 -0.241716 1.21125e-16)
(19.5002 -0.512272 0)
(18.8843 -0.641213 0)
(18.5259 -1.07494 1.16281e-18)
(22.283 0.019285 0)
(19.9839 0.104994 2.6506e-16)
(20.4554 0.171737 -2.8117e-16)
(19.5379 -1.14243 6.0785e-19)
(19.2115 0.302531 -3.20745e-17)
(21.474 -0.647042 -7.82332e-18)
(20.8253 -0.554532 3.4063e-18)
(18.2428 0.667042 -4.99322e-18)
(18.9752 -1.05933 2.04159e-18)
(22.6557 0.927674 -6.45442e-19)
(17.1744 1.96521 -1.30569e-18)
(19.6678 -0.846307 7.07334e-18)
(19.463 -0.351995 1.24565e-17)
(19.3353 1.36336 -3.01339e-18)
(19.894 -0.128524 -2.6794e-17)
(22.0371 -0.000123717 2.35184e-18)
(18.5101 1.11773 3.09902e-18)
(20.0303 0.0402955 0)
(20.1693 -0.47644 5.25411e-17)
(20.6773 2.67442 5.19871e-20)
(20.9687 2.39313 -6.55437e-19)
(19.0116 -0.848413 -3.97731e-18)
(19.135 -1.11439 -2.23197e-19)
(18.516 -0.723627 -1.32035e-17)
(19.5235 -0.321665 0)
(14.1086 -0.19589 -8.01914e-17)
(19.5379 0.103382 3.92692e-17)
(18.7327 0.0234144 -1.43141e-17)
(19.0777 1.21332 1.24176e-17)
(17.5296 -0.0317581 3.94464e-18)
(19.0914 -1.14411 -2.06152e-18)
(19.9114 -0.946592 0)
(20.7904 -1.06602 -2.84657e-18)
(19.4837 -0.415779 8.64858e-20)
(19.8339 -0.0690559 3.24008e-16)
(20.7951 -0.734714 4.15138e-18)
(18.9413 -0.922062 2.65548e-18)
(20.0161 -0.883251 -1.08837e-18)
(20.3029 -0.82064 1.72138e-17)
(17.6855 0.586452 -3.85591e-18)
(19.9088 -0.0623037 -1.6704e-16)
(19.8545 -0.479223 3.19531e-17)
(19.7881 -0.184455 -2.32655e-17)
(18.3345 -1.01313 -3.74344e-19)
(20.1366 -0.649788 1.1891e-17)
(21.6124 -0.0672342 2.19705e-16)
(18.3053 2.34846 5.63778e-19)
(22.2122 -0.273541 3.45314e-16)
(21.3286 -1.03094 -4.09633e-19)
(19.5404 0.160096 -1.03492e-16)
(20.0994 -0.128423 7.79155e-19)
(20.1397 -0.113291 0)
(20.6507 -0.726966 4.58307e-18)
(21.0113 -0.369962 1.01653e-17)
(20.3374 -1.11439 0)
(19.9473 -0.337275 -7.37163e-20)
(20.3441 -0.357578 5.17281e-17)
(17.4618 -0.938904 1.46137e-20)
(19.6904 0.209937 2.40595e-17)
(21.7094 -0.621738 -4.78369e-19)
(18.5748 -0.870904 -5.78235e-18)
(20.4822 -0.00369025 3.38273e-19)
(16.9611 -0.946685 -4.00066e-18)
(19.8204 -0.329313 -1.25851e-17)
(20.8516 -0.205253 1.822e-20)
(20.1169 -0.327964 -1.24684e-20)
(17.0443 0.569445 2.6063e-18)
(19.1728 -0.934652 6.74729e-18)
(20.447 1.56367 8.27175e-18)
(21.3582 -0.762593 3.47127e-18)
(19.8671 -0.376439 -1.50631e-16)
(18.7695 -1.13647 5.24717e-18)
(20.717 -0.417758 5.54705e-20)
(20.548 -0.729372 3.49534e-18)
(20.9511 -0.69299 6.45163e-18)
(21.6744 -0.047509 1.73053e-16)
(19.1638 -1.1592 1.16524e-18)
(19.0282 -0.346986 -3.01393e-18)
(19.8103 -1.0775 -6.06417e-18)
(18.0393 -0.558975 3.97007e-18)
(22.2205 -0.267614 4.38314e-16)
(19.2188 2.55083 4.46262e-19)
(20.2132 0.434369 -4.63976e-17)
(19.539 0.80597 2.02673e-17)
(20.0779 0.0761489 -1.35306e-16)
(19.5345 -0.999764 7.44154e-18)
(20.3418 -0.863125 -5.40062e-21)
(21.8506 0.012434 3.33637e-16)
(20.1117 -0.20217 8.6048e-19)
(20.6302 -1.00572 3.45224e-18)
(20.1627 0.417904 1.06182e-17)
(18.7812 -0.341966 1.94455e-18)
(21.5385 -0.281238 -8.1036e-18)
(19.9975 0.00629961 -3.89381e-16)
(20.1429 -0.12513 1.09203e-16)
(19.9916 -0.297003 1.022e-16)
(22.602 1.15758 0)
(21.0363 -0.782149 -8.7007e-19)
(20.0033 0.0617768 3.93552e-16)
(21.4815 1.09216 -1.79241e-18)
(20.2038 0.0545767 -6.92745e-17)
(19.7937 0.805424 -1.43618e-17)
(18.7574 -0.0999081 1.49977e-17)
(19.888 2.145 2.01776e-18)
(19.6041 -1.06846 -2.29342e-18)
(20.7026 0.183314 -1.78325e-19)
(20.6188 -0.751587 0)
(19.4625 0.717214 5.19891e-17)
(21.0967 -1.11334 0)
(18.6502 1.79641 4.44975e-19)
(16.5662 -0.469053 4.36161e-18)
(19.6007 -0.0332526 1.6212e-16)
(22.1164 2.12664 -3.25845e-19)
(19.3032 -0.96342 -1.23657e-18)
(21.0776 0.391292 9.10322e-18)
(19.2856 -1.03408 -5.60026e-18)
(20.2643 -1.18991 0)
(20.0006 0.0118864 2.06366e-16)
(19.905 -0.138138 -3.28723e-17)
(14.8364 0.0959928 -6.52294e-17)
(18.7722 0.119795 5.831e-18)
(19.0038 -1.19856 0)
(19.174 -1.19256 0)
(18.5585 0.672939 -1.03378e-19)
(20.1538 -0.921483 0)
(20.3241 -0.335834 -1.4837e-17)
(18.271 -0.430286 -1.25529e-17)
(20.0022 0.0115511 -5.15875e-17)
(20.0044 0.0737614 2.32919e-17)
(20.5211 2.17113 -3.15068e-18)
(18.8667 1.23452 0)
(21.3146 0.365087 -1.7292e-16)
(19.0714 -0.924438 8.7652e-18)
(20.0215 -0.378306 0)
(20.0723 -0.534061 -6.96597e-17)
(19.58 0.106201 3.85136e-17)
(21.0232 -0.450695 0)
(19.7384 -0.0510477 3.0468e-16)
(21.9287 -0.691228 -9.35086e-19)
(19.213 -0.537097 1.84762e-17)
(19.753 0.198522 6.50917e-17)
(18.8976 -0.525902 -1.3361e-19)
(19.714 -0.282297 -2.31936e-16)
(20.9796 -1.0152 1.42138e-18)
(19.1484 -0.774665 -6.59898e-18)
(20.5978 -0.24605 2.18353e-19)
(19.2069 -0.233387 2.95484e-17)
(19.522 0.264678 0)
(20.0363 -0.00691613 0)
(20.9001 0.286798 -8.83293e-18)
(19.2834 1.48738 0)
(19.3626 -0.414962 -1.19921e-20)
(18.7429 0.805508 -8.19968e-18)
(18.8575 -0.682563 -2.3953e-18)
(20.0062 -0.866278 -7.74419e-18)
(18.7083 -0.0336253 1.133e-19)
(22.3528 -0.237245 0)
(18.6866 -0.521059 -3.11592e-17)
(19.3342 -0.867118 -5.68716e-18)
(20.5788 -0.334747 0)
(19.6487 -0.264571 -1.37767e-16)
(20.7966 0.301619 9.45369e-18)
(19.9988 0.007887 1.31051e-16)
(20.0031 -0.879174 9.5106e-18)
(19.8482 -1.05078 -5.88087e-18)
(19.6664 -0.272247 -5.88728e-17)
(20.1174 0.0974841 -1.8511e-16)
(19.3929 -1.12913 1.77506e-18)
(18.7333 -0.918477 1.21156e-17)
(20.0768 -0.122795 0)
(20.0132 0.00931668 1.32919e-17)
(21.4883 0.211501 2.95896e-16)
(19.9932 -1.01461 -2.279e-18)
(20.0334 -0.858681 -9.33775e-18)
(19.8342 0.121723 7.36482e-16)
(19.5671 -0.940995 -6.72348e-18)
(19.7583 0.0737022 5.9908e-17)
(20.8974 -0.703209 0)
(23.5388 0.752573 1.51246e-19)
(20.3252 -0.842762 3.71095e-18)
(18.3085 1.28663 -9.25885e-19)
(20.7166 -0.573624 -1.74774e-18)
(20.1635 -0.674472 -1.40591e-17)
(20.6691 -0.90399 4.111e-18)
(20.0972 -0.812555 -2.6084e-18)
(20.4134 0.909606 6.11569e-20)
(20.0116 0.0356243 3.57066e-16)
(19.9509 -1.19767 3.95396e-18)
(19.4201 -0.568108 -3.29366e-17)
(19.6636 -0.285487 -3.11584e-16)
(19.9998 0.0586047 1.31505e-16)
(20.6868 -0.677782 -7.91096e-18)
(22.4375 -0.617443 -1.96998e-19)
(19.8207 -0.464414 0)
(20.017 2.02733 0)
(19.1424 -0.540808 -5.31507e-17)
(20.0378 -0.149323 5.31627e-19)
(19.6983 -0.187777 0)
(17.9604 0.551473 -4.05525e-19)
(19.5669 -1.12107 3.35615e-18)
(20.5616 -0.110362 2.86965e-17)
(19.6091 -1.22074 0)
(20.1466 0.0253728 0)
(19.961 -0.343607 -1.26964e-16)
(17.5472 -0.385416 1.53849e-17)
(20.7384 -0.660005 -3.8316e-18)
(20.0206 -0.832855 7.56899e-18)
(22.8116 0.435308 0)
(19.968 0.154705 2.87919e-19)
(20.4489 0.782795 -9.65648e-18)
(21.4679 1.47988 5.15594e-19)
(20.5282 -0.0228692 -3.60031e-17)
(19.9952 0.909596 2.17184e-17)
(19.4256 -0.194091 -2.20618e-17)
(19.7998 -0.476186 -2.63424e-16)
(18.4432 -0.261764 0)
(21.0855 -0.830428 -1.88439e-18)
(21.6079 0.120564 3.53187e-16)
(19.8761 -0.0146965 0)
(20.0784 -0.3163 7.0721e-17)
(19.504 -0.336568 2.68093e-17)
(19.9998 0.0240118 0)
(20.8453 -0.662938 4.94239e-19)
(19.8471 -0.969911 2.72062e-18)
(18.8682 -0.463614 -2.49431e-18)
(21.6809 0.562771 6.48173e-18)
(19.0048 -0.199222 5.76526e-18)
(20.6208 -0.642227 9.97445e-18)
(19.3605 -0.13111 -2.12614e-17)
(18.8538 -0.145411 1.48972e-17)
(20.0234 -0.168907 1.18947e-16)
(19.5231 2.38578 -5.40114e-18)
(21.7932 1.95983 -1.12624e-19)
(19.4761 -0.846232 1.73722e-17)
(21.8788 -0.0251574 2.74287e-18)
(19.5811 -1.16999 -7.04985e-18)
(22.4001 -0.328417 -6.06669e-18)
(21.2796 -0.970044 0)
(20.788 -1.05443 -9.53581e-19)
(19.937 -0.289246 -8.50082e-17)
(19.0392 -1.17306 -2.82078e-18)
(17.9956 -0.807456 5.18787e-18)
(19.6405 -0.467393 -1.95352e-17)
(17.9568 -0.798975 -4.69839e-18)
(17.554 -0.571802 -1.36064e-20)
(19.9723 -1.20575 -1.6688e-18)
(20.3943 -0.441717 -4.41791e-17)
(18.7876 -1.15749 5.87669e-18)
(19.9649 0.0543654 8.11555e-17)
(19.4121 2.77265 4.76043e-19)
(21.8068 -0.370127 -6.45702e-18)
(19.7568 -1.12702 -2.61901e-18)
(17.6533 -0.313685 -4.59153e-18)
(20.0613 0.697998 7.54507e-17)
(20.0101 0.0482344 0)
(22.4454 0.182241 1.11678e-18)
(18.8843 -0.229147 -8.19886e-18)
(20.5962 2.31694 -1.69039e-18)
(19.6219 -0.668687 -9.09997e-18)
(20.1506 0.236466 0)
(21.3247 -0.0119376 1.34772e-17)
(20.3622 -0.388945 1.5907e-18)
(20.6749 0.764259 -3.53043e-18)
(19.7822 -0.284306 -2.16998e-17)
(18.8584 -0.771905 0)
(20.0069 0.215856 -7.80574e-18)
(18.2408 -0.395208 -2.49815e-17)
(19.2 -0.663313 0)
(18.5379 -0.824464 1.67225e-18)
(19.9634 -0.0463952 -5.17255e-17)
(21.3237 -0.691217 3.27664e-18)
(20.0002 -0.308042 1.89894e-16)
(19.5988 -0.349773 2.16088e-16)
(19.0208 -1.04953 1.03654e-17)
(19.9302 -1.11762 -5.07875e-18)
(21.0741 -0.894281 -1.90529e-18)
(19.8795 -0.114952 0)
(20.4601 -0.26389 1.55805e-17)
(17.1706 0.227075 2.02138e-16)
(19.9923 0.106501 -2.56752e-16)
(20.0313 0.21643 0)
(19.5698 -0.446241 -4.22044e-17)
(18.9193 -0.0328303 5.48019e-18)
(19.6796 0.108175 -5.40506e-17)
(20.6707 -1.08138 -1.00102e-17)
(19.5593 -0.254319 0)
(18.899 -0.38501 0)
(20.0283 0.0629678 1.15525e-16)
(19.8899 0.0150154 -1.02023e-16)
(21.6771 -0.864886 -1.35381e-18)
(21.3246 0.872867 9.00661e-19)
(20.5089 0.10315 -4.85203e-17)
(20.2149 -0.230894 3.79048e-17)
(20.0061 0.0229815 0)
(20.205 -0.366653 3.21712e-17)
(19.7133 -0.526743 0)
(19.5997 0.588997 0)
(21.1786 -0.404272 0)
(15.3847 -0.875326 -9.80422e-19)
(20.7682 0.367193 3.28125e-17)
(20.0656 0.0829361 1.95184e-17)
(20.0336 0.019189 -9.07486e-17)
(19.7398 0.0978763 -1.17594e-16)
(21.2821 0.279434 -6.99244e-18)
(20.4401 -0.936011 8.45492e-18)
(20.5359 -0.533108 -2.20096e-17)
(19.736 -0.0240315 -3.16927e-16)
(20 0.0337382 9.55555e-17)
(20.9362 -0.981585 0)
(15.1598 -0.243812 -2.53313e-16)
(20.901 -0.639796 -4.58419e-19)
(20.1047 -0.0651694 3.39826e-17)
(15.6939 -0.442936 1.22628e-16)
(20.2613 -0.288363 6.4406e-18)
(18.4075 -0.769081 6.62867e-18)
(20.0394 0.0369132 -2.44224e-16)
(19.7818 0.385422 -4.84525e-17)
(19.3908 -0.992017 -7.82324e-18)
(19.9981 0.0541434 7.48106e-17)
(19.6519 -1.07796 2.96975e-18)
(18.2839 -0.997802 -2.12198e-19)
(18.5602 2.2992 1.40893e-19)
(19.5705 -0.275488 -8.17801e-17)
(20.2024 -0.855096 2.35786e-19)
(21.3811 -1.05759 1.5173e-18)
(18.8254 -0.824109 -8.26085e-18)
(19.5083 -0.0741853 2.05201e-17)
(21.6178 -0.894212 2.78129e-18)
(19.2912 -1.14051 -4.39237e-18)
(19.3052 -1.15993 -1.00217e-18)
(19.647 -0.871525 -7.62137e-18)
(19.4051 -1.25516 4.01626e-18)
(15.1284 -0.686943 2.11718e-18)
(20.078 -0.769403 0)
(20.1426 -0.0397559 2.33769e-16)
(20.915 -0.429169 1.00357e-17)
(19.078 -0.862433 4.06823e-20)
(20.0005 0.00307941 1.6304e-16)
(19.7942 1.96909 0)
(19.6316 -0.286351 1.62562e-17)
(19.8744 -0.0983349 0)
(18.2041 0.269404 -5.00684e-18)
(18.9786 2.27281 -1.02717e-18)
(18.6448 0.792384 1.78522e-17)
(18.7432 1.91491 -2.58191e-18)
(19.9715 -0.96583 -5.75176e-18)
(18.6703 -0.793858 -1.32541e-18)
(19.8474 0.00772594 6.01761e-17)
(20.4286 0.704597 0)
(20.5414 -0.160172 1.19119e-16)
(19.2278 -0.91276 2.58479e-19)
(20 0.035733 -8.02536e-17)
(20.0562 -0.304033 0)
(21.4976 -0.834905 0)
(22.0101 -0.376239 -3.65812e-18)
(18.8665 2.24367 1.04741e-19)
(19.4382 -0.731923 4.11282e-17)
(20.2264 -1.16957 0)
(22.2236 -0.383754 2.18503e-18)
(19.0426 0.596517 1.07077e-17)
(18.9278 0.496924 -1.95191e-18)
(20.2212 -0.275422 -5.82592e-18)
(19.2662 -1.13246 -2.42167e-18)
(19.6995 -1.01107 2.50717e-18)
(20.5353 2.51309 0)
(23.5853 1.0768 1.51821e-20)
(21.524 -0.150847 1.29147e-16)
(18.9435 -0.448711 1.38007e-17)
(19.6682 -1.04055 1.37791e-18)
(18.4198 -0.963477 6.83714e-19)
(20.2157 -1.05757 -1.44126e-18)
(19.7415 -0.799492 2.87271e-18)
(20.3702 1.84084 1.33908e-18)
(19.8914 -0.890352 0)
(20.1972 0.295353 0)
(21.5089 -0.754942 -1.5794e-18)
(21.6619 -0.975229 -1.13165e-18)
(20.8782 -0.925983 -6.992e-18)
(19.9236 0.00643154 -3.62676e-16)
(20.1644 1.32143 -4.70126e-19)
(17.7713 1.45366 6.04969e-18)
(20.291 0.0450641 -3.63557e-17)
(20.0007 0.00145523 8.01879e-18)
(20.0338 -0.146053 -5.38826e-17)
(19.3925 -1.21951 -1.12242e-18)
(19.4695 0.417724 -3.62758e-17)
(18.0521 -0.964718 -1.2943e-18)
(20.0308 0.0568276 0)
(16.0944 0.167383 0)
(20.4591 -0.695481 0)
(20.0113 0.263895 4.75486e-17)
(19.7857 2.51814 1.13436e-18)
(19.1562 -1.05039 2.17392e-18)
(20.0634 -1.18666 3.7738e-18)
(20.0981 -0.0720864 1.19751e-16)
(19.0512 -0.965271 0)
(19.939 -0.215832 9.79365e-17)
(19.5081 -1.11374 -1.10252e-17)
(20.1619 0.564725 2.59365e-17)
(19.56 -0.731005 -1.89459e-17)
(19.1535 -0.451157 0)
(19.441 -1.05924 8.94857e-18)
(19.8189 1.05456 2.22215e-17)
(18.6083 -1.01512 0)
(19.9613 -1.04592 7.34245e-19)
(23.4501 0.452499 -3.52378e-20)
(18.386 -0.968421 0)
(18.3022 2.21643 -5.62604e-19)
(20.0567 0.257299 -2.62393e-16)
(19.9202 -1.21131 0)
(15.4217 -0.9028 2.62654e-18)
(20.0184 -0.0412606 -2.73991e-16)
(19.2044 -0.641506 -1.70086e-17)
(20.1365 0.754891 -1.65795e-17)
(19.915 -0.103822 1.7603e-16)
(18.6199 -0.653003 -1.86182e-17)
(19.9909 -0.308837 -6.65629e-17)
(20.4226 0.0029975 0)
(22.0425 -0.742493 -1.98968e-19)
(20.2178 -0.880004 0)
(19.8816 -0.280035 7.36945e-17)
(19.1679 -1.00103 -2.17033e-18)
(20.1715 -0.333761 0)
(20.0563 -0.0114636 0)
(20.5435 0.148728 -2.08547e-19)
(18.3642 -0.52603 0)
(17.8101 -0.980098 1.42965e-18)
(19.7966 -0.496022 6.98822e-17)
(20.0513 0.0442986 -1.94968e-16)
(19.8708 -0.317548 3.21884e-16)
(20.2861 -0.852848 -2.5949e-18)
(20.0179 0.0596592 1.05074e-16)
(19.9221 -0.20129 -1.30761e-16)
(20.2758 -0.888685 -2.4587e-18)
(21.1481 -0.143402 -1.72185e-16)
(21.3146 2.31915 -3.37045e-19)
(18.908 0.288975 1.63308e-17)
(20.713 0.175693 1.14128e-16)
(19.8355 -0.274527 -7.61718e-17)
(19.981 -0.234833 -3.79843e-16)
(19.4693 -1.17721 -6.35889e-18)
(19.6054 -0.422006 -3.65747e-17)
(19.9095 -0.222816 -3.73347e-17)
(20.0484 -0.545779 -1.4218e-16)
(20.6643 -0.118484 8.21895e-18)
(19.7019 -0.346698 0)
(19.1091 0.972073 0)
(19.0018 0.958432 9.34386e-19)
(19.9577 0.121223 0)
(18.6458 1.03417 -4.99262e-18)
(14.803 -0.818722 -3.56018e-19)
(19.7603 -0.992388 1.3677e-18)
(20.4607 2.38386 -1.49107e-19)
(20.8215 -0.869163 0)
(20.7568 -0.536938 -1.44079e-18)
(20.1174 -0.825908 6.41182e-18)
(20.1071 -1.18984 -2.23593e-18)
(19.9084 -0.0620889 -1.30759e-16)
(19.4663 -1.08741 2.98645e-18)
(20.7342 -1.16144 -2.06465e-18)
(19.6546 0.0725977 5.33869e-17)
(20.3307 -0.438427 2.92929e-17)
(20.5642 -1.01656 6.7303e-18)
(18.5155 -1.03356 -5.18491e-18)
(19.7255 0.7658 -4.12148e-17)
(21.2861 1.6628 0)
(19.0925 -1.19871 -5.40378e-18)
(19.3807 -1.04157 3.56677e-18)
(18.1544 1.46317 8.72144e-19)
(20.2949 -0.279701 -7.49608e-18)
(20.239 -0.800247 4.1928e-18)
(22.2642 0.469953 4.47846e-19)
(19.385 1.88718 -1.55475e-19)
(22.5751 0.147969 -5.17141e-19)
(19.6812 -1.20687 -2.16041e-18)
(19.5898 0.531596 -2.04835e-17)
(22.1596 -0.115874 -3.51996e-18)
(19.3579 2.59817 -8.20102e-19)
(19.9382 -0.00283032 -8.2634e-19)
(19.8743 -0.263772 2.00181e-16)
(18.6336 -1.11543 7.20451e-18)
(19.5633 -1.20175 5.57424e-18)
(22.0992 1.00686 1.13886e-18)
(19.9777 -0.624379 0)
(17.636 1.51452 -7.75446e-18)
(20.0297 0.0156028 -3.43346e-16)
(19.9817 -0.42783 -4.27758e-17)
(20.684 -1.12432 -2.7977e-18)
(18.9984 1.32399 -7.65792e-18)
(19.2377 0.023521 1.42141e-17)
(20.1163 -0.158845 0)
(19.6785 -0.543515 -2.54441e-17)
(18.334 1.43186 -3.39482e-18)
(18.6123 -0.493843 8.21721e-18)
(18.1834 -0.328798 -4.9838e-18)
(20.4924 -0.455573 1.74328e-17)
(21.4336 0.913267 -3.15567e-18)
(20.1824 -0.877136 -1.49776e-17)
(19.0557 0.345994 -1.22422e-17)
(20.3227 -1.1296 -4.24876e-18)
(18.5879 -0.950997 -1.93085e-18)
(20.0837 -0.946228 -2.24773e-18)
(19.9874 0.0127988 1.86745e-17)
(19.0467 -0.258592 9.84537e-18)
(20.3367 -0.282443 1.07468e-17)
(21.5157 0.045295 1.31139e-16)
(21.8548 1.36656 -2.58589e-18)
(20.4389 -1.10177 2.00019e-18)
(23.2189 0.0223754 2.37901e-19)
(20.1127 0.114784 2.0573e-16)
(19.6733 -1.10949 3.27044e-18)
(18.3841 -0.435931 2.89484e-17)
(15.5119 0.211541 0)
(21.3535 0.770654 6.02418e-18)
(20.053 -1.07748 2.59307e-18)
(19.7662 -1.25127 0)
(20.1592 -1.05555 0)
(19.9938 0.754726 -1.70511e-17)
(19.5631 -1.04123 1.62419e-17)
(18.1121 -0.665533 7.80893e-18)
(19.8259 -0.220751 5.79135e-17)
(14.5559 -0.647938 0)
(19.4923 -0.316263 -1.24878e-17)
(20.9708 -0.870625 4.54914e-18)
(22.3308 -0.277446 -1.13611e-16)
(22.2349 -0.611393 1.56697e-19)
(18.1107 -0.586548 -1.13143e-17)
(18.9116 2.33322 0)
(19.9705 -0.451613 4.06334e-17)
(19.9886 0.0794429 -3.55225e-17)
(19.7898 -0.814781 3.76416e-18)
(20.5171 -1.08823 -1.73815e-18)
(21.2336 2.48569 4.17823e-19)
(20.0343 -0.27486 -4.03293e-18)
(21.2696 1.13116 -1.6754e-18)
(20.2025 -0.553202 9.71601e-18)
(15.4958 -0.651781 0)
(21.5616 0.965443 3.86511e-20)
(21.4715 -0.553292 0)
(20.5081 0.0401662 3.05993e-17)
(20.2193 0.379669 -2.07732e-17)
(20.3661 -0.381813 3.49221e-17)
(19.5347 -1.20507 -1.09114e-20)
(22.1271 2.50036 -1.86254e-19)
(19.8691 0.127315 -3.15412e-17)
(19.8531 0.890885 2.48371e-17)
(20.2028 2.88667 -9.21681e-20)
(20.1148 -0.295771 -2.78662e-17)
(20.0513 0.0637939 -1.1634e-16)
(20.5601 -0.898356 8.665e-18)
(20.0193 0.0103695 7.28125e-19)
(21.6718 1.81764 -1.79706e-18)
(19.7688 -0.973454 0)
(17.929 0.407905 5.72004e-20)
(18.1919 -0.615678 -1.14722e-17)
(20.2031 -0.390742 0)
(20.6404 1.01948 9.23243e-18)
(17.7774 -0.973101 -8.23402e-19)
(18.7459 -0.701025 0)
(20.3927 0.186551 2.29403e-17)
(19.6977 -0.381186 -1.68569e-17)
(20.9144 2.30473 3.26974e-19)
(18.6975 -0.982638 -1.33365e-18)
(21.0281 -1.00058 0)
(21.4431 -0.852686 -4.80471e-19)
(21.7602 0.4114 1.71609e-17)
(19.5945 -0.506225 1.49884e-17)
(21.2868 -1.00073 0)
(22.6104 -0.56842 -2.30819e-19)
(20.6078 0.00414885 -1.30188e-17)
(21.7939 -0.00931278 -2.21033e-16)
(18.6025 2.10317 1.46846e-18)
(20.1638 -0.900488 1.82289e-20)
(20.1293 -0.94949 -3.05482e-18)
(20.401 -1.13843 -2.58422e-18)
(20.0168 0.0332475 1.03055e-16)
(13.2255 -0.486556 0)
(21.02 -1.06622 2.33847e-18)
(21.9599 -0.726189 -1.30977e-19)
(22.84 -0.400163 0)
(20.0602 -1.03138 3.83813e-18)
(19.0885 2.54912 0)
(20.0259 -0.0420928 5.62429e-17)
(22.4251 0.0274063 -4.60905e-20)
(18.3761 -0.0110444 3.71662e-17)
(20.2932 -0.683906 0)
(20.8054 -0.229879 1.41592e-17)
(20.2587 -0.879607 -7.74959e-19)
(19.9209 0.670048 -2.63156e-17)
(20.6044 -1.03934 -6.42627e-18)
(20.5278 -0.476959 -1.85865e-17)
(20.3323 -0.309291 -4.72538e-17)
(19.2013 -0.898659 -1.61211e-17)
(20.9659 0.235206 8.61988e-18)
(20.5437 0.422936 8.14392e-18)
(19.8675 -0.0585003 3.87843e-17)
(18.9819 0.355519 -1.2601e-17)
(18.3607 -0.870114 -4.82141e-18)
(19.4917 0.0910548 -3.77295e-17)
(19.5848 0.0738648 -2.99227e-17)
(20.6747 -0.63519 3.38939e-18)
(19.0562 -1.09054 5.71237e-18)
(18.7825 -0.916621 6.71643e-18)
(19.7176 0.179334 -2.90318e-17)
(18.8787 -1.0629 -1.76251e-18)
(21.8244 0.224044 -2.36475e-18)
(20.5043 -0.0724203 0)
(19.2145 -1.14471 8.90081e-19)
(18.5326 -0.990413 -3.73658e-19)
(19.421 -1.15342 -5.40171e-18)
(19.1157 -1.02593 0)
(21.3333 -0.35728 4.49572e-18)
(21.0338 -0.880382 1.10091e-18)
(20.1457 -0.55675 2.61499e-17)
(18.5111 2.20878 -2.75773e-19)
(20.3243 -1.15789 9.44956e-19)
(19.5423 -0.515403 0)
(19.941 -0.877594 0)
(16.7457 -0.936629 1.04953e-18)
(20.0412 -1.16176 0)
(19.8958 -1.22448 -1.59658e-18)
(18.2354 -0.469751 2.84444e-18)
(20.1972 -0.587821 -3.35957e-16)
(19.2437 0.170106 -2.72702e-17)
(19.4928 1.99734 4.71629e-18)
(19.0458 1.51413 4.31859e-18)
(20.4954 2.78741 0)
(22.9122 2.51089 0)
(19.8623 0.268046 1.40924e-16)
(20.1514 0.904895 3.9526e-17)
(20.416 -0.735342 -4.71276e-18)
(19.6072 0.0336589 -4.64591e-17)
(21.8308 -0.458324 7.32106e-18)
(21.3518 1.03129 3.13257e-18)
(19.7143 -0.799933 0)
(18.4574 -0.956317 -7.59549e-18)
(20.3552 -0.415543 0)
(19.8645 -0.849011 3.18306e-18)
(20.0181 0.0284911 -2.60863e-16)
(19.6257 -1.09406 0)
(18.0401 -0.721085 -3.39849e-18)
(22.6361 -0.0826908 -1.7388e-19)
(20.3069 -0.749045 4.42284e-19)
(20.9577 -0.162162 2.76582e-18)
(20.0751 -1.1087 0)
(17.898 1.36089 3.50368e-18)
(18.6736 1.39169 4.26778e-18)
(20.2861 -0.902841 3.42227e-21)
(19.9919 0.00275704 0)
(19.4315 -1.16409 4.33804e-19)
(15.0468 -0.205944 -2.70346e-16)
(19.909 -0.0763651 -1.1085e-16)
(21.0108 -0.93665 -5.32691e-18)
(20.6302 0.658274 -2.95628e-17)
(20.6956 -0.0125515 -1.67224e-17)
(18.9252 -0.124793 -9.57682e-18)
(21.4248 0.0597014 -8.4462e-17)
(20.069 -0.0994846 2.53109e-16)
(18.7943 -0.777132 2.37032e-18)
(21.1792 -0.987159 3.3712e-18)
(17.6661 -0.754568 -5.80109e-17)
(17.6463 -0.932714 -5.7983e-18)
(19.9471 -0.106077 0)
(20.1527 -0.782753 4.85379e-18)
(19.946 -0.941268 0)
(19.4776 -1.19804 -4.311e-18)
(20.182 -0.0615747 -1.42481e-16)
(20 0.0306035 2.31028e-16)
(22.5362 -0.0129657 -4.54457e-19)
(19.3447 -0.36973 1.18736e-17)
(17.531 0.548109 4.16558e-18)
(20.0109 0.450681 9.08903e-17)
(17.9712 0.96749 -1.35288e-20)
(19.9822 -0.264598 -1.52676e-16)
(20.013 -0.318888 -9.81076e-17)
(23.0559 1.17279 2.05373e-20)
(17.6986 0.424595 -3.67753e-18)
(19.3201 0.684311 1.59421e-17)
(20.2815 2.06938 0)
(19.6766 -1.16004 0)
(20.1481 0.0418855 0)
(19.1836 -1.04777 1.87047e-18)
(19.5641 -0.901268 8.01796e-18)
(19.364 -1.02301 0)
(20.5269 -0.240533 1.90741e-18)
(17.6045 1.72153 -5.21186e-19)
(20.1483 -0.904017 0)
(20.7528 0.129951 7.42182e-18)
(19.6727 -0.3099 8.79723e-17)
(20.0891 -0.58616 8.71131e-17)
(19.9364 -0.4304 -3.20381e-17)
(20.7197 -0.0739992 -2.57797e-17)
(18.7504 -0.80891 -2.72499e-18)
(18.9352 -1.0089 -3.38585e-18)
(21.0179 -1.13358 4.77498e-19)
(19.2534 1.82817 2.05445e-18)
(19.6093 -0.357105 -3.57203e-17)
(20.0083 0.0237862 1.92001e-16)
(20.095 -1.05714 -1.28688e-18)
(20.2354 -0.101846 4.59766e-17)
(19.6101 -0.234543 -1.85732e-17)
(20.1349 0.470711 7.08673e-20)
(19.6488 -1.12387 0)
(20.4983 -0.907846 -1.6482e-18)
(19.1476 -1.1896 -1.31068e-18)
(19.7307 1.1756 -3.40977e-17)
(20.0419 0.0470384 1.01289e-16)
(21.2756 -0.295398 5.01951e-17)
(21.6231 -0.940655 5.87495e-19)
(20.5373 0.341805 -7.7611e-18)
(20.0254 0.0378243 -2.23786e-16)
(22.6748 0.0786899 1.84876e-19)
(20.1419 -0.0287697 -1.21803e-18)
(20.1028 -0.560796 5.84923e-18)
(19.3656 -0.503656 1.23183e-17)
(20.2235 0.0705576 1.81994e-17)
(20.1373 -0.0472142 2.54748e-16)
(21.2602 -0.880279 1.42394e-18)
(19.1899 2.08801 1.30759e-18)
(19.4518 -1.03213 5.42317e-18)
(20.6508 0.239253 7.17242e-18)
(20.0059 0.241174 5.52605e-17)
(20.28 -0.921474 3.01537e-18)
(19.5884 -0.606309 1.81464e-17)
(20.3089 -0.480365 0)
(19.881 0.0189136 0)
(19.969 0.018126 -1.5299e-16)
(20.7102 0.586447 3.77294e-17)
(20.0579 0.164299 -2.66255e-16)
(20.2639 -0.647815 1.25191e-17)
(19.3113 -1.18242 -4.59637e-19)
(18.0812 1.68644 3.87057e-18)
(20.0495 -0.0446746 -3.67132e-16)
(19.9578 -0.037309 1.12691e-16)
(17.5638 -0.247363 -1.08973e-20)
(20.9683 -0.306916 0)
(20.4248 -0.252981 -4.44891e-17)
(20.5511 0.0100974 1.28627e-17)
(18.3332 0.168366 -2.62408e-18)
(20.02 -0.285719 -3.14089e-16)
(19.8637 -0.628005 5.85371e-19)
(20.2961 -0.523495 0)
(20.8459 0.245527 -7.26058e-18)
(20.1238 -0.0869451 -6.19161e-17)
(20.0935 -0.85649 1.54028e-18)
(19.6954 -1.14251 -3.1878e-18)
(19.4816 -0.149443 -1.90148e-17)
(20.2171 -0.0997608 5.08132e-20)
(22.0949 0.834205 1.29231e-18)
(20.1327 -0.0645865 1.3996e-16)
(19.5431 -0.376866 2.72378e-17)
(22.1341 1.72853 -6.37131e-19)
(21.1332 -0.828613 -3.70401e-18)
(21.8357 0.336579 -2.4616e-18)
(18.9812 -0.939626 3.33607e-18)
(21.8229 0.090476 6.79186e-16)
(20.1821 -0.00932532 -6.20939e-17)
(19.2671 0.381262 -1.42881e-17)
(20.3467 -0.675438 -7.87172e-18)
(22.8593 0.900244 7.01803e-20)
(19.5437 -0.0502294 4.13231e-17)
(20.2681 -0.49617 -3.33431e-17)
(15.0103 -0.568394 -1.45828e-16)
(19.7844 -0.874021 -3.08021e-18)
(19.4741 -1.1653 -1.64548e-18)
(21.1587 -0.909635 -3.59722e-18)
(18.9426 -1.00942 6.40657e-18)
(19.51 0.49641 1.9019e-17)
(20.5383 -0.584749 -1.38396e-17)
(20.4789 -0.367985 1.69568e-19)
(17.6741 -0.565789 3.06277e-18)
(19.9184 -0.106504 6.90049e-17)
(21.6135 0.818788 -3.90894e-18)
(19.5025 -0.377139 -7.59111e-18)
(21.5533 0.250974 -3.42439e-16)
(20.0225 -0.130162 -2.20404e-16)
(18.2871 2.0799 9.89145e-19)
(19.799 -0.360431 1.80049e-18)
(19.9888 0.400374 -1.17939e-16)
(18.2137 -0.986077 2.33941e-19)
(20.0251 0.0138672 3.78931e-16)
(20.2198 0.0488773 0)
(18.7527 2.24091 -2.58559e-19)
(22.7756 -0.105722 -1.7514e-19)
(19.0988 0.434883 9.41976e-18)
(20.793 -0.186141 1.79124e-17)
(20.2928 -0.893599 3.33666e-18)
(20.026 0.101013 8.63296e-17)
(20.4429 -1.12851 -4.28085e-18)
(17.0785 0.344227 -7.41445e-19)
(18.8977 -0.811398 0)
(19.2553 -0.511301 2.17334e-17)
(22.9495 -0.922803 3.83112e-17)
(20.0695 0.0397569 0)
(19.3928 -0.0115362 -2.47356e-17)
(19.9588 0.177512 7.20613e-18)
(19.9742 0.0744141 -2.61476e-16)
(20.6432 -1.03637 5.82267e-18)
(19.3207 2.74207 -1.33644e-18)
(19.5989 -0.477139 3.8889e-17)
(19.8861 0.0261217 9.19102e-17)
(20.2022 -0.330592 2.3065e-17)
(19.8291 -1.11062 4.07357e-18)
(19.8999 -1.09952 0)
(19.7867 -0.948125 1.78118e-18)
(19.8795 -0.271127 -1.90169e-16)
(21.6954 0.24728 -2.87392e-16)
(19.7127 -1.19129 4.23671e-18)
(17.6894 0.967695 -6.79656e-18)
(20.9882 0.0437386 -5.41291e-18)
(19.9995 0.0190602 4.30987e-16)
(20.6955 0.339674 -2.96233e-17)
(18.8965 -0.900066 0)
(18.2708 -0.781145 -6.14813e-18)
(20.0452 -0.11317 -2.17589e-16)
(19.909 0.273832 0)
(20.1773 -1.1924 -1.90997e-19)
(16.8015 -0.904002 8.99726e-18)
(19.9036 -0.672294 -1.35204e-17)
(20.1751 -0.0422408 5.18652e-17)
(19.9343 -0.946421 -2.77272e-18)
(18.9759 -1.20103 0)
(18.4942 -0.477693 2.06444e-17)
(20.4711 -1.17842 5.51417e-19)
(20.0649 0.0643867 2.56342e-16)
(19.6265 2.86747 1.26778e-20)
(18.446 0.765134 4.68464e-18)
(19.1006 -1.21998 -1.43761e-18)
(22.1123 -0.396499 2.85363e-19)
(19.6039 -0.921607 -2.19341e-18)
(19.9205 -0.137961 -2.87459e-16)
(19.9065 -1.0043 1.44209e-17)
(20.1939 0.252362 -1.0877e-16)
(19.8273 -0.0833526 -2.74706e-19)
(19.0623 0.0870775 1.02051e-17)
(18.0926 -0.681775 -5.92616e-17)
(20.257 -0.772701 -5.16046e-18)
(20.1009 0.0121947 1.80327e-16)
(19.9697 -1.0407 1.61817e-18)
(20.278 -0.922365 2.23168e-19)
(18.5202 1.54853 -2.31168e-20)
(20.3357 -0.966484 -1.8454e-18)
(21.1421 -0.687008 0)
(18.2966 -0.551116 5.44381e-18)
(20.3701 -0.650072 -8.82341e-18)
(20.0033 0.0526191 0)
(15.8679 -0.92887 3.11401e-19)
(22.7597 -0.455185 2.70537e-19)
(22.8987 2.07157 -2.36331e-19)
(19.7364 -1.25579 0)
(19.2575 -0.760253 -2.03239e-17)
(16.132 0.476663 0)
(19.3598 2.02987 4.17884e-18)
(21.6315 -0.244993 -4.5492e-18)
(19.9408 0.183975 1.71929e-16)
(23.3525 0.191499 -7.3379e-20)
(18.7454 -1.13805 -2.58457e-18)
(19.1417 -1.17939 -4.18283e-19)
(20.1622 -0.023566 -1.90501e-16)
(20.175 0.381513 4.20397e-17)
(19.6405 -0.324176 3.3689e-17)
(19.8642 -1.23426 -2.65398e-18)
(17.7386 -0.709845 0)
(20.2032 -0.915318 2.41075e-19)
(17.2954 -0.563336 -2.57305e-20)
(19.7775 -0.525655 2.22837e-19)
(20.8021 -1.15259 -7.01086e-19)
(18.7113 -1.02327 -1.09225e-18)
(19.747 -0.311554 6.456e-17)
(19.2113 -1.23221 2.64434e-18)
(19.3909 -0.389332 0)
(19.6822 -0.457982 0)
(17.6266 -0.448594 -5.47245e-18)
(19.4764 -1.08965 4.63698e-18)
(18.1873 2.16901 -4.88487e-19)
(20.564 -0.554829 1.15082e-17)
(18.6639 -0.889883 1.55446e-17)
(20.1032 -0.256793 5.87669e-17)
(20.253 -1.0933 -5.64093e-19)
(19.9852 -1.18092 -2.67427e-18)
(20.7537 2.41615 -3.20579e-18)
(20.0204 -1.10319 -2.32351e-18)
(18.8637 0.35265 -1.48129e-17)
(20.0208 0.0992891 -9.62309e-17)
(20.9109 -1.11579 -3.42606e-18)
(19.1977 -1.18274 0)
(19.8132 -0.321094 2.26122e-16)
(17.82 -0.76126 -1.47456e-18)
(20.0885 0.39564 -2.43215e-17)
(19.985 0.315876 1.34989e-16)
(19.7414 -0.88222 1.91405e-18)
(17.8585 -0.351542 -9.80843e-19)
(22.8126 0.0703635 5.75885e-19)
(19.4984 0.00449408 -6.25487e-18)
(19.9195 -0.341916 -6.1152e-17)
(20.1368 0.389197 4.72744e-17)
(18.9897 -0.718528 0)
(20.4573 -0.965773 1.19296e-18)
(19.1854 1.29522 8.64686e-18)
(20.0773 0.163852 8.57083e-17)
(20.5577 -0.617069 0)
(21.0974 -1.08605 -1.55495e-18)
(21.5433 -0.649165 -8.50477e-19)
(18.9203 -1.10476 2.4202e-20)
(20.1307 0.0602336 -1.01612e-17)
(21.142 -0.760015 0)
(21.3846 -0.700591 -1.02573e-17)
(18.5369 -0.569953 4.56866e-17)
(22.9515 0.151299 -2.32936e-19)
(19.5193 0.0373367 -5.4208e-17)
(19.9377 -0.114727 2.2903e-17)
(19.4124 -1.20696 -4.51146e-18)
(20.4191 -0.996953 0)
(19.4919 -0.565947 0)
(19.9113 -0.431122 0)
(18.346 -1.01693 -1.78187e-18)
(20.0563 0.189147 8.9592e-17)
(19.9147 -0.0168035 -1.02907e-16)
(19.3685 -0.896328 6.34338e-18)
(20.2023 -1.06883 -4.35228e-18)
(20.0011 0.0468095 0)
(19.8115 -0.851142 0)
(19.0944 0.0238045 -1.72765e-17)
(19.9045 -0.994044 -1.4622e-18)
(21.8368 -0.0655061 -1.80272e-18)
(19.7263 -1.16986 1.66587e-18)
(19.0277 -1.13179 -2.17573e-20)
(21.5788 -1.00179 8.14154e-20)
(18.1152 -0.861568 -2.51833e-18)
(20.1205 -0.636452 7.8077e-22)
(19.8898 -0.237483 -1.26411e-16)
(20.4924 -0.190886 0)
(18.14 0.138081 4.6962e-18)
(20.3156 -0.695238 2.05565e-17)
(20.1927 -0.914013 7.11008e-18)
(21.4282 -0.0365036 1.38758e-16)
(20.1502 2.79216 0)
(20.2639 0.0231502 -7.51328e-17)
(22.4418 0.0167125 0)
(20.0996 -0.91106 -6.85569e-18)
(19.3683 -1.21835 -5.98449e-19)
(22.3501 -0.277994 -2.15901e-16)
(20.8627 -1.10718 9.62148e-19)
(19.771 -1.17501 -5.48376e-18)
(20.6015 -0.17041 -4.53702e-16)
(20.0838 -0.991363 2.32774e-18)
(18.2345 1.36099 -2.99591e-20)
(20.4405 -0.722812 3.45941e-18)
(22.3266 -0.342088 5.82114e-19)
(19.7671 -0.47712 -3.53494e-17)
(23.2711 0.525576 -2.56816e-19)
(20.2708 -0.0201561 2.57175e-16)
(20.7187 0.921004 -2.49807e-17)
(18.9959 0.059067 3.63418e-17)
(20.7504 -1.15455 1.07815e-18)
(19.2077 -0.959448 1.79487e-17)
(18.9411 -0.765 7.72027e-18)
(19.106 -0.90394 -2.51458e-17)
(18.8031 -1.05727 0)
(19.1806 -1.22748 0)
(22.3385 1.3897 0)
(18.2369 -0.841512 5.63389e-18)
(20.458 -1.18627 -1.22708e-18)
(19.3105 -1.14289 3.08767e-18)
(19.8698 -1.18528 0)
(18.0704 0.916077 1.81128e-18)
(18.4392 1.02347 5.05454e-18)
(20.2716 0.148545 -1.13535e-16)
(18.9622 -1.17196 -1.47494e-18)
(20.0406 -0.278012 0)
(20.4337 0.302251 1.14856e-18)
(19.9979 0.0182065 -1.60048e-16)
(20.4556 -0.346109 1.55362e-17)
(19.8916 -0.20978 3.18771e-17)
(21.0223 2.26632 -4.19428e-19)
(19.9596 0.0364161 9.49472e-17)
(19.8764 2.70568 -3.43009e-19)
(19.4333 0.00124823 2.16973e-17)
(21.1696 -0.560588 1.26426e-18)
(19.5626 -1.14709 -6.51265e-19)
(17.5282 0.730502 4.47283e-18)
(21.1967 -0.752644 3.38215e-18)
(22.46 1.57186 1.97536e-19)
(20.4958 -1.18374 -5.70188e-19)
(20.4285 -0.328327 4.66789e-17)
(19.9042 -0.0241183 -1.86431e-16)
(19.6307 -0.60425 2.16487e-18)
(20.0064 -0.087051 9.30667e-17)
(19.4749 0.0213681 -1.94562e-17)
(18.9205 -1.15555 1.35993e-18)
(19.6705 -0.0380588 9.30834e-17)
(21.299 0.391578 4.63493e-18)
(21.6372 -0.660361 0)
(19.9952 0.0677098 0)
(19.5164 2.82885 1.0617e-19)
(20.1963 -0.900413 1.38199e-18)
(19.8461 -0.208046 -2.84778e-17)
(19.9664 -0.281315 0)
(20.9061 1.34184 -7.96801e-18)
(19.9133 1.30535 -1.27919e-17)
(19.6109 0.899693 -1.35836e-17)
(19.6844 -0.501842 0)
(19.1578 2.6205 -4.82726e-19)
(18.4773 1.40052 0)
(22.3387 -0.44405 -9.10375e-19)
(21.4208 -0.464595 -7.51599e-18)
(20.0575 0.104547 0)
(20.266 -0.878987 3.10703e-18)
(19.9628 -0.336808 1.11489e-16)
(14.1602 -0.761595 3.64678e-19)
(18.0284 0.105688 -5.2423e-18)
(19.5733 2.52364 1.20556e-18)
(19.8577 -0.13426 -8.89799e-17)
(19.1044 1.09609 -5.43558e-18)
(20.5976 -0.291862 -2.15078e-17)
(22.4475 0.353254 -7.16113e-19)
(20.735 -1.07247 3.15528e-18)
(20.011 -0.332017 0)
(20.4462 -0.130021 0)
(19.5439 -0.153306 1.0291e-17)
(20.5365 0.93821 0)
(20.4997 -1.18228 -2.53161e-18)
(19.2911 0.319166 -2.89509e-17)
(19.1019 -0.684966 4.03015e-20)
(21.6019 -0.875468 -4.6117e-18)
(19.1314 -1.22343 2.59987e-18)
(19.2303 2.69721 -3.68852e-19)
(19.8593 -1.02633 0)
(18.9802 -0.807825 -7.593e-18)
(17.1227 -0.912852 3.39342e-18)
(19.6706 -1.02338 -1.24801e-21)
(20.1245 -1.19471 6.61032e-18)
(20.1062 -0.876887 -4.70009e-18)
(18.5484 0.894857 -9.67834e-18)
(21.3535 -0.456658 -5.52167e-18)
(19.2094 -0.794504 -2.46511e-17)
(19.2432 -1.01342 1.78981e-20)
(18.6214 -1.08207 -4.56201e-18)
(20.2725 -0.928235 -5.29496e-19)
(20.2875 -0.17316 -1.1305e-19)
(23.2267 0.216233 -1.7725e-19)
(18.9777 -0.730541 1.45045e-18)
(18.551 -1.00215 -4.06314e-19)
(18.4855 -0.807581 -3.1283e-18)
(19.7964 0.0248039 -2.74697e-16)
(17.9748 1.50455 0)
(18.4077 2.23466 -2.83611e-19)
(19.8527 -1.20764 9.21138e-18)
(19.8189 -0.28383 2.03903e-16)
(19.9993 -1.0979 0)
(19.6191 -0.275115 -6.85817e-17)
(20.0112 -0.236492 -2.27561e-16)
(16.327 -0.925197 -1.27761e-18)
(19.2348 -1.10858 8.8413e-18)
(19.8763 -0.836033 0)
(19.5504 0.0493915 6.50357e-17)
(19.6942 0.143947 1.31576e-16)
(20.3638 -1.0007 -3.67347e-18)
(19.2242 -0.834309 -6.14946e-18)
(20.0402 -0.0449583 -3.78649e-16)
(19.6822 -1.06466 -1.52537e-18)
(19.6013 -0.746437 9.46541e-18)
(20.7863 -0.908769 4.74444e-18)
(20.4262 2.71636 -3.32195e-19)
(19.6202 -0.170696 3.31818e-17)
(20.1125 -0.911571 -2.6301e-21)
(20.0539 0.289652 1.32964e-16)
(16.4607 -0.525738 -4.12934e-18)
(19.6983 -1.22345 0)
(20.7841 0.44137 -1.95025e-17)
(19.0884 0.485518 1.14632e-17)
(19.3908 -0.173686 -1.08318e-17)
(19.8897 0.068655 -6.57852e-17)
(19.5332 0.392067 -3.31131e-17)
(21.2373 -0.972707 1.00278e-18)
(20.2253 -0.290061 0)
(19.9772 -0.106533 0)
(20.1458 -0.145482 -4.44009e-17)
(19.7743 -0.796954 -9.36993e-18)
(20.7606 2.59714 -9.89766e-20)
(19.5267 0.0919734 -4.65369e-16)
(19.5696 0.24404 0)
(20.4682 0.343898 0)
(16.9352 1.6594 2.8069e-18)
(17.2171 1.61741 2.51243e-18)
(20.1946 -0.10521 5.34138e-17)
(20.011 0.0595062 0)
(20.0856 -0.344609 -1.40637e-16)
(20.1215 -0.0733737 7.0999e-17)
(20.0183 0.043876 -5.47799e-16)
(19.9553 -0.665395 0)
(18.537 -0.495151 1.34134e-17)
(19.9532 0.0982168 1.67819e-16)
(20.1432 1.7157 0)
(17.8837 1.17549 0)
(20.1085 -0.0448741 -2.41782e-16)
(20.6869 0.103984 -1.43731e-17)
(19.9853 0.0587184 1.34256e-16)
(19.2298 2.40113 1.39646e-18)
(20.8384 -0.763678 0)
(17.9531 0.220498 -2.56186e-18)
(20.6221 -0.6071 -3.52154e-18)
(18.9792 -1.0204 -6.57653e-18)
(19.8809 -0.0781303 -7.14091e-17)
(19.1524 2.47164 0)
(20.1159 0.0277637 -6.14197e-17)
(20.1171 -0.376244 -1.45795e-16)
(20.7092 -0.897219 -2.82507e-18)
(20.2556 -0.92793 2.60693e-19)
(19.1335 0.568459 2.02631e-17)
(19.3293 0.0807601 0)
(20.1692 -1.15152 2.35093e-18)
(20.9883 -0.0359641 3.83904e-18)
(19.776 0.68241 2.51969e-17)
(20.0024 -0.299281 -1.47505e-16)
(20.2142 0.0940451 -1.0573e-16)
(21.3536 -0.539912 0)
(14.4209 -0.783341 5.519e-19)
(20.0319 -0.029601 0)
(22.9373 0.392006 -8.17584e-21)
(20.8616 -1.12928 -1.92208e-18)
(20.0422 0.0180157 3.45327e-17)
(19.7375 -0.0418654 -2.87911e-17)
(20.9601 -1.11757 -1.88343e-18)
(20.6986 -0.99731 -2.65043e-18)
(22.4105 -0.145144 1.68422e-16)
(20.8809 -0.197465 2.32034e-16)
(18.7619 -0.426894 5.53652e-18)
(18.9642 -1.13417 1.8452e-20)
(20.0061 -0.949321 0)
(18.9867 -0.050243 0)
(20.1231 -0.477731 -2.78761e-17)
(19.7294 -1.19637 7.52823e-19)
(19.0175 -1.14461 4.68527e-18)
(18.4864 -0.336772 6.2174e-19)
(20.2531 -0.898169 -1.76779e-18)
(20.1306 0.123755 8.22099e-17)
(21.0304 0.314977 -8.28621e-18)
(19.8439 -0.712079 -4.44425e-18)
(20.8145 -0.815 -1.56913e-19)
(20.3355 -0.884964 -3.44969e-18)
(21.7651 0.89103 7.30323e-19)
(19.9361 0.136031 0)
(18.3017 -0.965082 -4.2174e-18)
(19.7822 -1.15543 6.12433e-18)
(19.9104 1.00436 5.21617e-19)
(20.01 -0.0171465 -9.95893e-18)
(22.8492 1.14547 0)
(14.2622 0.273383 -4.29334e-18)
(18.3698 -0.52156 -8.4481e-20)
(21.0062 -1.10131 6.26245e-18)
(22.5704 1.36238 -2.1222e-19)
(17.2282 0.438168 0)
(19.8611 -0.686925 0)
(20.1818 0.228828 1.70369e-16)
(20.2804 -1.00512 -4.47657e-18)
(20.6656 -0.0642095 1.18446e-18)
(18.8003 0.412619 -3.68477e-18)
(20.0878 -0.812627 -5.43078e-18)
(20.1735 2.67294 6.15332e-19)
(19.9827 0.0773923 0)
(18.4731 0.647398 5.9882e-18)
(16.9144 -0.504206 1.17977e-17)
(19.9822 -0.146044 6.95644e-17)
(16.8576 -0.949172 -2.90984e-18)
(18.9767 -1.12257 0)
(19.997 0.00158914 0)
(19.9662 -0.183903 6.15624e-17)
(19.9074 -0.782066 6.61557e-18)
(20.2823 -0.883912 8.31238e-19)
(19.805 -0.42798 0)
(18.6814 -0.429754 -2.04855e-17)
(19.754 -0.0496947 1.59158e-16)
(18.1442 -0.83372 7.91677e-21)
(18.7353 1.62339 5.6163e-18)
(20.0453 0.15649 5.57282e-17)
(22.2786 -0.107857 -1.03891e-18)
(19.4448 -0.542659 -1.17372e-18)
(19.8685 -1.11999 -7.708e-18)
(20.2831 -0.926 2.15737e-19)
(19.8642 -0.298404 -6.39064e-17)
(20.0374 0.0266842 1.98108e-16)
(19.975 0.137919 0)
(20.8539 -0.45798 6.32012e-19)
(19.9369 -0.677113 3.71703e-17)
(19.9311 -0.437808 -2.46395e-17)
(19.8816 0.00271121 1.04777e-16)
(19.7682 -0.135896 -5.88967e-16)
(19.6136 -0.964516 2.05968e-18)
(19.6057 -0.310389 6.9065e-17)
(19.9998 -0.628683 1.43721e-16)
(19.8937 -1.05752 0)
(16.5643 -0.863396 3.02559e-17)
(21.8039 -0.121634 -1.3279e-18)
(20.5297 -0.774509 -7.98148e-18)
(18.0642 -0.520963 2.59601e-17)
(21.118 -0.364521 -3.08165e-18)
(18.5424 1.00633 2.71945e-18)
(20.2328 0.134501 1.48153e-16)
(20.0259 0.0691009 0)
(19.5705 -1.0806 -7.66492e-19)
(19.4482 -0.964149 2.30642e-18)
(20.2718 0.445727 0)
(22.2524 -0.238721 1.13141e-18)
(21.4153 0.0729893 -1.67604e-16)
(19.7043 -0.579654 -2.75704e-17)
(21.744 -0.0430001 -8.15008e-18)
(20.0211 -0.0700724 0)
(19.876 -0.633535 1.71308e-17)
(19.1234 -0.37458 4.58612e-18)
(19.528 -0.34436 0)
(18.6922 0.161119 -6.63993e-18)
(19.5979 -0.642558 -7.37055e-18)
(20.077 0.0290836 -9.9805e-17)
(20.3421 2.62581 1.1347e-18)
(20.1229 -1.07439 0)
(21.1494 -0.294899 1.51289e-18)
(19.8057 -0.588466 1.73794e-17)
(20.6563 -0.566465 -3.43405e-18)
(19.6599 2.44168 -1.32712e-18)
(21.0817 -0.314396 1.21567e-18)
(19.4615 -0.950727 0)
(20.4589 -0.855336 1.57623e-18)
(21.0161 -1.02688 2.9011e-18)
(19.6191 -1.00527 -1.96439e-18)
(20.5444 -0.202894 1.36658e-17)
(21.4132 -0.547285 -2.92151e-18)
(20.47 0.125743 0)
(19.5351 -1.08764 -4.88852e-18)
(21.4083 -0.771591 -7.1924e-18)
(20.4763 0.293777 -1.41626e-18)
(19.8628 -0.94323 3.22161e-18)
(20.9186 -1.07991 3.60541e-18)
(18.1021 1.57638 3.32957e-18)
(20.4561 0.231256 3.88027e-17)
(20.0236 -0.209074 -6.62348e-17)
(19.2173 -0.615946 0)
(20.1084 -0.190184 -1.94179e-17)
(20.5758 0.570006 -9.92309e-18)
(19.4572 -0.90493 1.68443e-17)
(20.39 -0.350057 -8.7483e-18)
(18.7933 -0.961103 3.78114e-20)
(20.4303 -1.15686 0)
(20.1175 0.0287154 -8.84928e-17)
(19.9668 -1.20065 8.18834e-19)
(18.4888 0.30693 1.44345e-19)
(20.1188 -0.705319 -1.03991e-17)
(21.9569 0.817478 0)
(18.7697 -1.00821 7.81464e-18)
(19.4155 -0.725605 0)
(18.4245 -0.999128 -7.8206e-19)
(21.9936 -0.439625 0)
(19.0297 -0.116402 -2.22433e-17)
(19.3786 0.774042 -1.61742e-17)
(19.7903 -0.454155 1.92109e-17)
(22.5829 1.87742 4.22835e-19)
(18.5422 -0.974996 -8.06434e-18)
(20.0945 -0.501816 2.50358e-18)
(20.0606 0.0312997 -3.89183e-19)
(19.0873 2.38576 1.14375e-19)
(19.0993 -0.963251 1.29068e-17)
(21.2766 -0.150262 -1.94353e-18)
(20.4383 -0.311816 -1.77522e-16)
(19.503 -0.187265 -2.895e-17)
(19.8194 0.272699 -1.05461e-16)
(19.8551 -0.546828 2.42584e-17)
(19.1632 -0.817779 0)
(20.0961 0.15343 0)
(19.6826 -1.20068 3.28614e-18)
(19.7905 -0.293644 -2.15959e-17)
(20.0172 -0.168701 8.88455e-20)
(20.7897 -0.790305 8.0728e-18)
(18.9203 1.95782 -2.51811e-18)
(20.0844 -0.369805 3.79713e-17)
(18.5905 -1.10482 0)
(19.8476 -0.0109711 -9.95734e-17)
(22.0576 0.326922 -2.53327e-17)
(19.6352 2.75763 -4.31434e-19)
(19.9633 0.0833238 -1.40432e-16)
(20.2319 -0.925093 5.70173e-19)
(19.464 2.5436 7.61142e-19)
(20.5618 -0.267127 -2.07953e-17)
(19.9003 -0.254907 0)
(20.6426 0.152599 0)
(19.943 -1.04289 -9.75505e-19)
(19.9821 0.0308291 2.53045e-17)
(19.7487 2.64276 1.33728e-18)
(20.3367 0.443446 0)
(21.7459 -0.559714 -2.73629e-18)
(18.7098 -0.359732 -2.11371e-17)
(20.2374 -0.0274432 -1.19311e-18)
(20.7759 0.215406 4.33968e-18)
(23.8689 -0.629026 -1.34468e-16)
(19.8067 -1.02601 -1.50996e-18)
(20.062 0.127367 -2.08571e-19)
(21.9084 0.183858 -7.02749e-17)
(20.5049 -0.591788 8.50944e-18)
(19.2533 -0.577657 0)
(22.4497 2.07539 -1.08686e-18)
(20.6109 -0.798212 0)
(20.2081 -0.685749 -1.19178e-17)
(19.3636 -0.712148 1.33597e-17)
(20.5556 -0.158086 -7.27906e-18)
(19.8109 0.480287 -3.1667e-17)
(17.7277 1.20598 0)
(19.2744 -0.627471 1.16021e-17)
(19.6778 0.657315 2.44566e-17)
(19.7837 0.127523 6.17432e-17)
(19.2678 -1.20345 7.45385e-18)
(17.2434 -0.951441 -4.53469e-19)
(17.4675 -0.524386 -1.02646e-18)
(20.8376 2.54252 2.51897e-19)
(18.1053 -0.915253 2.79767e-18)
(19.1826 -0.85676 1.44451e-17)
(20.9237 -0.899377 -4.66796e-18)
(20.2243 -0.649568 -1.26039e-17)
(19.4311 -0.161035 5.54178e-17)
(20.3946 -0.268592 9.7353e-18)
(19.9752 -0.213756 4.01485e-17)
(19.9366 0.406086 6.14837e-17)
(20.012 0.0517105 0)
(19.3234 0.126032 -2.24498e-17)
(19.3169 -1.02028 -6.31164e-18)
(20.4794 -0.932912 -1.79594e-18)
(14.37 -0.848796 -1.54255e-18)
(20.1828 -0.159648 -2.61331e-19)
(19.0638 0.15012 1.06579e-17)
(22.73 -0.416605 -2.77718e-16)
(19.9784 -1.0712 -1.16905e-18)
(20.1362 -0.00579334 -1.53577e-16)
(19.9669 -0.326924 -8.25087e-17)
(18.7015 -0.957681 0)
(18.6189 -0.0343983 7.72496e-18)
(19.7352 -0.349946 -3.68694e-17)
(20.2962 -0.448438 -6.41591e-17)
(20.6889 -0.464873 9.63668e-18)
(20.8718 0.0971408 0)
(20.2039 -0.924727 -4.53494e-19)
(20.0029 0.0181797 -1.42496e-16)
(22.5531 2.25426 2.64208e-19)
(18.6816 -0.672089 1.91572e-17)
(22.7865 -0.317057 2.49216e-18)
(18.2366 0.157814 8.34742e-18)
(20.4235 0.0342729 -2.35586e-16)
(20.0452 0.0950893 -5.00771e-17)
(19.53 0.218075 0)
(19.5655 -0.0275201 2.54943e-17)
(20.0672 -0.579005 3.87601e-17)
(20.0265 -0.259099 1.04824e-17)
(20.0505 0.131548 -5.09315e-17)
(19.5304 -0.219598 2.11873e-17)
(18.6195 1.59064 -1.56764e-18)
(20.2354 2.74276 9.3392e-21)
(19.9433 -0.308261 -1.17776e-16)
(20.0262 -1.07071 0)
(20.1781 -0.269309 -6.00073e-17)
(14.4706 -0.682001 1.24067e-18)
(19.2159 0.968035 -8.96559e-20)
(20.0847 0.190862 8.64172e-17)
(18.5749 1.6811 1.45838e-20)
(19.6994 -1.11943 1.44046e-18)
(19.3765 -1.15732 1.75709e-18)
(20.1748 -0.135057 -9.79204e-17)
(18.7584 1.51896 3.45047e-18)
(20.4028 -0.409546 2.62796e-17)
(20.2859 -0.7093 0)
(20.0021 -0.155614 -2.15026e-16)
(19.1607 -0.183532 -1.59063e-17)
(20.3025 1.69338 5.22588e-21)
(20.22 -1.0034 0)
(20.9111 2.47786 -7.01498e-20)
(18.2536 -0.898357 -1.25537e-17)
(20.4302 -0.360829 -5.21022e-18)
(17.761 -0.945609 -1.97934e-18)
(19.9737 -1.19734 -3.61546e-18)
(20.3227 2.72118 8.50218e-21)
(20.0909 0.305319 1.06909e-19)
(21.6792 0.0443997 3.0448e-18)
(20.8997 0.190049 3.96798e-18)
(18.5888 -1.07839 5.92456e-18)
(19.7768 -0.42805 3.43717e-17)
(20.0314 -0.918195 1.44722e-18)
(19.9729 0.0902525 5.42223e-19)
(22.308 0.324464 5.44622e-19)
(20.7279 -0.615994 7.81899e-18)
(20.5014 -0.148396 -6.48725e-18)
(19.649 -0.50949 2.16487e-17)
(15.341 -0.569347 1.20238e-16)
(19.7707 -0.398704 -6.20616e-17)
(20.5892 0.117801 1.87409e-17)
(19.2662 0.603052 -1.72641e-17)
(20.2383 -0.0789911 -1.56434e-17)
(22.485 0.90199 9.02931e-19)
(20.23 -0.616813 -1.33655e-17)
(20.213 -0.175655 -2.23284e-16)
(20.4568 -0.430778 2.90848e-17)
(19.8453 -0.169073 -1.27593e-16)
(19.5325 2.71588 8.0547e-19)
(19.3689 0.102456 6.39867e-18)
(20.482 -0.648248 -6.9637e-18)
(20.0005 0.0363411 1.49585e-16)
(20.0467 0.484604 -4.01818e-17)
(19.888 -0.350751 7.02961e-17)
(19.8472 -0.000257142 -1.18201e-16)
(20.1791 -0.922138 0)
(20.0387 -0.247269 0)
(20.0069 -0.00158881 3.61404e-17)
(19.8903 0.236434 0)
(18.9486 -0.210474 6.10547e-18)
(20.1679 0.335294 -4.33023e-17)
(19.9144 -0.928791 -2.98559e-18)
(20.4592 -1.11757 2.91566e-18)
(19.6633 -1.02713 2.6367e-18)
(19.876 -0.184406 2.20249e-16)
(21.2946 -0.462525 6.60065e-18)
(19.4783 -0.875268 1.34176e-17)
(21.8979 -0.753882 3.80477e-19)
(20.1074 0.270752 3.69698e-17)
(19.898 -0.463346 -6.01934e-17)
(20.37 0.268686 -3.27679e-19)
(19.8602 -0.144664 6.20116e-17)
(18.989 0.221487 -2.60003e-20)
(21.8153 -0.00840658 -1.45516e-17)
(19.731 0.00133783 3.85735e-17)
(19.8117 -0.54445 2.27849e-17)
(19.9888 -0.931716 -2.7009e-18)
(21.2231 -0.507799 0)
(20.0981 0.123196 -1.79504e-16)
(18.2293 -0.732004 -3.9456e-18)
(19.2906 -0.403075 2.42787e-17)
(21.7461 1.26944 2.00615e-18)
(19.7904 -1.05238 5.11951e-18)
(20.2758 -0.412215 0)
(20.0506 0.115206 1.70642e-16)
(20.0063 -0.30274 7.49457e-17)
(19.5638 -0.182216 2.32793e-19)
(20.0026 0.028906 9.09362e-17)
(19.395 -1.15718 4.92981e-19)
(20.4734 0.0590729 2.22049e-17)
(20.2704 -0.200013 7.01406e-17)
(20.1398 0.0110624 7.83453e-17)
(18.1831 -0.81873 -1.01155e-17)
(20.1802 -0.835446 -2.37014e-19)
(19.8203 -0.119757 1.96795e-16)
(19.5693 0.442614 8.3871e-17)
(20.1174 -0.757553 -1.03491e-17)
(20.3721 -0.552916 -1.3571e-17)
(20.5083 -0.116421 0)
(20.25 -0.00465534 7.0171e-16)
(21.7381 -0.455703 0)
(19.145 -0.722002 1.08822e-17)
(19.6543 -0.375983 2.38695e-18)
(18.9245 0.891319 -3.4089e-18)
(19.7111 -1.09766 1.49082e-18)
(19.8099 0.151308 0)
(19.8025 -1.09908 -1.46289e-18)
(19.9667 -0.326606 -2.7286e-19)
(20.3909 -1.15061 -2.14449e-18)
(19.1901 -0.759796 7.67036e-18)
(19.5906 -1.11803 6.10336e-18)
(19.6289 -1.17364 0)
(18.4995 -0.974782 6.45985e-18)
(19.9368 -0.0525853 0)
(20.8271 0.158036 -8.20245e-18)
(17.5643 1.25016 3.83131e-18)
(17.8241 -0.660295 -1.35728e-18)
(22.2515 -0.0152629 1.3644e-16)
(20.1831 -1.15528 1.41976e-19)
(19.337 -0.989114 8.12429e-18)
(20.0879 0.440283 -2.10495e-17)
(21.2545 0.185134 -2.37025e-18)
(19.587 -0.973641 0)
(20.1554 -0.281869 0)
(20.2096 -0.777333 -1.58632e-17)
(23.5949 0.174449 1.0713e-17)
(20.4341 0.183101 -5.2482e-17)
(18.1342 -0.743482 4.09647e-18)
(19.8232 -0.291376 9.39923e-17)
(19.9714 0.0672172 3.5646e-16)
(19.5861 -0.215236 4.01307e-17)
(20.3261 -1.14252 -1.24019e-18)
(18.8952 0.688149 -2.29109e-20)
(21.4725 0.645831 0)
(19.8841 -0.275348 -6.80136e-17)
(19.9987 0.0563667 1.23435e-16)
(20.7996 0.753314 4.53357e-18)
(20.2216 -0.790146 -8.54024e-18)
(19.8198 -0.925382 -4.43746e-18)
(20.007 -1.16644 0)
(20.0905 -0.102033 -8.19819e-17)
(21.8993 -0.0765037 1.61164e-16)
(21.6699 -0.927309 -7.85561e-20)
(19.848 0.139009 -6.84363e-17)
(20.1608 0.265118 -3.51805e-17)
(19.7861 0.076848 4.85107e-17)
(18.1896 -0.750857 -1.04245e-17)
(18.1005 -0.771301 1.20822e-17)
(20.411 0.231598 -2.13895e-17)
(19.8369 2.8101 0)
(19.7063 -0.312176 -2.95476e-17)
(19.9114 -1.19278 -2.62063e-18)
(19.8554 -0.0855061 -2.64175e-17)
(20.8201 -0.351169 1.77647e-17)
(19.9006 0.0350775 -1.30247e-18)
(18.3479 0.697476 -1.10998e-17)
(18.3532 -0.978021 -3.63041e-20)
(19.3422 -1.19267 -5.52271e-19)
(19.1535 2.29607 -5.75709e-19)
(20.0076 0.0523262 0)
(21.4472 -0.714198 1.00832e-17)
(18.8578 0.458195 0)
(20.3289 -0.906727 -3.12899e-18)
(19.7669 0.156166 1.10886e-18)
(18.7336 0.550274 -5.49151e-17)
(19.3601 0.0281999 -2.49571e-17)
(20.4698 -0.398239 -1.07164e-19)
(20.0042 0.0492327 -4.59118e-19)
(19.9495 -0.313811 6.68185e-17)
(19.5224 -0.714056 9.15243e-18)
(20.3378 -0.650107 0)
(18.7747 -0.994944 1.22288e-18)
(21.5913 0.00906131 9.60567e-18)
(19.9536 -0.295928 9.73994e-17)
(20.2165 0.207083 -2.94571e-19)
(21.4257 0.391478 -2.35757e-18)
(18.4825 2.10514 1.09799e-20)
(20.0706 0.115099 -4.14972e-17)
(19.7636 -0.323583 -5.80184e-17)
(20.0097 -0.189502 -5.75991e-17)
(18.3944 0.575903 0)
(20.6292 0.0792836 -8.72189e-18)
(20.3346 0.17785 2.0479e-17)
(20.724 -0.185157 -1.45326e-17)
(20.1249 2.52835 0)
(19.2481 -0.3618 -7.51502e-18)
(19.1332 -0.953898 -1.40924e-17)
(19.8121 -1.01341 -3.45224e-19)
(19.6728 -0.813285 -5.69346e-18)
(21.1454 0.723039 3.16263e-16)
(21.7239 -0.360001 1.23286e-18)
(22.3945 1.1018 -9.14206e-19)
(19.9485 0.576195 5.01618e-19)
(15.6684 -0.522753 2.47125e-18)
(19.9363 2.80509 0)
(18.0381 1.37223 -4.84546e-18)
(21.5616 0.499243 0)
(19.8295 -0.397351 2.66115e-17)
(19.9633 0.128528 -9.67354e-17)
(20.0424 2.77637 0)
(19.4875 -1.11595 -3.24547e-18)
(20.0513 0.0853979 -9.38929e-17)
(19.9905 -0.29982 2.42838e-16)
(21.4536 1.64554 0)
(21.7709 -0.26897 0)
(19.4553 -0.850005 5.8355e-18)
(17.2593 -0.937227 5.79838e-18)
(20.8567 -0.114495 -1.27037e-17)
(20.9844 0.446866 5.42813e-18)
(22.476 -0.649933 -7.86792e-20)
(19.3653 -0.956877 1.45608e-17)
(19.597 -0.786624 -5.16919e-18)
(19.4185 -0.328584 1.15549e-17)
(19.024 2.33298 2.76634e-19)
(20.9636 0.853466 -1.72397e-18)
(19.8137 -1.02551 2.88872e-19)
(19.4453 0.0734877 3.90244e-17)
(20.5035 -0.802065 5.22848e-18)
(20.663 -0.170738 -8.00016e-18)
(19.7044 1.92143 0)
(19.4744 -0.998459 0)
(20.1135 -0.275098 -8.85624e-17)
(20.5105 -0.571629 3.89212e-17)
(20.525 0.686668 -1.8224e-17)
(20.3938 -0.361871 -6.793e-20)
(20.9906 -0.81977 -2.7709e-18)
(19.3952 2.41415 3.78014e-18)
(18.2918 1.73371 -1.6701e-18)
(20.966 0.54185 -3.78285e-17)
(19.6308 -0.835037 -6.95953e-18)
(20.2139 -0.0778293 1.13852e-16)
(22.6128 -0.191352 -1.92115e-16)
(19.7687 -0.367695 2.92824e-17)
(20.5454 0.0848039 4.7104e-17)
(18.6271 0.205323 2.04866e-17)
(18.5592 1.46618 -1.8248e-18)
(17.5876 -0.504235 4.11926e-18)
(20.0877 0.0474742 -1.16287e-16)
(20.368 -0.294102 0)
(21.4677 -0.107205 5.68234e-16)
(20.2525 -0.266761 -5.64568e-18)
(19.1153 0.109149 1.00436e-17)
(20.3545 -0.329878 -2.37498e-17)
(19.7092 0.0751388 -1.36521e-17)
(19.4265 -0.448527 3.32243e-17)
(18.7996 -0.679583 0)
(17.5346 -0.957029 9.49025e-19)
(19.9911 -0.279383 0)
(17.8692 0.343966 -5.99387e-18)
(19.9874 -0.231891 1.80563e-16)
(22.6892 1.62162 6.56609e-20)
(20.2557 -0.682042 -1.40889e-17)
(21.2833 -0.819403 -3.14536e-18)
(20.0398 -0.169624 -1.63104e-16)
(19.9259 -0.899876 3.30006e-18)
(19.457 -0.289349 -2.42848e-17)
(18.8634 0.64239 2.0287e-18)
(20.0067 -0.350173 0)
(19.8007 -0.39546 -8.70716e-21)
(21.9653 0.100399 8.99481e-17)
(20.1649 0.0376169 -5.47569e-17)
(20.1193 0.634059 0)
(20.7685 1.0286 3.02821e-18)
(20.2846 0.707999 4.37563e-17)
(20.2379 -0.00620882 0)
(19.58 0.00531943 0)
(19.7561 0.444808 6.68997e-17)
(19.9307 -1.0706 0)
(19.0058 -0.914425 -2.46292e-18)
(19.8974 1.88024 -1.71726e-18)
(20.7297 2.26926 2.30458e-18)
(21.2089 0.619297 -4.9475e-18)
(19.8487 -0.2749 8.25333e-17)
(19.5647 -1.17543 -1.5648e-18)
(20.2833 0.106987 5.60355e-17)
(18.8555 1.5074 7.08418e-18)
(20.9955 0.331305 4.90173e-17)
(19.6688 -0.342906 2.30746e-17)
(17.751 -0.611971 -2.78389e-18)
(19.5929 -1.18298 -2.95951e-18)
(19.8619 0.210626 0)
(19.6205 -0.571498 1.31117e-17)
(19.8393 -0.332806 1.79009e-19)
(20.1437 -1.13975 3.89037e-19)
(20.9005 0.484486 0)
(18.4281 1.75363 2.7476e-18)
(19.8763 -0.456215 5.69879e-17)
(20.7098 -0.226607 8.85535e-18)
(19.1295 -0.386864 2.30525e-18)
(17.9374 -0.565589 0)
(19.6198 -0.276017 5.0619e-18)
(19.6725 -0.652535 -1.38015e-17)
(19.8297 -1.07247 2.05813e-18)
(19.464 1.76248 -1.01124e-18)
(22.3494 -0.548411 0)
(22.3086 -0.0265745 -1.53017e-16)
(19.9599 -0.310869 9.93315e-17)
(20.1962 -0.596823 1.25834e-17)
(20.256 -0.11564 -5.14255e-18)
(15.6762 -0.747328 -8.29108e-18)
(20.51 2.64968 1.5371e-19)
(19.5708 -1.18346 -2.79993e-18)
(19.5639 -0.931258 -6.42357e-19)
(20.3163 -0.563845 3.85936e-17)
(20.4528 -0.669113 0)
(19.2504 1.97502 -2.46601e-18)
(20.0559 0.415749 0)
(20.6047 2.60494 2.98333e-19)
(19.9944 0.0248128 -9.78423e-17)
(20.7331 -0.851431 0)
(21.5821 1.69554 0)
(19.9913 -0.197481 6.85039e-17)
(18.9809 0.755923 -6.71642e-18)
(20.6541 -0.219102 0)
(20.9871 -1.05816 4.67457e-18)
(20.4861 -0.717098 -5.59088e-18)
(20.8889 -0.144251 -1.55796e-17)
(20.2433 0.103363 -5.48329e-17)
(19.7642 -0.0730166 -1.21772e-17)
(19.9489 -0.340437 3.40654e-17)
(19.3874 -0.306096 -1.39437e-17)
(20.5611 -0.497931 2.03117e-17)
(20.1607 -0.680214 1.90502e-18)
(20.0627 -0.455473 0)
(18.9761 0.294735 1.89703e-17)
(22.5504 -0.56559 6.84081e-19)
(20.096 0.0429513 -2.17775e-17)
(12.361 -0.0189661 2.30105e-16)
(19.6865 -0.746671 0)
(18.8125 -1.00536 3.45906e-20)
(18.5735 -0.329189 1.60002e-17)
(18.6241 1.15504 1.61716e-18)
(18.852 0.240293 -1.19502e-17)
(20.0003 0.0354329 7.84836e-17)
(19.9926 -0.171112 -1.3411e-16)
(20.0004 -0.295551 -5.03151e-17)
(19.4044 0.0493868 2.34779e-17)
(20.4363 -0.406587 1.16964e-17)
(20.175 -0.882308 0)
(20.1028 0.0338719 -1.67256e-16)
(20.0492 -0.0645945 -6.22961e-17)
(19.9739 0.0430322 -8.24938e-17)
(19.0707 0.78325 0)
(20.4684 1.09803 5.32225e-18)
(19.123 -1.04127 -1.85332e-18)
(19.3915 -0.451791 -5.57623e-18)
(17.721 1.80776 6.85071e-18)
(21.2739 -0.382116 -4.03825e-19)
(19.4233 -0.259381 0)
(19.0041 0.861031 -1.05593e-18)
(19.7114 2.29651 1.6336e-20)
(21.4419 0.513319 0)
(21.3427 -0.617722 0)
(19.6911 -0.6345 -3.82853e-18)
(19.9279 -0.923638 8.27801e-21)
(19.2859 2.63608 -2.00832e-19)
(19.3968 0.631463 -1.24379e-17)
(19.897 -0.708156 8.27138e-18)
(20.8442 -0.0482539 0)
(19.9591 -0.0419156 0)
(20.1321 0.00268135 1.44692e-16)
(19.6934 0.576427 4.33327e-19)
(19.1024 -0.351741 0)
(19.4588 0.270775 3.6584e-17)
(20.1388 -0.0149693 1.29019e-16)
(19.9103 -0.08435 -7.17744e-17)
(18.1296 -0.943086 -1.82924e-18)
(19.5699 1.87562 -5.5992e-18)
(19.2345 -0.727187 2.67111e-17)
(19.1203 -0.839581 7.41801e-18)
(20.8434 0.882706 1.23062e-17)
(19.7955 1.72066 9.9812e-19)
(19.0735 2.24183 2.37347e-18)
(16.0338 -0.919464 1.24887e-18)
(21.783 -0.0670147 -1.42762e-17)
(19.634 -0.799229 1.09319e-17)
(19.4955 -0.805551 4.26919e-20)
(21.1011 0.23686 -5.18544e-18)
(19.801 0.178033 -1.21154e-18)
(19.468 -0.459302 -1.50125e-17)
(20.9397 0.723007 1.83779e-17)
(20.0559 0.149133 0)
(19.8871 -1.07675 -1.45453e-18)
(19.0945 0.869625 0)
(22.1561 0.31826 5.91636e-19)
(19.8613 -0.265483 5.94576e-17)
(20.1409 -0.0289113 4.17747e-17)
(21.5319 -0.537761 7.82239e-19)
(20.2849 0.0334827 8.06672e-18)
(20.4625 -0.744844 -4.48881e-18)
(20.1325 0.00949193 1.15735e-16)
(19.9957 -0.210515 0)
(19.1519 1.96808 2.91731e-18)
(17.6175 -0.949904 0)
(14.9425 -0.830375 -1.16546e-17)
(19.7305 -0.0686273 3.75642e-17)
(19.9915 -0.291337 -8.8592e-17)
(19.2325 -0.915108 4.08551e-18)
(19.9971 -0.302357 -1.55673e-20)
(19.5622 -0.656247 1.07864e-17)
(20.1885 -0.0823391 -4.93413e-17)
(19.8775 -1.15131 1.46767e-18)
(20.3075 -0.151457 0)
(23.579 1.4324 4.36155e-20)
(19.1891 -0.00680243 -1.55322e-17)
(17.7746 -0.530768 2.46797e-18)
(19.9752 -0.705718 7.8223e-18)
(19.5971 -0.873221 -6.13797e-18)
(20.5908 -0.5859 -1.02373e-17)
(19.9375 -0.0757902 -2.65926e-17)
(20.4844 -0.0382283 1.15303e-17)
(17.4638 -0.923281 3.86658e-18)
(20.1135 0.0284037 1.81371e-16)
(20.229 -1.1563 0)
(19.3018 -1.20424 -2.92666e-18)
(18.1821 -0.955315 0)
(18.2797 -0.855033 -9.40442e-18)
(16.0003 -0.554258 1.28208e-17)
(19.0311 -0.00309308 -1.62995e-17)
(20.1874 -0.642776 7.43353e-18)
(20.2764 -0.915719 0)
(20.3151 -1.17786 5.12232e-19)
(18.3242 -0.934188 -1.92869e-18)
(18.6366 -1.06583 -7.19432e-20)
(20.0043 -0.279172 -4.75742e-17)
(20.1668 -0.30657 2.09247e-17)
(19.6414 -0.239662 1.51926e-17)
(20.2692 -0.150539 1.41272e-18)
(20.9124 -0.0940014 -2.87146e-18)
(19.0617 2.11731 -1.27628e-18)
(19.5461 -0.987176 0)
(18.4728 1.64444 1.73368e-18)
(20.3418 -0.482391 -1.89788e-18)
(20.0117 -0.288812 2.27506e-16)
(19.8745 -0.0188737 3.33741e-17)
(19.9939 0.638545 5.32758e-19)
(20.6641 2.10988 1.45662e-18)
(19.4202 -0.482212 2.51238e-18)
(18.8006 0.297621 1.42565e-17)
(19.9259 0.818862 1.9727e-17)
(20.16 0.298377 7.55203e-17)
(19.9887 -0.282731 -1.89335e-17)
(22.2896 0.0330614 -7.89306e-20)
(17.9534 -0.955407 1.13046e-17)
(18.9438 1.59777 -7.23235e-18)
(20.1682 -0.110996 9.08243e-17)
(20.2337 -0.745633 8.22004e-18)
(20.235 -0.913733 -3.97136e-19)
(19.6027 -1.05838 -5.1683e-18)
(20.0251 0.094087 -1.28263e-17)
(20.3509 1.0448 -2.72517e-19)
(18.8481 1.65836 -1.387e-18)
(20.2849 -0.13195 -2.20222e-17)
(20.1495 -0.859938 0)
(20.8465 2.21081 0)
(18.8135 1.34435 6.27721e-20)
(23.299 1.50972 -4.85465e-20)
(19.6086 -1.1911 1.51021e-18)
(18.1949 -0.914001 2.78914e-18)
(20.8451 2.41819 1.8841e-18)
(17.8743 -0.592455 4.9944e-17)
(19.8687 -0.191218 -2.0059e-16)
(20.1346 -0.888588 -6.86215e-18)
(19.9251 -1.14254 0)
(17.8438 -0.57783 -2.62324e-18)
(19.6459 -0.98662 -4.90983e-18)
(20.1775 -0.905649 0)
(20.4425 2.0096 -7.07038e-19)
(20.035 -0.703764 1.00773e-17)
(19.9652 0.101469 -1.58792e-16)
(19.1577 0.458796 -2.92132e-17)
(20.8102 2.05312 -2.59342e-18)
(18.9232 1.41992 4.40684e-18)
(20.1058 -0.867931 2.98933e-18)
(20.0036 -0.214162 -2.12787e-16)
(17.9381 0.354774 0)
)
;
boundaryField
{
wings
{
type fixedValue;
value uniform (0 0 0);
}
outlet
{
type freestream;
freestreamValue uniform (20 0 0);
value nonuniform List<vector>
20
(
(19.6919 -0.260528 -3.13327e-16)
(20.0719 -0.711634 3.65175e-17)
(17.8033 -0.959955 -5.53738e-17)
(22.2021 -0.950304 -2.77593e-17)
(19.6273 -0.397159 -3.20704e-17)
(19.6839 -0.118864 -1.80996e-16)
(20.6415 -0.909328 -3.25025e-17)
(20.7638 0.383219 -7.69916e-17)
(21.3422 0.213448 7.22025e-17)
(20.1366 -0.799308 -3.98842e-17)
(19.9154 -0.55214 1.38487e-16)
(20.4554 0.171737 -2.8117e-16)
(19.6007 -0.0332526 1.6212e-16)
(19.6983 -0.187777 0)
(19.7998 -0.476186 -2.63424e-16)
(19.5988 -0.349773 2.16088e-16)
(22.9495 -0.922803 3.83112e-17)
(19.5267 0.0919734 -4.65369e-16)
(19.9998 -0.628683 1.43721e-16)
(17.9381 0.354774 0)
)
;
}
tunnel
{
type fixedValue;
value uniform (0 0 0);
}
inlet
{
type freestream;
freestreamValue uniform (20 0 0);
value uniform (20 0 0);
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //
| [
"rlee32@gatech.edu"
] | rlee32@gatech.edu | |
85425dc63b5321697920d385670ff68d1da9a0a1 | 5af36aa7fb5aa30865e2846086d20877bf83f237 | /sf/Box.h | 6295d4e9520f63b239f41b53485226a3e85531d0 | [
"MIT"
] | permissive | bqqbarbhg/tex-resampler | d3dfe2b5b641a4a6f924082fb0245f58d2109cba | 01fca7f5ff5cd2701a3f514ffb8c3f2326566e50 | refs/heads/master | 2022-12-22T00:59:41.702209 | 2020-09-13T19:42:33 | 2020-09-13T19:42:33 | 295,178,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,737 | h | #pragma once
#include "Base.h"
namespace sf {
void *boxAlloc(size_t size);
void boxFree(void *ptr, size_t size);
struct BoxHeader
{
uint32_t refCount;
uint32_t size;
DestructRangeFn dtor;
};
void *impBoxAllocate(size_t size, DestructRangeFn dtor);
void impBoxIncRef(void *ptr);
void impBoxDecRef(void *ptr);
template <typename T>
struct Box
{
T *ptr;
Box() : ptr(nullptr) { }
Box(Box&& rhs) : ptr(rhs.ptr) { rhs.ptr = nullptr; }
Box &operator=(Box&& rhs) {
if ((void*)&rhs == (void*)this) return *this;
if (ptr) impBoxDecRef(ptr);
ptr = rhs.ptr;
rhs.ptr = nullptr;
return *this;
}
Box(const Box& rhs) : ptr(rhs.ptr) {
if (rhs.ptr) impBoxIncRef(rhs.ptr);
}
Box &operator=(const Box& rhs) {
if (rhs.ptr) impBoxIncRef(rhs.ptr);
if (ptr) impBoxDecRef(ptr);
ptr = rhs.ptr;
return *this;
}
template <typename U>
Box(Box<U>&& rhs) : ptr(rhs.ptr) { rhs.ptr = nullptr; }
template <typename U>
Box &operator=(Box<U>&& rhs) {
if ((void*)&rhs == (void*)this) return *this;
if (ptr) impBoxDecRef(ptr);
ptr = rhs.ptr;
rhs.ptr = nullptr;
return *this;
}
template <typename U>
Box(const Box<U>& rhs) : ptr(rhs.ptr) {
if (rhs.ptr) impBoxIncRef(rhs.ptr);
}
template <typename U>
Box &operator=(const Box<U>& rhs) {
if (rhs.ptr) impBoxIncRef(rhs.ptr);
if (ptr) impBoxDecRef(ptr);
ptr = rhs.ptr;
return *this;
}
~Box() { if (ptr) { impBoxDecRef(ptr); } }
void reset() {
if (ptr) { impBoxDecRef(ptr); ptr = nullptr; }
}
template <typename U> const Box<U> &cast() const { return *(Box<U>*)this; };
template <typename U> Box<U> &cast() { return *(Box<U>*)this; };
sf_forceinline bool operator!() const { return ptr == nullptr; }
sf_forceinline explicit operator bool() const { return ptr != nullptr; }
sf_forceinline operator T*() const { return ptr; }
sf_forceinline T *operator->() const { return ptr; }
sf_forceinline typename std::add_lvalue_reference<T>::type operator*() const { return *ptr; }
uint64_t getId() const { return impBoxGetId(ptr); }
};
template <typename T, typename... Args>
Box<T> box(Args&&... args)
{
Box<T> box;
box.ptr = (T*)impBoxAllocate(sizeof(T), &destructRangeImp<T>);
new (box.ptr) T(std::forward<Args>(args)...);
return box;
}
template <typename T>
Box<T> boxFromPointer(T *t) {
Box<T> box;
impBoxIncRef(t);
box.ptr = t;
return box;
}
void initBoxType(Type *t, const TypeInfo &info, Type *elemType);
template <typename T>
struct InitType<Box<T>> {
static void init(Type *t) {
return initBoxType(t, sf::getTypeInfo<Box<T>>(), typeOfRecursive<T>());
}
};
template <typename T> struct IsZeroInitializable<Box<T>> { enum { value = 1 }; };
template <typename T> struct IsRelocatable<Box<T>> { enum { value = 1 }; };
}
| [
"samuli.1995@hotmail.com"
] | samuli.1995@hotmail.com |
7b8c288ed76f9a6b711466a41dc947d725c98a97 | fd3f05ba65b8571e96649e9ffa75d54f69041f06 | /include/.svn/text-base/EUTelFilterHitFilter.h.svn-base | 3c3f10f5aed140365964d11d44a8ac7de05d9d38 | [] | no_license | terzo/Euetelscope_v00-09-02_fork | 2fdefc4a442bda1cf06f5fc4dd0821ba454a07f5 | d895b2ade9c4c7803bb4130aaa3072851898fcc1 | refs/heads/master | 2021-01-16T21:00:52.744370 | 2014-12-16T18:07:29 | 2014-12-16T18:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,036 | /**
* \class Implementation of a hit filter
* \brief Performs selection of hits passing some requirements
*
* With EUTelHitFilter one can select hits that satisfy conditions like
* - hit belongs to certain plain
* - hit is in fiducial sensor area
*/
#ifndef EUTELHITFILTER_H
#define EUTELHITFILTER_H
// C++
#include <vector>
// LCIO
#include "lcio.h"
#include "LCIOSTLTypes.h"
#include "IMPL/TrackerHitImpl.h"
#include "IMPL/LCCollectionVec.h"
// EUTELESCOPE
#include "EUTelFilter.h"
using namespace std;
using namespace lcio;
namespace eutelescope {
class EUTelFilterHitFilter : public EUTelFilter < TrackerHit* > {
public:
EUTelFilterHitFilter();
// EUTelHitFilter(const EUTelHitFilter& orig);
virtual ~EUTelFilterHitFilter();
void SetWantPlaneIDs(const IntVec& _wantPlaneIDs);
IntVec GetWantPlaneIDs() const;
virtual bool Take( const TrackerHit* ) const;
private:
IntVec _wantPlaneIDs;
};
} // eutelescope
#endif /* EUTELHITFILTER_H */
| [
"terzo@mpp.mpg.de"
] | terzo@mpp.mpg.de | |
9ec74907842a823467e4f89fa863b2a5321d2fd5 | 1a107406d2296a85805f6b85f4772903c0126796 | /src/task_config.cxx | bccde26ae816ca1811e3b856b0fa05d33ee9dadf | [] | no_license | MirrShad/NuttxSpace-seerDIOBoard | 75b18246ac862d94b7a212dae098783aab2ffcd1 | 21261ad7c4891ea7fb2b5c3bc7a9ccd9f59b6e26 | refs/heads/master | 2020-04-15T04:28:40.279124 | 2019-01-28T10:34:19 | 2019-01-28T10:34:19 | 164,384,873 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,542 | cxx | #include <nuttx/config.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <arpa/inet.h>
#include "task_config.h"
#include "udp.h"
#include "Communication.h"
#include "Gyro.h"
#include "version.h"
namespace{
unsigned char _configBuffer[1024];
uint8_t destip[4];
uint16_t destport;
}
extern "C"
{
void doConfig(CConfigReport &crd);
int task_config(int argc, char *argv[])
{
struct sockaddr_in server5003;
struct sockaddr_in client5003;
in_addr_t tmpaddr;
socklen_t addrlen;
socklen_t recvlen;
int sockfd;
int nbytes;
int optval;
printf("Start config task\r\n");
/* Create a new UDP socket */
sockfd = socket(PF_INETX, SOCK_DGRAM, 0);
if (sockfd < 0)
{
printf("server: socket failure: %d\n", errno);
exit(1);
}
/* Set socket to reuse address */
optval = 1;
if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (void*)&optval, sizeof(int)) < 0)
{
printf("server: setsockopt SO_REUSEADDR failure: %d\n", errno);
exit(1);
}
server5003.sin_family = AF_INET;
server5003.sin_port = HTONS(5003);
server5003.sin_addr.s_addr = HTONL(INADDR_ANY);
addrlen = sizeof(struct sockaddr_in);
if (bind(sockfd, (struct sockaddr*)&server5003, addrlen) < 0)
{
printf("server: bind failure: %d\n", errno);
exit(1);
}
for(;;)
{
recvlen = addrlen;
nbytes = recvfrom(sockfd, _configBuffer, 1024, 0,
(struct sockaddr*)&client5003, &recvlen);
if (nbytes < 0)
{
printf("config task server recv failed: %d\n", errno);
close(sockfd);
exit(-1);
}
int32_t int_ct;
memcpy(&int_ct,_configBuffer,sizeof(int_ct));
CConfigData::configType ct = (CConfigData::configType)int_ct;
static CConfigReport crd;
crd.resetDat();
crd.m_config_type = ct;
// do config.
doConfig(crd);
nbytes = sendto(sockfd, (uint8_t*)&crd, crd.size(), 0, (sockaddr *)&client5003, recvlen);
}
}
void doConfig(CConfigReport &crd)
{
//config
CConfigData::configType head;
memcpy(&head, _configBuffer, sizeof(CConfigData::configType));
switch (head)
{
case CConfigData::EDeviceDemandConfig:
break;
case CConfigData::EChassisStructConfig4cp:
case CConfigData::EChassisStructConfig:
break;
case CConfigData::EChargeControl:
{
uint32_t tmp = 0;
memcpy(&tmp,_configBuffer + sizeof(CConfigData::configType),sizeof(uint32_t));
//DIO::Instance()->setChargeCmd(tmp);
}
break;
case CConfigData::EKeepAlive:
{
uint32_t tmp = 0;
memcpy(&tmp, _configBuffer + sizeof(CConfigData::configType), sizeof(uint32_t));
if (0xFFFFFFFF == tmp)
{
//aliveT.reset();
//Message::Instance()->clearErr(CODE_CONT_NET_DOWN);
if (false )
{
crd.m_config_report.data = 0;
printf("send EReboot");
//Message::Instance()->postMsg("send EReboot.");
} else {
crd.m_config_report.data = 1;
}
}
}
break;
case CConfigData::EGyroCalibration:
{
uint32_t tmp = 0;
memcpy(&tmp, _configBuffer + sizeof(CConfigData::configType), sizeof(uint32_t));
if (0xFFFFFFFF == tmp) //Calibrate once
{
if(true == GyroDevice::Instance()->isOpen())
GyroDevice::Instance()->doCalibration();
}
}
break;
case CConfigData::EGyroAutoCaliSwitch:
{
}
break;
case CConfigData::EHostError:
{
/*
uint32_t tmp = 0;
memcpy(&tmp,_configBuffer + sizeof(CConfigData::configType), sizeof(uint32_t));
if (0xFFFFFFFF == tmp)
{
Message::Instance()->setErr(CODE_HOST_ERRO);
Console::Instance()->printf("Error in host\r\n");
}
else if(0 == tmp)
{
Message::Instance()->clearErr(CODE_HOST_ERRO);
Console::Instance()->printf("Host error clear\r\n");
}else
{
}
*/
}
break;
case CConfigData::EChassisBrakeSwitch:
{/*
uint32_t tmp = 0;
memcpy(&tmp,_configBuffer + sizeof(CConfigData::configType), sizeof(uint32_t));
if (0xFFFFFFFF == tmp)
{
GlobalControl::setChassisBrakeSwitchOn();
}
else if(0 == tmp)
{
GlobalControl::setChassisBrakeSwitchOff();
}
*/}
break;
case CConfigData::EInApplicationProgram:
{
/* uint32_t tmp = 0;
memcpy(&tmp,_configBuffer + sizeof(CConfigData::configType), sizeof(uint32_t));
if (0xFFFFFFFF == tmp)
{
pvf::write(pvf::VAR_BOOT_OPTI, BOOT_PARAM_BL);
// STMFLASH_write_bytes_noerase(pvf::read(pvf::VAR_BOOT_OPTI_ADDR), (uint8_t*)&boot_option, sizeof(uint32_t));
Console::Instance()->printf("Jump to bootloader...\r\n");
while(!Console::Instance()->isIdle());
NVIC_SystemReset();
}*/
}
break;
case CConfigData::EResetDIOBoard:
{
/*uint32_t tmp = 0;
memcpy(&tmp,_configBuffer + sizeof(CConfigData::configType), sizeof(uint32_t));
if (0xFFFFFFFF == tmp)
{
Console::Instance()->printf("Get reset command!\r\n");
while(!Console::Instance()->isIdle());
NVIC_SystemReset();
}*/
}
break;
case CConfigData::ESetDO:
{
/*CDigitalOutput dOut;
memcpy(&dOut,_configBuffer + sizeof(CConfigData::configType), sizeof(CDigitalOutput));
GlobalData::RptDat.ioDat.setDO(dOut.pos,dOut.data);*/
//Console::Instance()->printf("set DO[%d] = 0x%04X\r\n", dOut.pos, dOut.data);
}
break;
case CConfigData::EGetUid:
{
uint32_t uid_addr = 0x1FFF7A10;
memcpy(crd.m_config_report.m_buffer, (uint8_t*)uid_addr, 12);
break;
}
case CConfigData::EUnlock:
{
/*if(0 == seer_uid_verify(_configBuffer + sizeof(CConfigData::configType)))
{
_isRsaPassed = true;
}*/
break;
}
case CConfigData::EGetMainVersion:
{
const char *p;
p = Version::Instance()->getMainVersion();
memcpy(crd.m_config_report.m_buffer, (void *)p, SDB_VERSION_LENGTH);
break;
}
case CConfigData::EGetFullVersion:
{
const char *p;
p = Version::Instance()->getFullVersion();
memcpy(crd.m_config_report.m_buffer, (void *)p, SDB_VERSION_LENGTH);
break;
}
case CConfigData::EPrintDebugInfo:
{
/*
#if 1
Console::Instance()->printf("Debug Info:\r\n");
TaskManager::Instance()->printRunPool();
#endif
#if 1
Console::Instance()->printf("Enabled report data:\r\n");
if(GlobalData::RptDat.gyroDat.isEnable())
Console::Instance()->printf("GyroDat Enabled\r\n");
if(GlobalData::RptDat.odometerDat.isEnable())
Console::Instance()->printf("odometerDat Enabled\r\n");
if(GlobalData::RptDat.batteryDat.isEnable())
Console::Instance()->printf("battDat Enabled\r\n");
#endif
#if 1
Message::Instance()->printErrTable();
#endif
#if 1
pvf::printField();
#endif
Console::Instance()->printf("========== IO state ==========\r\n");
Console::Instance()->printf("DO = 0x%04X\r\n", GlobalData::RptDat.ioDat.getDO());
Console::Instance()->printf("DI = 0x%04X\r\n", GlobalData::RptDat.ioDat.getDI());
Console::Instance()->printf("Emergency Stop = %d\r\n", GlobalData::RptDat.IntBrdDat.emergencyStop);
Console::Instance()->printf("Brake state = %d\r\n", GlobalData::RptDat.IntBrdDat.brkState);
*/
break;
}
case CConfigData::ESetDefaultDO:
{
/*uint32_t tmp = 0;
memcpy(&tmp,_configBuffer + sizeof(CConfigData::configType), sizeof(uint32_t));
// TODO: need this ?
const uint32_t EMG_DO_POS = (1ul << 16);
tmp |= EMG_DO_POS; //force emergency stop close
if (tmp != pvf::read(pvf::VAR_DEFA_DO))
{
pvf::write(pvf::VAR_DEFA_DO, tmp);
Console::Instance()->printf("set default DO state\r\n");
}*/
break;
}
case CConfigData::ELaunchEthCANTool:
{
/*uint32_t tmp = 0;
memcpy(&tmp,_configBuffer + sizeof(CConfigData::configType), sizeof(uint32_t));
*/
break;
}
case CConfigData::EPrintBaseTime:
{
/*uint64_t basetime = 0;
uint64_t ntpTime = 0;
BaseTimer::Instance()->getTime_ns(&basetime);
ntpTime = basetime + SntpSynchr::Instance()->getNtpBaseOffset_ns();
Console::Instance()->printf("BaseTimer: %lld ns, ntpTime: %lld ns\r\n", basetime, ntpTime );*/
break;
}
case CConfigData::EGetMcuNtpTime:
{
/*uint64_t basetime = 0;
uint64_t ntpTime = 0;
BaseTimer::Instance()->getTime_ns(&basetime);
ntpTime = basetime + SntpSynchr::Instance()->getNtpBaseOffset_ns();
memcpy(crd.m_config_report.m_buffer, (void *)&ntpTime, sizeof(uint64_t));*/
break;
}
case CConfigData::EGetGyroVersion:
{
/*memset(crd.m_config_report.m_buffer, 0, PACKET_CHAR_LENGTH);
if (GyroDevice::Instance()->isOpen() && GlobalData::RptDat.gyroDat.isEnable())
{
GyroDevice::Instance()->getVersion_needMax20Char(crd.m_config_report.m_buffer);
}
else
{
sprintf(crd.m_config_report.m_buffer, "no gyro device");
}*/
break;
}
default:
break;
}
}
} | [
"757467644@qq.com"
] | 757467644@qq.com |
89c043ae0f99618916286e46bbc8c009c8176fbe | a09fe9bf8d8553ed572636de59cab4ce3ccd7f87 | /GPS_SoftwareSerial_Parsing/GPS_SoftwareSerial_Parsing.ino | 6093437af3ef43d88d62b0cc6748b935ddf847b1 | [] | no_license | cyber2024/arduino | 7f74875e3d434da10ba375968842edbe5ff3c330 | c16a86819fa4d96c856a69a3796a3ef3ce84ac93 | refs/heads/master | 2021-06-02T08:58:48.110031 | 2019-10-30T11:59:26 | 2019-10-30T11:59:26 | 95,492,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,137 | ino | // Test code for Adafruit GPS modules using MTK3329/MTK3339 driver
//
// This code shows how to listen to the GPS module in an interrupt
// which allows the program to have more 'freedom' - just parse
// when a new NMEA sentence is available! Then access data when
// desired.
//
// Tested and works great with the Adafruit Ultimate GPS module
// using MTK33x9 chipset
// ------> http://www.adafruit.com/products/746
// Pick one up today at the Adafruit electronics shop
// and help support open source hardware & software! -ada
#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>
// Connect the GPS Power pin to 5V
// Connect the GPS Ground pin to ground
// Connect the GPS TX (transmit) pin to Digital 8
// Connect the GPS RX (receive) pin to Digital 7
// you can change the pin numbers to match your wiring:
SoftwareSerial mySerial(2, 3);
Adafruit_GPS GPS(&mySerial);
// Set GPSECHO to 'false' to turn off echoing the GPS data to the Serial console
// Set to 'true' if you want to debug and listen to the raw GPS sentences
#define GPSECHO true
void setup()
{
// connect at 115200 so we can read the GPS fast enough and echo without dropping chars
// also spit it out
Serial.begin(115200);
delay(5000);
Serial.println("Adafruit GPS library basic test!");
// 9600 NMEA is the default baud rate for Adafruit MTK GPS's- some use 4800
GPS.begin(9600);
// uncomment this line to turn on RMC (recommended minimum) and GGA (fix data) including altitude
GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA);
// uncomment this line to turn on only the "minimum recommended" data
//GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCONLY);
// For parsing data, we don't suggest using anything but either RMC only or RMC+GGA since
// the parser doesn't care about other sentences at this time
// Set the update rate
GPS.sendCommand(PMTK_SET_NMEA_UPDATE_1HZ); // 1 Hz update rate
// For the parsing code to work nicely and have time to sort thru the data, and
// print it out we don't suggest using anything higher than 1 Hz
// Request updates on antenna status, comment out to keep quiet
GPS.sendCommand(PGCMD_ANTENNA);
delay(1000);
// Ask for firmware version
mySerial.println(PMTK_Q_RELEASE);
}
uint32_t timer = millis();
void loop() // run over and over again
{
char c = GPS.read();
// if you want to debug, this is a good time to do it!
if ((c) && (GPSECHO))
Serial.write(c);
// if a sentence is received, we can check the checksum, parse it...
if (GPS.newNMEAreceived()) {
// a tricky thing here is if we print the NMEA sentence, or data
// we end up not listening and catching other sentences!
// so be very wary if using OUTPUT_ALLDATA and trytng to print out data
//Serial.println(GPS.lastNMEA()); // this also sets the newNMEAreceived() flag to false
if (!GPS.parse(GPS.lastNMEA())) // this also sets the newNMEAreceived() flag to false
return; // we can fail to parse a sentence in which case we should just wait for another
}
// if millis() or timer wraps around, we'll just reset it
if (timer > millis()) timer = millis();
// approximately every 2 seconds or so, print out the current stats
if (millis() - timer > 2000) {
timer = millis(); // reset the timer
Serial.print("\ndate: ");
Serial.println(GPS.milliseconds);
// Serial.print("Date: ");
// Serial.print(GPS.day, DEC); Serial.print('/');
// Serial.print(GPS.month, DEC); Serial.print("/20");
// Serial.println(GPS.year, DEC);
Serial.print("Fix: "); Serial.print((int)GPS.fix);
Serial.print(" quality: "); Serial.println((int)GPS.fixquality);
if (GPS.fix) {
Serial.print("Location: ");
Serial.print(GPS.latitude, 4); Serial.print(GPS.lat);
Serial.print(", ");
Serial.print(GPS.longitude, 4); Serial.println(GPS.lon);
Serial.print("Speed (knots): "); Serial.println(GPS.speed);
Serial.print("Angle: "); Serial.println(GPS.angle);
Serial.print("Altitude: "); Serial.println(GPS.altitude);
Serial.print("Satellites: "); Serial.println((int)GPS.satellites);
}
}
}
| [
"russell.elfenbein@gmail.com"
] | russell.elfenbein@gmail.com |
99faec7bd4ed4962b44fc75431a13a17a2472808 | 794aa11356f60837429d371dcbce9de4680b713c | /Source/Net/LibNet/SMTP.cpp | 435da95eac0363835c3b6e489b1f1f56712b2a36 | [
"MIT"
] | permissive | dzik143/tegenaria | bbe7d83f85229671d8e80001321f4aff23518583 | a6c138633ab14232a2229d7498875d9d869d25a9 | refs/heads/main | 2023-01-02T09:57:50.399630 | 2020-10-26T04:30:39 | 2020-10-26T04:30:39 | 305,517,473 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,528 | cpp | /******************************************************************************/
/* */
/* Copyright (c) 2010, 2014 Sylwester Wysocki <sw143@wp.pl> */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining a */
/* copy of this software and associated documentation files (the "Software"), */
/* to deal in the Software without restriction, including without limitation */
/* the rights to use, copy, modify, merge, publish, distribute, sublicense, */
/* and/or sell copies of the Software, and to permit persons to whom the */
/* Software is furnished to do so, subject to the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be included in */
/* all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR */
/* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, */
/* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL */
/* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER */
/* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING */
/* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER */
/* DEALINGS IN THE SOFTWARE. */
/* */
/******************************************************************************/
//
// Purpose: Client to send mail via SMTP server.
//
#pragma qcbuild_set_file_title("SMTP client (email)")
#include "Net.h"
#include "NetInternal.h"
namespace Tegenaria
{
#define SMTP_EHLO "EHLO Dirligo\r\n"
#define SMTP_AUTH_LOGIN "AUTH LOGIN\r\n"
#define SMTP_DATA "DATA\r\n"
#define SMTP_END "\r\n.\r\n"
#define SMTP_RSET "RSET\r\n"
#define SMTP_QUIT "QUIT\r\n"
#define SMTP_HEAD_FMT "From: %s <%s>\r\n" \
"To: <%s>\r\n" \
"Subject: %s\r\n" \
"Content-Type: text/plain\r\n" \
"Mime-Version: 1.0\r\n" \
"X-Mailer: Dirligo\r\n" \
"Content-Transfer-Encoding: 7bit\r\n\r\n"
#define SMTP_BASE64_USER "334 VXNlcm5hbWU6"
#define SMTP_BASE64_PASS "334 UGFzc3dvcmQ6"
//
// Read SMTP server response in 'XXX message' format.
//
// smtpCode - SMTP response code (OUT).
// msg - buffer, where to put server message (OUT).
// msgSize - size of msg[] buffer in bytes (IN).
// nc - pointer NetConnection object connected to SMTP server (IN).
//
// RETURNS: 0 if OK.
//
int NetSmtpReadServerAnswer(int *smtpCode, char *msg,
int msgSize, NetConnection *nc)
{
DBG_ENTER3("NetSmtpReadServerAnswer");
int exitCode = -1;
int smtpCodeGroup = 0;
msg[0] = 0;
//
// Read message.
//
int readed = nc -> read(msg, msgSize);
FAIL(readed <= 0);
msg[readed - 1] = 0;
//
// Decode SMTP code.
//
*smtpCode = atoi(msg);
DEBUG2("Received SMTP message [%s].\n", msg);
//
// Get first digit from 3-digits SMTP code.
// 2xx and 3xx means success.
// 4xx and 5xx means error.
//
smtpCodeGroup = (*smtpCode) / 100;
FAIL(smtpCodeGroup != 2 && smtpCodeGroup != 3);
//
// Error handler.
//
exitCode = 0;
fail:
if (exitCode)
{
Error("ERROR: Cannot read answer from SMTP server or server fail.\n"
"SMTP message is : '%s'.\n", msg);
}
DBG_LEAVE3("NetSmtpReadServerAnswer");
return exitCode;
}
//
// Send email using existing SMTP server.
//
// smtpHost - hostname of smtp server to use e.g. "smtp.wp.pl" (IN).
// smtpPort - port, where smtp server listening. Default is 25. (IN).
// from - from field in email e.g. login@wp.pl (IN).
// subject - subject field in email (IN).
// receivers - list of destination email addresses (IN).
// message - message field in email (IN).
// login - login to authenticate on smtp server (IN).
// password - password to authenticate on smtp server (IN).
//
// RETURNS: 0 if OK,
// -1 otherwise.
//
int NetSmtpSendMail(const char *smtpHost, int smtpPort, const char *from,
const char *fromFull, const char *subject,
vector<string> receivers, const char *message,
const char *login, const char *password)
{
DBG_ENTER2("NetSmtpSendMail");
int exitCode = -1;
NetConnection *nc = NULL;
string body;
string hash;
char buf[512];
int smtpCode = -1;
int written = -1;
int readed = -1;
int len = -1;
//
// Check args.
//
FAILEX(smtpHost == NULL, "ERROR: 'smtpHost' cannot be NULL in NetSmtpSendMail()");
FAILEX(from == NULL, "ERROR: 'from' cannot be NULL in NetSmtpSendMail()");
FAILEX(fromFull == NULL, "ERROR: 'fromFull' cannot be NULL in NetSmtpSendMail()");
FAILEX(subject == NULL, "ERROR: 'subject' cannot be NULL in NetSmtpSendMail()");
FAILEX(message == NULL, "ERROR: 'message' cannot be NULL in NetSmtpSendMail()");
FAILEX(login == NULL, "ERROR: 'login' cannot be NULL in NetSmtpSendMail()");
FAILEX(password == NULL, "ERROR: 'password' cannot be NULL in NetSmtpSendMail()");
FAILEX(receivers.empty(), "ERROR: 'receivers' vector cannot be empty in NetSmtpSendMail()");
//
// Connect to SMTP server.
//
nc = NetConnect(smtpHost, smtpPort);
FAIL(nc == NULL);
//
// Get server hello.
//
FAIL(NetSmtpReadServerAnswer(&smtpCode, buf, sizeof(buf), nc));
//
// Send client hello message.
//
written = nc -> write(SMTP_EHLO, sizeof(SMTP_EHLO) - 1);
DEBUG2("NetSmtpSendMail: Sent [%s].\n", SMTP_EHLO);
FAIL(written < 0);
//
// Server should reply with list of known auth methods.
//
FAIL(NetSmtpReadServerAnswer(&smtpCode, buf, sizeof(buf), nc));
//
// Authenticate.
// Client: AUTH LOGIN
// Server: VXNlcm5hbWU6 <- ask for base64(username)
// Client: base64(login)
// Server: UGFzc3dvcmQ6 <- ask for base64(pass)
// Client: base64(pass)
//
written = nc -> write(SMTP_AUTH_LOGIN, sizeof(SMTP_AUTH_LOGIN) - 1);
DEBUG2("NetSmtpSendMail: Sent AUTH LOGIN.\n");
for (int i = 0; i < 2; i++)
{
FAIL(NetSmtpReadServerAnswer(&smtpCode, buf, sizeof(buf), nc));
//
// Username request.
//
if (strncmp(buf, SMTP_BASE64_USER, sizeof(SMTP_BASE64_USER) - 1) == 0)
{
hash = NetBase64(login, strlen(login));
len = snprintf(buf, sizeof(buf), "%s\r\n", hash.c_str());
nc -> write(buf, len);
DEBUG2("NetSmtpSendMail: Sent username.\n");
}
//
// Password request.
//
else if (strncmp(buf, SMTP_BASE64_PASS, sizeof(SMTP_BASE64_PASS) - 1) == 0)
{
hash = NetBase64(password, strlen(password));
len = snprintf(buf, sizeof(buf), "%s\r\n", hash.c_str());
nc -> write(buf, len);
DEBUG2("NetSmtpSendMail: Sent password.\n");
}
//
// Unexpected message request.
//
else
{
Error("Unexpected SMTP message in AUTH LOGIN protocol [%s]\n", buf);
goto fail;
}
}
FAIL(NetSmtpReadServerAnswer(&smtpCode, buf, sizeof(buf), nc));
//
// Send 'MAIL FROM: <from>'.
//
len = snprintf(buf, sizeof(buf) - 1, "MAIL FROM: <%s>\r\n", from);
written = nc -> write(buf, len);
FAIL(written <= 0);
DEBUG2("NetSmtpSendMail: Sent [%s]\n", buf);
FAIL(NetSmtpReadServerAnswer(&smtpCode, buf, sizeof(buf), nc));
//
// Send 'RCPT TO: <address>\r\n' for each receiver address.
//
for (int i = 0; i < receivers.size(); i++)
{
len = snprintf(buf, sizeof(buf) - 1, "RCPT TO: <%s>\r\n", receivers[i].c_str());
written = nc -> write(buf, len);
FAIL(written <= 0);
DEBUG2("NetSmtpSendMail: Sent [%s]\n", buf);
FAIL(NetSmtpReadServerAnswer(&smtpCode, buf, sizeof(buf), nc));
}
//
// Send 'DATA' to begin email body.
//
written = nc -> write(SMTP_DATA, sizeof(SMTP_DATA) - 1);
FAIL(written <= 0);
DEBUG2("NetSmtpSendMail: Sent DATA.\n");
FAIL(NetSmtpReadServerAnswer(&smtpCode, buf, sizeof(buf), nc));
//
// Send body header.
//
len = snprintf(buf, sizeof(buf), SMTP_HEAD_FMT,
fromFull, from, receivers[0].c_str(), subject);
written = nc -> write(buf, len);
FAIL(written <= 0);
DEBUG2("NetSmtpSendMail: Sent header [%s].\n", buf);
//
// Send message part.
//
written = nc -> write(message, strlen(message));
FAIL(written <= 0);
DEBUG2("NetSmtpSendMail: Sent message body.\n");
//
// Send '\r\n.\r\n' to finish DATA part.
//
nc -> write(SMTP_END, sizeof(SMTP_END) - 1);
DEBUG2("NetSmtpSendMail: Sent END tag.\n");
FAIL(NetSmtpReadServerAnswer(&smtpCode, buf, sizeof(buf), nc));
//
// Send RSET command.
//
nc -> write(SMTP_RSET, sizeof(SMTP_RSET) - 1);
DEBUG2("NetSmtpSendMail: Sent RSET.\n");
FAIL(NetSmtpReadServerAnswer(&smtpCode, buf, sizeof(buf), nc));
//
// Send QUIT command.
//
nc -> write(SMTP_QUIT, sizeof(SMTP_QUIT) - 1);
DEBUG2("NetSmtpSendMail: Sent QUIT.\n");
FAIL(NetSmtpReadServerAnswer(&smtpCode, buf, sizeof(buf), nc));
//
// Clean up.
//
exitCode = 0;
fail:
if (exitCode)
{
Error("ERROR: Cannot send email.\n"
"Error code is : %d.\nSMTP code is : %d.\n",
GetLastError(), smtpCode);
}
if (nc)
{
nc -> release();
}
DBG_LEAVE2("NetSmtpSendMail");
return exitCode;
}
} /* namespace Tegenaria */
| [
"sw143@wp.pl"
] | sw143@wp.pl |
a4149646ebb4cf094dfe2e1392f93c4627efe7ac | d4c8c0cd22a3e281624bd1f4d3eff9cbe8c06be8 | /src/traffic/continuous/BitTransposeCTP.cc | 343bb8b4f35ed02e5782908c4a3057addd212283 | [
"Apache-2.0"
] | permissive | dgibson66/supersim | 7aae6fe8b234385d85e0615f471b2815410727c1 | ccc98792a49642ce19362d1ba973946960cf32f4 | refs/heads/master | 2020-06-13T08:23:55.151356 | 2017-05-03T00:49:24 | 2017-05-03T00:49:24 | 75,434,366 | 0 | 0 | null | 2016-12-02T22:01:04 | 2016-12-02T22:01:02 | null | UTF-8 | C++ | false | false | 1,512 | cc | /*
* Copyright 2016 Hewlett Packard Enterprise Development LP
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "traffic/continuous/BitTransposeCTP.h"
#include <bits/bits.h>
#include <factory/Factory.h>
#include <cassert>
BitTransposeCTP::BitTransposeCTP(
const std::string& _name, const Component* _parent,
u32 _numTerminals, u32 _self, Json::Value _settings)
: ContinuousTrafficPattern(_name, _parent, _numTerminals, _self,
_settings) {
assert(bits::isPow2(numTerminals_));
u32 bitsNum = bits::ceilLog2(numTerminals_);
assert(bitsNum % 2 == 0);
u32 bitsNumHalf = bitsNum / 2;
u32 left = self_ >> bitsNumHalf;
u32 right = self_ & ((1 << bitsNumHalf) - 1);
dest_ = (right << bitsNumHalf) | left;
}
BitTransposeCTP::~BitTransposeCTP() {}
u32 BitTransposeCTP::nextDestination() {
return dest_;
}
registerWithFactory("bit_transpose", ContinuousTrafficPattern,
BitTransposeCTP, CONTINUOUSTRAFFICPATTERN_ARGS);
| [
"n.mcdonald83@gmail.com"
] | n.mcdonald83@gmail.com |
0fa05a5ecf30c982f3ba377faef0786978966fbe | a909c4892d9604bfdbee0d5e64308acff2b80789 | /Automixer/hilbert.cpp | b52ecf4ef7f22860e71c6ae8caaf773ef5ea1d60 | [] | no_license | Wujian-sinemedia/AutomixerVST | 0a1a3268921e65a80f313b974a6e86c6b61efc9b | b0b37599d99c8131efe7fca75c9ad15ecb7f881d | refs/heads/master | 2022-01-02T18:37:27.768074 | 2018-03-05T10:21:13 | 2018-03-05T10:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,820 | cpp | /*//use FFT => Phase Shift => IFFT method to do the hilbert transform
#include<iostream>
#include <complex>
#include "./fftw3/fftw3.h"
using namespace std;
int main()
{
int N=4; // length of FFT
fftw_complex *in,*out, *in2; // array for I/O
double z;
cout << "Size of fftw_complex: " << sizeof(fftw_complex) << endl;
in = (fftw_complex*) fftw_malloc(N * sizeof(fftw_complex)); // for Inputting
in2 = (fftw_complex*) fftw_malloc(N * sizeof(fftw_complex)); // for output
out = (fftw_complex*) fftw_malloc(N * sizeof(fftw_complex)); // for comparison
// Initializing the arry will be real numbers {1 2 3 4}
for(int i = 0; i < N; i++){
in[i][0] = i;
in[i][1] = 0;
cout<<in[i][0]<<endl;
}
// making a plan and execute it, then destroy it. Forward FFT
fftw_plan pf = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD, FFTW_ESTIMATE);
fftw_execute(pf);
fftw_destroy_plan(pf);
//do hilbert transform do a phase shift f(w)*-i (w<0)
// f(w)*i(w>0)
// f(w)*0(w=0)
for(int i=0;i<N;i++)
{
cout<<out[i][0]<<" "<<out[i][1]<<endl;
}
for(int i= 0; i < N; i++)
{
if(i<N/2)
{
out[i][1]=-1*out[i][1];
}
if(i==N/2)
{
out[i][0]=0;
out[i][1]=0;
}
if(i>N/2)
{
out[i][0]=-1*out[i][0];
}
if(i==0)
{
out[i][0]=0;
out[i][1]=0;
}
z=out[i][1];
out[i][1]=out[i][0];
out[i][0]=z;
}
// making a plan and execute it, then destroy it. iFFT
fftw_plan pb = fftw_plan_dft_1d(N, out, in2, FFTW_BACKWARD, FFTW_ESTIMATE);
fftw_execute(pb);
fftw_destroy_plan(pb);
// output the fore N results
for(int i= 0; i < N; i++){
cout << in2[i][0]/N << " " <<in2[i][0]/N << endl;
}
// free space
fftw_free(in);
fftw_free(in2);
fftw_free(out);
system("pause");
return 0;
}
*/ | [
"shadowfaxster@gmail.com"
] | shadowfaxster@gmail.com |
8bbd4401fc957276a6386bae316d578f82058759 | ab70a87a253334b9f0fece96c29a292de3c309ba | /Linked_List_Cycle.cpp | 0af5d809510e43e08897a67bfd54d44ec30d7f11 | [] | no_license | likunjk/LeetCode | 9f66bf3990d1daf0a22f7f7491584de949f7dc34 | bd4928a5d94060a53f6dd2df9799c960d3037222 | refs/heads/master | 2020-12-24T14:56:58.225139 | 2014-10-19T07:53:53 | 2014-10-19T07:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,124 | cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
// 如果允许使用额外的空间,那么可以使用unordered_map来记录已经访问过的节点
// 既然不允许的话,那么就只能使用快慢指针来解决问题
bool hasCycle(ListNode *head)
{
if(head==NULL || head->next==NULL)
return false;
ListNode *p1 = head; // p1每次走1步
ListNode *p2 = head->next; //p2每次走2步
while(p2->next!=NULL)
{
p2 = p2->next;
if(p1==p2) //在这里也判断,可以减少判断次数
return true;
if(p2->next!=NULL) //只有当p2可以走2步的时候,p1才走1步
{
p2 = p2->next;
p1 = p1->next;
if(p1==p2)
return true;
}
else
{
return false;
}
}
return false;
}
};
| [
"likunjk@gmail.com"
] | likunjk@gmail.com |
4950fb3d7e888d4ccb3a957ae4c1808b3ff3807c | 37efa9abea03ff506e903b5676dcfda5e707277a | /include/sp2/scene/node.h | 0bc4663f0bfd832df652e5faba88f8fc2d9de088 | [] | no_license | Ghostkeeper/SeriousProton2 | 2fda2e56625ad7d7edd57469339bdf530ab89033 | 8f3ad3ffa02c43a41176bec67c22f09efad0b955 | refs/heads/master | 2020-04-03T04:46:11.307385 | 2018-11-19T19:15:56 | 2018-11-19T19:15:56 | 155,023,443 | 0 | 0 | null | 2018-10-28T01:02:43 | 2018-10-28T01:02:43 | null | UTF-8 | C++ | false | false | 4,609 | h | #ifndef SP2_SCENE_NODE_H
#define SP2_SCENE_NODE_H
#include <sp2/math/matrix4x4.h>
#include <sp2/math/quaternion.h>
#include <sp2/script/bindingObject.h>
#include <sp2/pointerList.h>
#include <sp2/graphics/scene/renderdata.h>
#include <sp2/graphics/animation.h>
#include <sp2/multiplayer/replication.h>
class b2Body;
class btRigidBody;
namespace sp {
namespace multiplayer {
class Server;
class Client;
}
namespace collision {
class Shape;
class Shape2D;
class Joint2D;
class Shape3D;
}
class Node;
class CollisionInfo
{
public:
P<Node> other;
float force;
sp::Vector2d position;
sp::Vector2d normal;
};
class Scene;
class RenderData;
class Node : public ScriptBindingObject
{
public:
Node(P<Node> parent);
virtual ~Node();
P<Node> getParent();
P<Scene> getScene();
const PList<Node>& getChildren();
void setParent(P<Node> new_parent);
void setPosition(Vector2d position);
void setPosition(Vector3d position);
void setRotation(double rotation);
void setRotation(Quaterniond rotation);
void setLinearVelocity(Vector2d velocity);
void setLinearVelocity(Vector3d velocity);
void setAngularVelocity(double velocity);
void setAngularVelocity(Vector3d velocity);
Vector2d getPosition2D();
double getRotation2D();
Vector2d getLocalPoint2D(Vector2d v);
Vector2d getGlobalPosition2D();
double getGlobalRotation2D();
Vector2d getGlobalPoint2D(Vector2d v);
Vector2d getLinearVelocity2D();
double getAngularVelocity2D();
Vector3d getPosition3D();
Quaterniond getRotation3D();
Vector3d getGlobalPosition3D();
Vector3d getGlobalPoint3D(Vector3d v);
Vector3d getLinearVelocity3D();
Vector3d getAngularVelocity3D();
const Matrix4x4f& getGlobalTransform() const { return global_transform; }
const Matrix4x4f& getLocalTransform() const { return local_transform; }
//Set or replace the current collision shape on this body.
//If you want to shape change, you do not need to call removeCollisionShape() before calling setCollisionShape (doing so will reset the velocity)
void setCollisionShape(const collision::Shape& shape);
//Remove the collision shape.
void removeCollisionShape();
//Test if the given point will collide with the shape of this Node.
bool testCollision(sp::Vector2d position);
//Test if this is a solid object, so it has a collision shape, which isn't generated as Sensor.
bool isSolid();
void setAnimation(std::unique_ptr<Animation> animation);
void animationPlay(string key, float speed=1.0);
void animationSetFlags(int flags);
int animationGetFlags();
//Event called every frame.
//The delta is the time in seconds passed sinds the previous frame, multiplied by the global game speed.
//Called when the game is paused with delta = 0
virtual void onUpdate(float delta) {}
//Event called 30 times per second. Not called when the game is paused.
virtual void onFixedUpdate() {}
//Event called when 2 nodes collide. Not called when the game is paused.
virtual void onCollision(CollisionInfo& info) {}
RenderData render_data;
class Multiplayer
{
public:
Multiplayer(Node* node);
~Multiplayer();
void enable();
bool isEnabled();
template<typename T> void replicate(T& var)
{
replication_links.push_back(new multiplayer::ReplicationLink<T>(&var));
}
uint64_t getId() const { return id; }
private:
Node* node;
bool enabled;
uint64_t id;
std::vector<multiplayer::ReplicationLinkBase*> replication_links;
friend class ::sp::multiplayer::Server;
friend class ::sp::multiplayer::Client;
} multiplayer;
private:
Node(Scene* scene);
P<Scene> scene;
P<Node> parent;
PList<Node> children;
b2Body* collision_body2d = nullptr;
btRigidBody* collision_body3d = nullptr;
Vector3d translation;
Quaterniond rotation;
Matrix4x4f global_transform;
Matrix4x4f local_transform;
std::unique_ptr<Animation> animation;
void updateLocalTransform();
void updateGlobalTransform();
void modifyPositionByPhysics(sp::Vector2d position, double rotation);
void modifyPositionByPhysics(sp::Vector3d position, Quaterniond rotation);
friend class Scene;
friend class collision::Shape2D;
friend class collision::Joint2D;
friend class collision::Shape3D;
};
};//namespace sp
#endif//SP2_SCENE_NODE_H
| [
"daid303@gmail.com"
] | daid303@gmail.com |
1b8ec1460a48db409be63a334d57aca6657c0354 | 89f25307e6d2b04a793ee2c5148b4de9cc6265e3 | /opencv_contrib-master/modules/hdf/test/test_precomp.hpp | fd337f200cd5e6c130c6766573ab4426819d246e | [
"BSD-3-Clause"
] | permissive | KVGrygoriev/opencv_tracking_for_javascript | a7ba936f0f51c794bc7fe34f0a1fb296825f7a94 | a68fd180774feca8fe1c326f7b8578e8fd93568e | refs/heads/master | 2023-03-04T16:19:12.764942 | 2021-02-11T15:38:17 | 2021-02-11T15:49:02 | 338,061,579 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 596 | hpp | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifdef __GNUC__
# pragma GCC diagnostic ignored "-Wmissing-declarations"
# if defined __clang__ || defined __APPLE__
# pragma GCC diagnostic ignored "-Wmissing-prototypes"
# pragma GCC diagnostic ignored "-Wextra"
# endif
#endif
#ifndef __OPENCV_TEST_PRECOMP_HPP__
#define __OPENCV_TEST_PRECOMP_HPP__
#include "opencv2/ts.hpp"
#include "opencv2/core.hpp"
#include "opencv2/hdf.hpp"
#endif
| [
"kostiantyn@sensority.net"
] | kostiantyn@sensority.net |
1dead1a7a887b09cfbb39d4031cf3d9f4df40b3b | 27bb5ed9eb1011c581cdb76d96979a7a9acd63ba | /aws-cpp-sdk-ec2/source/model/DescribeVolumeStatusRequest.cpp | dcef704f31eb3c7fd6c9722da5099450f664f370 | [
"Apache-2.0",
"JSON",
"MIT"
] | permissive | exoscale/aws-sdk-cpp | 5394055f0876a0dafe3c49bf8e804d3ddf3ccc54 | 0876431920136cf638e1748d504d604c909bb596 | refs/heads/master | 2023-08-25T11:55:20.271984 | 2017-05-05T17:32:25 | 2017-05-05T17:32:25 | 90,744,509 | 0 | 0 | null | 2017-05-09T12:43:30 | 2017-05-09T12:43:30 | null | UTF-8 | C++ | false | false | 2,102 | cpp | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#include <aws/ec2/model/DescribeVolumeStatusRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::EC2::Model;
using namespace Aws::Utils;
DescribeVolumeStatusRequest::DescribeVolumeStatusRequest() :
m_dryRun(false),
m_dryRunHasBeenSet(false),
m_volumeIdsHasBeenSet(false),
m_filtersHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String DescribeVolumeStatusRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeVolumeStatus&";
if(m_dryRunHasBeenSet)
{
ss << "DryRun=" << std::boolalpha << m_dryRun << "&";
}
if(m_volumeIdsHasBeenSet)
{
unsigned volumeIdsCount = 1;
for(auto& item : m_volumeIds)
{
ss << "VolumeId." << volumeIdsCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
volumeIdsCount++;
}
}
if(m_filtersHasBeenSet)
{
unsigned filtersCount = 1;
for(auto& item : m_filters)
{
item.OutputToStream(ss, "Filter.", filtersCount, "");
filtersCount++;
}
}
if(m_nextTokenHasBeenSet)
{
ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&";
}
if(m_maxResultsHasBeenSet)
{
ss << "MaxResults=" << m_maxResults << "&";
}
ss << "Version=2016-11-15";
return ss.str();
}
void DescribeVolumeStatusRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}
| [
"henso@amazon.com"
] | henso@amazon.com |
b991188b9dabba9c79f28209159e8f7e5b0085a0 | 11ef4bbb8086ba3b9678a2037d0c28baaf8c010e | /Source Code/server/binaries/chromium/gen/services/preferences/public/mojom/tracked_preference_validation_delegate.mojom-shared.h | 6de027199bb92e0fe887ae4dfe9c59ad04c66934 | [] | no_license | lineCode/wasmview.github.io | 8f845ec6ba8a1ec85272d734efc80d2416a6e15b | eac4c69ea1cf0e9af9da5a500219236470541f9b | refs/heads/master | 2020-09-22T21:05:53.766548 | 2019-08-24T05:34:04 | 2019-08-24T05:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,540 | h | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_PREFERENCES_PUBLIC_MOJOM_TRACKED_PREFERENCE_VALIDATION_DELEGATE_MOJOM_SHARED_H_
#define SERVICES_PREFERENCES_PUBLIC_MOJOM_TRACKED_PREFERENCE_VALIDATION_DELEGATE_MOJOM_SHARED_H_
#include <stdint.h>
#include <functional>
#include <ostream>
#include <type_traits>
#include <utility>
#include "base/compiler_specific.h"
#include "base/containers/flat_map.h"
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "services/preferences/public/mojom/tracked_preference_validation_delegate.mojom-shared-internal.h"
#include "mojo/public/mojom/base/values.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/bindings/native_enum.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
namespace prefs {
namespace mojom {
} // namespace mojom
} // namespace prefs
namespace mojo {
namespace internal {
} // namespace internal
} // namespace mojo
namespace prefs {
namespace mojom {
enum class TrackedPreferenceValidationDelegate_ValueState : int32_t {
UNCHANGED,
CLEARED,
SECURE_LEGACY,
CHANGED,
UNTRUSTED_UNKNOWN_VALUE,
TRUSTED_UNKNOWN_VALUE,
TRUSTED_NULL_VALUE,
UNSUPPORTED,
kMinValue = 0,
kMaxValue = 7,
};
std::ostream& operator<<(std::ostream& os, TrackedPreferenceValidationDelegate_ValueState value);
inline bool IsKnownEnumValue(TrackedPreferenceValidationDelegate_ValueState value) {
return internal::TrackedPreferenceValidationDelegate_ValueState_Data::IsKnownValue(
static_cast<int32_t>(value));
}
// Interface base classes. They are used for type safety check.
class TrackedPreferenceValidationDelegateInterfaceBase {};
using TrackedPreferenceValidationDelegatePtrDataView =
mojo::InterfacePtrDataView<TrackedPreferenceValidationDelegateInterfaceBase>;
using TrackedPreferenceValidationDelegateRequestDataView =
mojo::InterfaceRequestDataView<TrackedPreferenceValidationDelegateInterfaceBase>;
using TrackedPreferenceValidationDelegateAssociatedPtrInfoDataView =
mojo::AssociatedInterfacePtrInfoDataView<TrackedPreferenceValidationDelegateInterfaceBase>;
using TrackedPreferenceValidationDelegateAssociatedRequestDataView =
mojo::AssociatedInterfaceRequestDataView<TrackedPreferenceValidationDelegateInterfaceBase>;
} // namespace mojom
} // namespace prefs
namespace std {
template <>
struct hash<::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState>
: public mojo::internal::EnumHashImpl<::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState> {};
} // namespace std
namespace mojo {
template <>
struct EnumTraits<::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState, ::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState> {
static ::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState ToMojom(::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState input) { return input; }
static bool FromMojom(::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState input, ::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState* output) {
*output = input;
return true;
}
};
namespace internal {
template <typename MaybeConstUserType>
struct Serializer<::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState, MaybeConstUserType> {
using UserType = typename std::remove_const<MaybeConstUserType>::type;
using Traits = EnumTraits<::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState, UserType>;
static void Serialize(UserType input, int32_t* output) {
*output = static_cast<int32_t>(Traits::ToMojom(input));
}
static bool Deserialize(int32_t input, UserType* output) {
return Traits::FromMojom(static_cast<::prefs::mojom::TrackedPreferenceValidationDelegate_ValueState>(input), output);
}
};
} // namespace internal
} // namespace mojo
namespace prefs {
namespace mojom {
} // namespace mojom
} // namespace prefs
#endif // SERVICES_PREFERENCES_PUBLIC_MOJOM_TRACKED_PREFERENCE_VALIDATION_DELEGATE_MOJOM_SHARED_H_ | [
"wasmview@gmail.com"
] | wasmview@gmail.com |
da7e916d86176953881af575b89958f84f246ad6 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/base/wmi/tests/logger/structurewrappers.h | 39839ca7ab64c94579ba54972dade1170f8d4ce3 | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,789 | h | // StructureWrappers.h: interface for the CStructureWrappers class.
//
//////////////////////////////////////////////////////////////////////
//***************************************************************************
//
// judyp May 1999
//
//***************************************************************************
#if !defined(AFX_STRUCTUREWRAPPERS_H__138A24E0_ED34_11D2_804A_009027345EE2__INCLUDED_)
#define AFX_STRUCTUREWRAPPERS_H__138A24E0_ED34_11D2_804A_009027345EE2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPersistor;
class CEventTraceProperties;
// Need to be declared before seen in class. Well, duh!
t_ostream& operator<<
(t_ostream &ros,const CEventTraceProperties &r);
t_istream& operator>>
(t_istream &ris,CEventTraceProperties &r);
// The general methodology used here may seem clunky to
// a C programmer.
// If you want to serialize an existing
// EVENT_TRACE_PROPERTIES instance use the Constructor
// "CEventTraceProperties(PEVENT_TRACE_PROPERTIES pProps)"
// to create a CEventTraceProperties instance, call
// Persist, and then destroy the CEventTraceProperties
// instance.
// If you want to de-deserialize an instance call the
// Constructor "CEventTraceProperties()", call Persist,
// call GetEventTracePropertiesInstance, then destroy the
// CEventTraceProperties instance.
// The copy constructor and assignment operators are included
// only for completeness and it is anticipated that they
// will not be used.
// Using Persist for de-serialization assumes you have a valid
// stream which contains a serialized instance.
class CEventTraceProperties
{
private:
friend t_ostream& operator<<
(t_ostream &ros,const CEventTraceProperties &r);
friend t_istream& operator>>
(t_istream &ris,CEventTraceProperties &r);
friend class CPersistor;
public:
CEventTraceProperties();
// This constructor creates a new EVENT_TRACE_PROPERTIES
// instance.
CEventTraceProperties(PEVENT_TRACE_PROPERTIES pProps);
virtual ~CEventTraceProperties();
CEventTraceProperties(CEventTraceProperties &rhs);
CEventTraceProperties &CEventTraceProperties::operator=
(CEventTraceProperties &rhs);
virtual HRESULT Persist (CPersistor &rPersistor);
bool DeSerializationOK() {return m_bDeSerializationOK;}
// Constructs an new EVENT_TRACE_PROPERTIES instance and
// returns it.
PEVENT_TRACE_PROPERTIES GetEventTracePropertiesInstance();
bool IsNULL() {return m_bIsNULL;}
protected:
bool m_bDeSerializationOK;
bool m_bIsNULL;
void Initialize(PEVENT_TRACE_PROPERTIES pProps);
void InitializeMemberVar(TCHAR *ptszValue, int nVar);
void *m_pVarArray[19];
PEVENT_TRACE_PROPERTIES m_pProps;
};
#endif // !defined(AFX_STRUCTUREWRAPPERS_H__138A24E0_ED34_11D2_804A_009027345EE2__INCLUDED_)
| [
"support@cryptoalgo.cf"
] | support@cryptoalgo.cf |
79bef15f7466c7efb0785ed752016aaaf08f9321 | 217344a59ed800b31bbd447dd5857cad3faca2d4 | /AtCoder/Indeed2016/Test1C/C.cc | fb499f080e1056db9455da0d3e015ccb03474dcd | [] | no_license | yl3i/Retired | 99fb62a0835589e6523df19525f93283a7e9c89f | 472a96ccc2ef3c5bd0c2df7ddbe37604030723c4 | refs/heads/master | 2021-05-22T01:58:55.381070 | 2018-05-21T09:30:39 | 2018-05-21T09:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,345 | cc | /*************************************************************************
> File Name: C.cc
> Author: Riho.Yoshioka
> Mail: riho.yoshioka@yandex.com
> Created Time: Sat 09 Jul 2016 07:28:31 PM CST
*************************************************************************/
#include <bits/stdc++.h>
typedef long long LL;
#define REP(i, a) REPP(i, 0, (a) - 1)
#define REPP(i, a, b) for (int i = int(a); i <= int(b); i++)
using namespace std;
const int N = 55;
char mp[N][N];
int Check(int a, int b) {
if (a + b == 0) return 4;
else if (a == 0) {
if (mp[a][b - 1] == '?') return 2;
else if (mp[a][b - 1] == 'R') return 0;
else return 4;
}
else if (b == 0) {
if (mp[a - 1][b] == '?') return 2;
else if (mp[a - 1][b] == 'C') return 0;
else return 4;
}
else {
if (mp[a - 1][b] == 'C' || mp[a][b - 1] == 'R') return 0;
else if (mp[a - 1][b] == 'R') {
if (mp[a][b - 1] == 'C') return 4;
else return 2;
}
else if (mp[a][b - 1] == 'C') {
if (mp[a - 1][b] == 'R') return 4;
else return 2;
}
else return 1;
}
}
int main() {
ios::sync_with_stdio(0);
int r, c;
cin >> r >> c;
REP(i, r) cin >> mp[i];
int ans = 0;
REP(i, r) {
REP(j, c) {
ans += Check(i, j);
}
}
cout << fixed << setprecision(10) << ans / 4.0 << endl;
return 0;
}
| [
"yuzhou627@gmail.com"
] | yuzhou627@gmail.com |
77a00923c4cea581cddf51174d82437e27f39eda | 0ba1f65704a4b678f9705c5632daf32a9c67990d | /LG/LGP4717.cpp | 16405fdf28ac45cd8cd3f461edd7515b6eb81ab1 | [] | no_license | Challestend/challestends-code-set | 7f9e3a239ca32bc6424ac2a68ad46fb60b55ee43 | bd7d6935216d56f3667a6f939298eb84fe44fa6a | refs/heads/master | 2020-03-26T15:59:18.440653 | 2020-01-06T09:22:30 | 2020-01-06T09:22:30 | 145,075,894 | 0 | 0 | null | 2018-08-17T05:44:32 | 2018-08-17T05:30:09 | null | UTF-8 | C++ | false | false | 2,083 | cpp | #include<cstdio>
#define re register
#define maxn 17
#define mod 998244353
namespace cltstream{
#define size 1048576
char cltin[size+1],*ih=cltin,*it=cltin;
inline char gc(){
#ifdef ONLINE_JUDGE
if(ih==it){
it=(ih=cltin)+fread(cltin,1,size,stdin);
if(ih==it)
return EOF;
}
return *ih++;
#else
return getchar();
#endif
}
char cltout[size+1],*oh=cltout,*ot=cltout+size;
inline void pc(char c){
if(oh==ot){
fwrite(cltout,1,size,stdout);
oh=cltout;
}
*oh++=c;
}
#define clop() fwrite(cltstream::cltout,1,cltstream::oh-cltstream::cltout,stdout),cltstream::oh=cltstream::cltout
#undef size
template <typename _tp>
inline void read(_tp& x){
int sn=1;
char c=gc();
for(;c!=45&&(c<48||c>57)&&c!=EOF;c=gc());
if(c==45&&c!=EOF)
sn=-1,c=gc();
for(x=0;c>=48&&c<=57&&c!=EOF;x=(x<<3)+(x<<1)+(c^48),c=gc());
x*=sn;
}
template <typename _tp>
inline void write(_tp x,char text=-1){
if(x<0)
pc(45),x=-x;
if(!x)
pc(48);
else{
int digit[22];
for(digit[0]=0;x;digit[++digit[0]]=x%10,x/=10);
for(;digit[0];pc(digit[digit[0]--]^48));
}
if(text>=0)
pc(text);
}
}
int n;
int F[1<<maxn][3],G[1<<maxn][3];
#define FWT(F,tp) {\
for(re int p=1;p<n;p<<=1)\
for(re int i=0;i<n;i+=p<<1)\
for(re int j=i;j<i+p;++j){\
F[j+p][0]=!tp?(F[j+p][0]+F[j][0])%mod:(F[j+p][0]-F[j][0]+mod)%mod;\
F[j][1]=!tp?(F[j][1]+F[j+p][1])%mod:(F[j][1]-F[j+p][1]+mod)%mod;\
re int x=F[j][2],y=F[j+p][2];\
F[j][2]=(x+y)%mod;\
F[j+p][2]=(x-y+mod)%mod;\
if(tp){\
F[j][2]=499122177LL*F[j][2]%mod;\
F[j+p][2]=499122177LL*F[j+p][2]%mod;\
}\
}\
}
int main(){
cltstream::read(n);
n=1<<n;
for(re int i=0;i<n;++i){
cltstream::read(F[i][0]);
F[i][1]=F[i][2]=F[i][0];
}
for(re int i=0;i<n;++i){
cltstream::read(G[i][0]);
G[i][1]=G[i][2]=G[i][0];
}
FWT(F,0);
FWT(G,0);
for(re int j=0;j<3;++j)
for(re int i=0;i<n;++i)
F[i][j]=1LL*F[i][j]*G[i][j]%mod;
FWT(F,1);
for(re int j=0;j<3;++j)
for(re int i=0;i<n;++i)
cltstream::write(F[i][j],i<n-1?32:10);
clop();
return 0;
}
| [
"624985391@qq.com"
] | 624985391@qq.com |
c0ece3dfd2c7e0acb4685e8f314f8925e4903a41 | 0d439783f02cdf61d0b7f8d7dee3c3a918b7fc43 | /cvimage.h | 9546e70110d0e9fb8b25b01ef83a6d60c0f886ff | [] | no_license | godlzr/HST_alpha | 0bb92a19c552321de8a17c0808d790a1338a5e00 | 45f6ff2b72d53ce4c89e3967615c55988b4eed69 | refs/heads/master | 2020-04-12T15:24:28.007681 | 2015-07-17T14:59:36 | 2015-07-17T14:59:36 | 39,230,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,387 | h | /* CVImage class
*
* Author: Zhongrui Li
* Supervisor: Wonsook Lee
* zli109@uottawa.ca, wslee@uottawa.ca
* EECS, Faculty of Engineering, University of Ottawa, Canada
*
* Date: March 20th, 2015
*
* Description:
* This class is used to process the cv::mat under opencv space.
*/
#ifndef CVIMAGE_H
#define CVIMAGE_H
#include "cv.h"
#include "highgui.h"
#include "gabor.h"
#include "enhancedgabor.h"
#include "matlabhelper.h"
#include "strandsOperator.h"
using namespace cv;
class CVImage
{
public:
Mat oringinal_img;// The original image;
Mat oringinal_img_RGB;
CvRect crop_rect;
Mat cropped_img;
Gabor gabor;
enhancedGabor enGabor;
matlabHelper matHelper;
strandsOperator strOpt;
CVImage();
Mat s_Chanel_Hsv_Img;
Mat gabor_filter_resp;
Mat gabor_filter_img;
Mat enhanced_gabor_img;
Mat eroded_img;
Mat curves_img;
// crop the original image
Mat CroppingImage(Mat _originalImg, CvRect _cpRect);
// convert rgb to hsv and return s channel
Mat ConvertRgbToHsv(Mat _rgbImg);
Mat GaborFilter(Mat _sChanelHSVImg);
Mat EnhancedGaborFilter();
Mat ErodeImage();
Mat StrandsAnalysis();
Mat StrandsEnxtendAndConnection();
Mat MedianFilter();
bool ExportControlPoints(char * filepath);
};
#endif // CVIMAGE_H
| [
"GODLZR@Zhongrui-Lis-MacBook-Pro.local"
] | GODLZR@Zhongrui-Lis-MacBook-Pro.local |
8f92dc56c85f5ad3e3bf2f463d32c1d4f40b6e91 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc035/A/4069712.cpp | d1bd95e3e85af91d132eb82d063cfa6c3312de6f | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 285 | cpp | #include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <cmath>
using namespace std;
int main(void)
{
int W, H;
cin >> W >> H;
cout << (W / 4 * 3 == H ? "4:3" : "16:9") << endl;
return 0;
} | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
4b91472a5ea30a8822d5ad84b8b8469363ccee8c | b9c4c14e57e860d52583a21b9bdf42e98b3eb2b4 | /flowersofthings.ino | bb652c90db1b4696dd06d85ad90a697cb8c9069d | [] | no_license | magnusbauer/flowersofthings | fc66e6af95490d66f3ceaa5a481d9306d134f73b | ad30df2c1e0d72b4f291f46bbb67002b1b8d937e | refs/heads/master | 2021-11-29T14:15:31.347115 | 2018-08-30T21:49:27 | 2018-08-30T21:49:27 | 146,087,048 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,554 | ino |
/*__________________________________________________________Libraries__________________________________________________________*/
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <FS.h>
#include <pins_arduino.h>
#include <ArduinoJson.h>
/*__________________________________________________________General_things__________________________________________________________*/
#define ONE_HOUR 3600000UL
#include "DHT.h"
#define DHTPIN 4 // what digital pin the DHT22 is conected to
#define DHTTYPE DHT22 // there are multiple kinds of DHT sensors
DHT dht(DHTPIN, DHTTYPE);
float h = 0; // variable for air humidity
float t = 0; // variable for air temperature
int humiditylimit = 750; // soil humidity threshold - when to water
int waterduration = 10; // how long should one watering period last
int waitingtime = 30; // how long should be waited after one watering
uint32_t lastwater = 0; // saves the timestamp of the last watering
ESP8266WebServer server(80); // create a web server on port 80
File fsUploadFile; // a File variable to temporarily store the received file
ESP8266WiFiMulti wifiMulti; // Create an instance of the ESP8266WiFiMulti class, called 'wifiMulti'
const char *OTAName = "ESP8266"; // A name and a password for the OTA service
const char *OTAPassword = "esp8266";
const char* mdnsName = "esp8266"; // Domain name for the mDNS responder
WiFiUDP UDP; // Create an instance of the WiFiUDP class to send and receive UDP messages
IPAddress timeServerIP; // The time.nist.gov NTP server's IP address
const char* ntpServerName = "time.nist.gov";
const int NTP_PACKET_SIZE = 48; // NTP time stamp is in the first 48 bytes of the message
byte packetBuffer[NTP_PACKET_SIZE]; // A buffer to hold incoming and outgoing packets
/*__________________________________________________________Config_file__________________________________________________________*/
bool loadConfig() {
File configFile = SPIFFS.open("/config.json", "r");
if (!configFile) {
Serial.println("Failed to open config file");
return false;
}
size_t size = configFile.size();
if (size > 1024) {
Serial.println("Config file size is too large");
return false;
}
// Allocate a buffer to store contents of the file.
std::unique_ptr<char[]> buf(new char[size]);
// We don't use String here because ArduinoJson library requires the input
// buffer to be mutable. If you don't use ArduinoJson, you may as well
// use configFile.readString instead.
configFile.readBytes(buf.get(), size);
StaticJsonBuffer<200> jsonBuffer;
JsonObject& json = jsonBuffer.parseObject(buf.get());
if (!json.success()) {
Serial.println("Failed to parse config file");
return false;
}
const String hl = json["humiditylimit"];
humiditylimit = hl.toInt();
const String wd = json["waterduration"];
waterduration = wd.toInt();
const String wt = json["waitingtime"];
waitingtime = wt.toInt();
const String lw = json["lastwater"];
lastwater = lw.toInt();
// Real world application would store these values in some variables for
// later use.
Serial.println("values in config.json");
Serial.println(humiditylimit);
Serial.println(waterduration);
Serial.println(waitingtime);
Serial.println(lastwater);
return true;
}
/*__________________________________________________________SETUP__________________________________________________________*/
void setup() {
Serial.begin(115200); // Start the Serial communication to send messages to the computer
delay(10);
Serial.println("\r\n");
dht.begin(); // initalize DHT
pinMode(D1, OUTPUT); // initialize pin for pump
startWiFi(); // Start a Wi-Fi access point, and try to connect to some given access points. Then wait for either an AP or STA connection
startOTA(); // Start the OTA service
startSPIFFS(); // Start the SPIFFS and list all contents
startMDNS(); // Start the mDNS responder
startServer(); // Start a HTTP server with a file read handler and an upload handler
startUDP(); // Start listening for UDP messages to port 123
WiFi.hostByName(ntpServerName, timeServerIP); // Get the IP address of the NTP server
Serial.print("Time server IP:\t");
Serial.println(timeServerIP);
sendNTPpacket(timeServerIP);
delay(500);
}
/*__________________________________________________________LOOP__________________________________________________________*/
const unsigned long intervalNTP = ONE_HOUR; // Update the time every hour
unsigned long prevNTP = 0;
unsigned long lastNTPResponse = millis();
const unsigned long intervalTemp = 6000; // Do a temperature measurement every minute
unsigned long prevTemp = 0;
bool tmpRequested = false;
const unsigned long DS_delay = 750; // Reading the temperature from the DS18x20 can take up to 750ms
uint32_t timeUNIX = 0; // The most recent timestamp received from the time server
void loop() {
unsigned long currentMillis = millis();
if (currentMillis - prevNTP > intervalNTP) { // Request the time from the time server every hour
prevNTP = currentMillis;
sendNTPpacket(timeServerIP);
}
uint32_t time = getTime(); // Check if the time server has responded, if so, get the UNIX time
if (time) {
timeUNIX = time;
Serial.print("NTP response:\t");
Serial.println(timeUNIX);
lastNTPResponse = millis();
} else if ((millis() - lastNTPResponse) > 24UL * ONE_HOUR) {
Serial.println("More than 24 hours since last NTP response. Rebooting.");
Serial.flush();
ESP.reset();
}
if (timeUNIX != 0) {
if (currentMillis - prevTemp > intervalTemp) { // Every minute, request the temperature
//tempSensors.requestTemperatures(); // Request the temperature from the sensor (it takes some time to read it)
tmpRequested = true;
prevTemp = currentMillis;
//Serial.println("Temperature requested");
}
if (currentMillis - prevTemp > DS_delay && tmpRequested) { // 750 ms after requesting the temperature
uint32_t actualTime = timeUNIX + (currentMillis - lastNTPResponse) / 1000;
// The actual time is the last NTP time plus the time that has elapsed since the last NTP response
tmpRequested = false;
//float temp = tempSensors.getTempCByIndex(0); // Get the temperature from the sensor
h = dht.readHumidity();
t = dht.readTemperature();
delay(3000);
h = dht.readHumidity(); // read twice to avoid nans
t = dht.readTemperature();
int humidity = analogRead(0);
if (humidity>humiditylimit && (actualTime-lastwater)>waitingtime){
// change here when using multiple soil humidity sensors with multiple if cases testing each sensor
water_plants("1",waterduration);
lastwater=actualTime;
changeConfig("lastwater",lastwater);
}
Serial.printf("Appending parameters to file at time: %lu, \n", actualTime);
Serial.println(String(humidity));
Serial.println(String(t));
Serial.println(String(h));
File tempLog = SPIFFS.open("/data.csv", "a"); // Write the time and the temperature to the csv file
tempLog.print(actualTime);
tempLog.print(',');
tempLog.print(t);
tempLog.print(',');
tempLog.print(h);
tempLog.print(',');
tempLog.println(humidity);
int filesize = tempLog.size();
Serial.println(String(filesize));
tempLog.close();
if(filesize>1500000){
//remove data if file gets to big, can be done better by deleting just the oldest data
Serial.println("deleted data file because it was too big");
SPIFFS.remove("/data.csv");
}
}
} else { // If we didn't receive an NTP response yet, send another request
sendNTPpacket(timeServerIP);
delay(500);
}
server.handleClient(); // run the server
ArduinoOTA.handle(); // listen for OTA events
}
/*__________________________________________________________SETUP_FUNCTIONS__________________________________________________________*/
void startWiFi() { // Try to connect to some given access points. Then wait for a connection
wifiMulti.addAP("SSID","password");
Serial.println("Connecting");
while (wifiMulti.run() != WL_CONNECTED) { // Wait for the Wi-Fi to connect
delay(250);
Serial.print('.');
}
Serial.println("\r\n");
Serial.print("Connected to ");
Serial.println(WiFi.SSID()); // Tell us what network we're connected to
Serial.print("IP address:\t");
Serial.print(WiFi.localIP()); // Send the IP address of the ESP8266 to the computer
Serial.println("\r\n");
}
void startUDP() {
Serial.println("Starting UDP");
UDP.begin(123); // Start listening for UDP messages to port 123
Serial.print("Local port:\t");
Serial.println(UDP.localPort());
}
void startOTA() { // Start the OTA service
ArduinoOTA.setHostname(OTAName);
ArduinoOTA.setPassword(OTAPassword);
ArduinoOTA.onStart([]() {
Serial.println("Start");
});
ArduinoOTA.onEnd([]() {
Serial.println("\r\nEnd");
});
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
});
ArduinoOTA.onError([](ota_error_t error) {
Serial.printf("Error[%u]: ", error);
if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
else if (error == OTA_END_ERROR) Serial.println("End Failed");
});
ArduinoOTA.begin();
Serial.println("OTA ready\r\n");
}
void startSPIFFS() { // Start the SPIFFS and list all contents
SPIFFS.begin(); // Start the SPI Flash File System (SPIFFS)
Serial.println("SPIFFS started. Contents:");
{
Dir dir = SPIFFS.openDir("/");
while (dir.next()) { // List the file system contents
String fileName = dir.fileName();
size_t fileSize = dir.fileSize();
Serial.printf("\tFS File: %s, size: %s\r\n", fileName.c_str(), formatBytes(fileSize).c_str());
}
Serial.printf("\n");
}
// if (!saveConfig()) {
// Serial.println("Failed to save config");
// } else {
// Serial.println("Config saved");
// }
if (!loadConfig()) {
Serial.println("Failed to load config");
} else {
Serial.println("Config loaded");
}
}
void startMDNS() { // Start the mDNS responder
MDNS.begin(mdnsName); // start the multicast domain name server
Serial.print("mDNS responder started: http://");
Serial.print(mdnsName);
Serial.println(".local");
}
void startServer() { // Start a HTTP server with a file read handler and an upload handler
server.on("/edit.html", HTTP_POST, []() { // If a POST request is sent to the /edit.html address,
server.send(200, "text/plain", "");
}, handleFileUpload); // go to 'handleFileUpload'
server.on("/water", handleWater);
server.on("/soil", handleSoil);
server.on("/hum", handleHum);
server.on("/temp", handleTemp);
server.on("/setwaterduration", handleSetWaterDuration);
server.on("/setwaiting", handleSetWaiting);
server.on("/sethumidity", handleSetHumidity);
server.onNotFound(handleNotFound); // if someone requests any other file or page, go to function 'handleNotFound'
// and check if the file exists
server.begin(); // start the HTTP server
Serial.println("HTTP server started.");
}
/*__________________________________________________________SERVER_HANDLERS__________________________________________________________*/
void handleNotFound() { // if the requested file or page doesn't exist, return a 404 not found error
if (!handleFileRead(server.uri())) { // check if the file exists in the flash memory (SPIFFS), if so, send it
server.send(404, "text/plain", "404: File Not Found");
}
}
bool handleFileRead(String path) { // send the right file to the client (if it exists)
Serial.println("handleFileRead: " + path);
if (path.endsWith("/")) path += "index.html"; // If a folder is requested, send the index file
String contentType = getContentType(path); // Get the MIME type
String pathWithGz = path + ".gz";
if (SPIFFS.exists(pathWithGz) || SPIFFS.exists(path)) { // If the file exists, either as a compressed archive, or normal
if (SPIFFS.exists(pathWithGz)) // If there's a compressed version available
path += ".gz"; // Use the compressed verion
File file = SPIFFS.open(path, "r"); // Open the file
size_t sent = server.streamFile(file, contentType); // Send it to the client
file.close(); // Close the file again
Serial.println(String("\tSent file: ") + path);
return true;
}
Serial.println(String("\tFile Not Found: ") + path); // If the file doesn't exist, return false
return false;
}
void handleFileUpload() { // upload a new file to the SPIFFS
HTTPUpload& upload = server.upload();
String path;
if (upload.status == UPLOAD_FILE_START) {
path = upload.filename;
if (!path.startsWith("/")) path = "/" + path;
if (!path.endsWith(".gz")) { // The file server always prefers a compressed version of a file
String pathWithGz = path + ".gz"; // So if an uploaded file is not compressed, the existing compressed
if (SPIFFS.exists(pathWithGz)) // version of that file must be deleted (if it exists)
SPIFFS.remove(pathWithGz);
}
Serial.print("handleFileUpload Name: "); Serial.println(path);
fsUploadFile = SPIFFS.open(path, "w"); // Open the file for writing in SPIFFS (create if it doesn't exist)
path = String();
} else if (upload.status == UPLOAD_FILE_WRITE) {
if (fsUploadFile)
fsUploadFile.write(upload.buf, upload.currentSize); // Write the received bytes to the file
} else if (upload.status == UPLOAD_FILE_END) {
if (fsUploadFile) { // If the file was successfully created
fsUploadFile.close(); // Close the file again
Serial.print("handleFileUpload Size: "); Serial.println(upload.totalSize);
server.sendHeader("Location", "/success.html"); // Redirect the client to the success page
server.send(303);
} else {
server.send(500, "text/plain", "500: couldn't create file");
}
}
}
/*__________________________________________________________HELPER_FUNCTIONS__________________________________________________________*/
String formatBytes(size_t bytes) { // convert sizes in bytes to KB and MB
if (bytes < 1024) {
return String(bytes) + "B";
} else if (bytes < (1024 * 1024)) {
return String(bytes / 1024.0) + "KB";
} else if (bytes < (1024 * 1024 * 1024)) {
return String(bytes / 1024.0 / 1024.0) + "MB";
}
}
String getContentType(String filename) { // determine the filetype of a given filename, based on the extension
if (filename.endsWith(".html")) return "text/html";
else if (filename.endsWith(".css")) return "text/css";
else if (filename.endsWith(".js")) return "application/javascript";
else if (filename.endsWith(".ico")) return "image/x-icon";
else if (filename.endsWith(".gz")) return "application/x-gzip";
return "text/plain";
}
unsigned long getTime() { // Check if the time server has responded, if so, get the UNIX time, otherwise, return 0
if (UDP.parsePacket() == 0) { // If there's no response (yet)
return 0;
}
UDP.read(packetBuffer, NTP_PACKET_SIZE); // read the packet into the buffer
// Combine the 4 timestamp bytes into one 32-bit number
uint32_t NTPTime = (packetBuffer[40] << 24) | (packetBuffer[41] << 16) | (packetBuffer[42] << 8) | packetBuffer[43];
// Convert NTP time to a UNIX timestamp:
// Unix time starts on Jan 1 1970. That's 2208988800 seconds in NTP time:
const uint32_t seventyYears = 2208988800UL;
// subtract seventy years:
uint32_t UNIXTime = NTPTime - seventyYears;
return UNIXTime;
}
void sendNTPpacket(IPAddress& address) {
Serial.println("Sending NTP request");
memset(packetBuffer, 0, NTP_PACKET_SIZE); // set all bytes in the buffer to 0
// Initialize values needed to form NTP request
packetBuffer[0] = 0b11100011; // LI, Version, Mode
// send a packet requesting a timestamp:
UDP.beginPacket(address, 123); // NTP requests are to port 123
UDP.write(packetBuffer, NTP_PACKET_SIZE);
UDP.endPacket();
}
/*__________________________________________________________flowersofthings_functions__________________________________________________________*/
void water_plants(String plant, int duration) {
if (plant == "1") {
//digitalWrite(D2, 1); // switch all valves
//digitalWrite(D3, 1); // switch all valves
//delay(250); //wait
digitalWrite(D1, 1); // turn on pump
delay(duration*250);
digitalWrite(D1, 0);
}
if (plant == "2") {
// add valves that have to be switched
// add pump
}
}
void handleWater() {
String plant = "";
int duration = 0;
if (server.arg("plant")== ""){ //Parameter not found
Serial.println("Argument not found");
}else{ //Parameter found
plant = server.arg("plant"); //Gets the value of the query parameter
}
if (server.arg("duration")== ""){ //Parameter not found
Serial.println("Argument not found");
}else{ //Parameter found
duration = server.arg("duration").toInt(); //Gets the value of the query parameter
}
water_plants(plant,duration);
Serial.println("manually water plant "+String(plant)+" for "+String(duration*250)+" seconds");
server.send(200, "text/plain", "OK_"+String(plant)+"_"+String(duration)); //Returns the HTTP response
}
void handleSoil() {
Serial.println("Soil");
int humidity = analogRead(A0);
Serial.println("soil humidity requested manually "+String(humidity));
server.send(200, "text/plain", String(humidity)); //Returns the HTTP response
}
void handleTemp() {
Serial.println("Temp");
float t = dht.readTemperature();
Serial.println("temperature requested manually "+String(t));
server.send(200, "text/plain", String(t)); //Returns the HTTP response
}
void handleHum() {
float h = dht.readHumidity();
Serial.println("humidity requested manually "+String(h));
server.send(200, "text/plain", String(h)); //Returns the HTTP response
}
void changeConfig(String key,int var){
File configFile = SPIFFS.open("/config.json", "r");
if (!configFile) {
Serial.println("Failed to open config file");
}
size_t size = configFile.size();
if (size > 1024) {
Serial.println("Config file size is too large");
}
// Allocate a buffer to store contents of the file.
std::unique_ptr<char[]> buf(new char[size]);
// We don't use String here because ArduinoJson library requires the input
// buffer to be mutable. If you don't use ArduinoJson, you may as well
// use configFile.readString instead.
configFile.readBytes(buf.get(), size);
StaticJsonBuffer<200> jsonBuffer;
JsonObject& json = jsonBuffer.parseObject(buf.get());
if (!json.success()) {
Serial.println("Failed to parse config file");
}
Serial.println(key+String(var));
json[key] = String(var);
if (!configFile) {
Serial.println("Failed to open config file for writing");
}
SPIFFS.remove("/config.json");
File newconfigFile = SPIFFS.open("/config.json", "w");
json.printTo(newconfigFile);
}
void handleSetHumidity() {
if (server.arg("humidity")== ""){ //Parameter not found
server.send(200, "text/plain", "Argument not found"); //Returns the HTTP response
}else{ //Parameter found
humiditylimit = server.arg("humidity").toInt(); //Gets the value of the query parameter
changeConfig("humiditylimit",humiditylimit);
server.send(200, "text/plain", "OK_"+String(humiditylimit)); //Returns the HTTP response
}
}
void handleSetWaterDuration() {
if (server.arg("duration")== ""){ //Parameter not found
server.send(200, "text/plain", "Argument not found"); //Returns the HTTP response
}else{ //Parameter found
waterduration = server.arg("duration").toInt(); //Gets the value of the query parameter
changeConfig("waterduration",waterduration);
server.send(200, "text/plain", "OK_"+String(waterduration)); //Returns the HTTP response
}
}
void handleSetWaiting() {
if (server.arg("time")== ""){ //Parameter not found
server.send(200, "text/plain", "Argument not found"); //Returns the HTTP response
}else{ //Parameter found
waitingtime = server.arg("time").toInt(); //Gets the value of the query parameter
changeConfig("waitingtime",waitingtime);
server.send(200, "text/plain", "OK_"+String(waitingtime)); //Returns the HTTP response
}
}
| [
"magnus.bauer@physik.uni-muenchen.de"
] | magnus.bauer@physik.uni-muenchen.de |
dba154ec8fe1a32c09c6ed87cc92cf7ac5ef6501 | 23b0864cd3cad8d6e7e33f39f1747aebd6ec23f1 | /src/Alignment.h | 17ace4b55717ad3952052ea6991c5c0334ec4cf7 | [] | no_license | wang-h/HieraParser | 868452132f1d68ba8710616b5697ee47a130d04b | 581a8f623eedf7e12091afbb4195b4242e3bffb9 | refs/heads/master | 2020-03-23T12:57:09.754725 | 2018-07-26T10:12:41 | 2018-07-26T10:12:41 | 141,592,451 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 639 | h | #ifndef ALIGNMENT_H
#define ALIGNMENT_H
#include <vector>
#include <set>
#include <string>
#include "utils/StringUtils.h"
#include "utils/AssertDef.h"
namespace HieraParser
{
typedef std::vector<std::set<int>> AlignmentTemplate;
class Alignment : public AlignmentTemplate
{
// alignment object does not allow the input line as empty line.
public:
Alignment() : valid_(false){};
Alignment(const size_t &size) : valid_(false) {resize(size);};
~Alignment(){};
static Alignment *CreateFromString(const std::string &line);
private:
bool valid_;
};
} // namespace HieraParser
#endif | [
"alveinwang@gmail.com"
] | alveinwang@gmail.com |
fb54ef512f4747fec1059836b24c2331fa4f3548 | d4e10809254528e731c783d69e936924eb5d2d21 | /sig/include/sig/gs_grid.h | f6662995f2bb56d7e823d7e3e86659885c60efe1 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | oolmos98/Object-Fly-Through | ada35c9e0bdc7f5946be67c8f8739396165d8a38 | fea3ef48a3ceb595ae8de55d04597a79677a2009 | refs/heads/master | 2020-09-22T07:01:17.851079 | 2020-01-19T03:15:18 | 2020-01-19T03:15:18 | 225,096,702 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,613 | h | /*=======================================================================
Copyright (c) 2018-2019 Marcelo Kallmann.
This software is distributed under the Apache License, Version 2.0.
All copies must contain the full copyright notice licence.txt located
at the base folder of the distribution.
=======================================================================*/
# ifndef GS_GRID_H
# define GS_GRID_H
/** \file gs_grid.h
* Manages data in a n-D regular grid */
# include <sig/gs_vec.h>
# include <sig/gs_vec2.h>
# include <sig/gs_array.h>
# include <sig/gs_output.h>
# include <sig/gs_manager.h>
/*! Describes how to subdivide one dimensional axis.
This class is required to set up the decomposition in GsGrid */
class GsGridAxis
{ public :
int segs; // number of segments to divide this axis
float min; // minimum coordinate
float max; // maximum coordinate
public :
GsGridAxis ( int se, float mi, float ma )
{ segs=se; min=mi; max=ma; }
void set ( int se, float mi, float ma )
{ segs=se; min=mi; max=ma; }
friend GsOutput& operator<< ( GsOutput& o, const GsGridAxis& a )
{ return o << a.segs << gspc << a.min << gspc << a.max; }
friend GsInput& operator>> ( GsInput& i, GsGridAxis& a )
{ return i >> a.segs >> a.min >> a.max; }
};
/*! \class GsGridBase gs_grid.h
\brief n-D regular grid base class
GsGridBase has methods to translate n dimensional grid coordinates
into a one dimension bucket array coordinate. Use the derived GsGrid
template class to associate user data to the grid. */
class GsGridBase
{ private :
GsArray<GsGridAxis> _axis;
GsArray<int> _size; // subspaces sizes for fast bucket determination
GsArray<float> _seglen; // axis segments lengths for fast cell determination
int _cells;
public :
/*! Constructs a grid of given dimension (dim) and number of
segments in each axis (ns). The number of cells will be ns^dim.
Axes are normalized in [0,1] */
GsGridBase ( int dim=0, int ns=0 );
/*! Initializes the grid with given dimension and number of
segments in each axis. The number of cells will be ns^dim.
Axes are normalized in [0,1] */
void init ( int dim, int ns );
/*! Destroy the existing grid and initializes a new one according
to the descriptions in the desc array. */
void init ( const GsArray<GsGridAxis>& axis_desc );
const GsArray<GsGridAxis>& axis_desc() const { return _axis; }
float max_coord ( int axis ) const { return _axis[axis].max; }
float min_coord ( int axis ) const { return _axis[axis].min; }
int segments ( int axis ) const { return _axis[axis].segs; }
float seglen ( int axis ) const { return _seglen[axis]; }
/*! Returns the number of dimensions of the grid */
int dimensions () const { return _axis.size(); }
/*! Returns the total number of cells in the grid */
int cells () const { return _cells; }
/*! Get the index of a cell from its coordinates. 2D version only. */
int cell_index ( int i, int j ) const { return _size[1]*j + i; }
/*! Get the index of a cell from its coordinates. 3D version only. */
int cell_index ( int i, int j, int k ) const { return _size[2]*k + _size[1]*j + i; }
/*! Get the index of a cell from its coordinates. Multidimensional version */
int cell_index ( const GsArray<int>& coords ) const;
/*! Get the cell coordinates from its index. 2D version. */
void cell_coords ( int index, int& i, int& j ) const;
/*! Get the cell coordinates from its index. 3D version. */
void cell_coords ( int index, int& i, int& j, int& k ) const;
/*! Get the cell coordinates from its index. Multidimensional version. */
void cell_coords ( int index, GsArray<int>& coords ) const;
/*! Get the lower and upper coordinates of the Euclidian 2D box of cell (i,j). */
void cell_boundary ( int i, int j, GsPnt2& a, GsPnt2& b ) const;
/*! Get the lower and upper coordinates of the Euclidian 3D box of cell (i,j,k). */
void cell_boundary ( int i, int j, int k, GsPnt& a, GsPnt& b ) const;
/*! Get the indices of all cells intersecting with the given box.
If a box boundary is exactly at a grid separator, only the cell
with greater index is considered. Indices are just pushed to
array cells, which is not emptied before being used */
void get_intersection ( GsPnt2 a, GsPnt2 b, GsArray<int>& cells ) const;
/*! 3D version of get_intersection() */
void get_intersection ( GsPnt a, GsPnt b, GsArray<int>& cells ) const;
/*! Returns the index of the cell containing a, or -1 if a is outside the grid */
int get_point_location ( GsPnt2 a ) const;
/*! Returns the index of the cell containing a, or -1 if a is outside the grid */
int get_point_location ( GsPnt a ) const;
};
/*! \class GsGrid gs_grid.h
\brief n-D regular grid template class
GsGrid defines automatic type casts to the user type.
WARNING: GsGrid is designed to efficiently store large
amount of cells and it uses GsArray<X>, which implies
that no constructors or destructors of type X are called.
The user must initialize and delete data properly if needed. */
template <class X>
class GsGrid : public GsGridBase
{ private :
GsArray<X> _data;
public :
GsGrid ( int dim=0, int ns=0 ) : GsGridBase ( dim, ns )
{ _data.size(GsGridBase::cells()); }
void init ( int dim, int ns )
{ GsGridBase::init ( dim, ns );
_data.size(GsGridBase::cells());
}
void init ( const GsArray<GsGridAxis>& axis_desc )
{ GsGridBase::init ( axis_desc );
_data.size(GsGridBase::cells());
}
void setall ( const X& x ) { _data.setall(x); }
/*! Returns the cell of given index, that should be in 0<=i<cells() */
X& get ( int index ) { return _data[index]; }
/*!Const cell access */
const X& cget ( int index ) const { return _data[index]; }
/*! Returns the cell of given 2D coordinates */
X& get ( int i, int j )
{ return _data[GsGridBase::cell_index(i,j)]; }
/*! Const access given 2D coordinates */
const X& cget ( int i, int j ) const
{ return _data[GsGridBase::cell_index(i,j)]; }
/*! Returns the cell of given index, that should be in 0<=i<cells() */
X& operator[] ( int index ) { return _data[index]; }
/*! Returns the cell of given 2D coordinates */
X& operator() ( int i, int j )
{ return _data[GsGridBase::cell_index(i,j)]; }
/*! Returns the cell of given 3D coordinates */
X& operator() ( int i, int j, int k )
{ return _data[GsGridBase::cell_index(i,j,k)]; }
/*! Returns the cell of given n-D coordinates */
X& operator() ( const GsArray<int>& coords )
{ return _data[GsGridBase::cell_index(coords)]; }
};
//============================== end of file ===============================
# endif // GS_GRID_H
| [
"44076681+jsantiago27@users.noreply.github.com"
] | 44076681+jsantiago27@users.noreply.github.com |
3931fb0537510d2c3856173914fe56a5da6a15a0 | f7c80f2997f7b19da4c5d4588cb59d97d2b51c36 | /renderdoc/driver/vulkan/vk_sparse_initstate.cpp | 7f5091721407419b78baa0dc4375545c6c24c13f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ylyking/renderdoc | cee1a763aee13476fc29596ec3fe781bd4752b8f | 8cc414a8f66ca886baa8ba38f5ee0dd36d4f1a46 | refs/heads/v1.x | 2021-01-20T17:35:39.089306 | 2020-10-16T15:08:47 | 2020-10-16T15:13:30 | 305,359,596 | 0 | 0 | MIT | 2020-10-19T11:53:56 | 2020-10-19T11:21:16 | null | UTF-8 | C++ | false | false | 29,216 | cpp | /******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2020 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/
#include "vk_core.h"
#include "vk_debug.h"
template <typename SerialiserType>
void DoSerialise(SerialiserType &ser, MemIDOffset &el)
{
SERIALISE_MEMBER(memory);
SERIALISE_MEMBER(memOffs);
}
template <typename SerialiserType>
void DoSerialise(SerialiserType &ser, SparseBufferInitState &el)
{
SERIALISE_MEMBER_ARRAY(binds, numBinds);
SERIALISE_MEMBER(numBinds);
SERIALISE_MEMBER_ARRAY(memDataOffs, numUniqueMems);
SERIALISE_MEMBER(numUniqueMems);
SERIALISE_MEMBER(totalSize);
}
template <>
void Deserialise(const SparseBufferInitState &el)
{
delete[] el.binds;
delete[] el.memDataOffs;
}
template <typename SerialiserType>
void DoSerialise(SerialiserType &ser, SparseImageInitState &el)
{
SERIALISE_MEMBER_ARRAY(opaque, opaqueCount);
SERIALISE_MEMBER(opaqueCount);
SERIALISE_MEMBER(imgdim);
SERIALISE_MEMBER(pagedim);
for(uint32_t a = 0; a < NUM_VK_IMAGE_ASPECTS; a++)
SERIALISE_MEMBER_ARRAY(pages[a], pageCount[a]);
SERIALISE_MEMBER(pageCount);
SERIALISE_MEMBER_ARRAY(memDataOffs, numUniqueMems);
SERIALISE_MEMBER(numUniqueMems);
SERIALISE_MEMBER(totalSize);
}
template <>
void Deserialise(const SparseImageInitState &el)
{
delete[] el.opaque;
delete[] el.memDataOffs;
for(uint32_t a = 0; a < NUM_VK_IMAGE_ASPECTS; a++)
delete[] el.pages[a];
}
bool WrappedVulkan::Prepare_SparseInitialState(WrappedVkBuffer *buf)
{
ResourceId id = buf->id;
// VKTODOLOW this is a bit conservative, as we save the whole memory object rather than just the
// bound range.
std::map<VkDeviceMemory, VkDeviceSize> boundMems;
// value will be filled out later once all memories are added
for(size_t i = 0; i < buf->record->resInfo->opaquemappings.size(); i++)
boundMems[buf->record->resInfo->opaquemappings[i].memory] = 0;
uint32_t numElems = (uint32_t)buf->record->resInfo->opaquemappings.size();
VkInitialContents initContents;
initContents.tag = VkInitialContents::Sparse;
initContents.type = eResBuffer;
initContents.sparseBuffer.numBinds = numElems;
initContents.sparseBuffer.binds = new VkSparseMemoryBind[numElems];
initContents.sparseBuffer.numUniqueMems = (uint32_t)boundMems.size();
initContents.sparseBuffer.memDataOffs = new MemIDOffset[boundMems.size()];
memcpy(initContents.sparseBuffer.binds, &buf->record->resInfo->opaquemappings[0],
sizeof(VkSparseMemoryBind) * numElems);
VkDevice d = GetDev();
// INITSTATEBATCH
VkCommandBuffer cmd = GetNextCmd();
VkBufferCreateInfo bufInfo = {
VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
NULL,
0,
0,
VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT,
};
uint32_t memidx = 0;
for(auto it = boundMems.begin(); it != boundMems.end(); ++it)
{
// store offset
it->second = bufInfo.size;
initContents.sparseBuffer.memDataOffs[memidx].memory = GetResID(it->first);
initContents.sparseBuffer.memDataOffs[memidx].memOffs = bufInfo.size;
// increase size
bufInfo.size += GetRecord(it->first)->Length;
memidx++;
}
initContents.sparseBuffer.totalSize = bufInfo.size;
// since this happens during capture, we don't want to start serialising extra buffer creates, so
// we manually create & then just wrap.
VkBuffer dstBuf;
VkResult vkr = VK_SUCCESS;
vkr = ObjDisp(d)->CreateBuffer(Unwrap(d), &bufInfo, NULL, &dstBuf);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
GetResourceManager()->WrapResource(Unwrap(d), dstBuf);
MemoryAllocation readbackmem =
AllocateMemoryForResource(dstBuf, MemoryScope::InitialContents, MemoryType::Readback);
initContents.mem = readbackmem;
vkr = ObjDisp(d)->BindBufferMemory(Unwrap(d), Unwrap(dstBuf), Unwrap(readbackmem.mem),
readbackmem.offs);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
rdcarray<VkBuffer> bufdeletes;
bufdeletes.push_back(dstBuf);
VkCommandBufferBeginInfo beginInfo = {VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, NULL,
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};
vkr = ObjDisp(d)->BeginCommandBuffer(Unwrap(cmd), &beginInfo);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
// copy all of the bound memory objects
for(auto it = boundMems.begin(); it != boundMems.end(); ++it)
{
VkBuffer srcBuf;
bufInfo.size = GetRecord(it->first)->Length;
vkr = ObjDisp(d)->CreateBuffer(Unwrap(d), &bufInfo, NULL, &srcBuf);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
GetResourceManager()->WrapResource(Unwrap(d), srcBuf);
vkr = ObjDisp(d)->BindBufferMemory(Unwrap(d), Unwrap(srcBuf), Unwrap(it->first), 0);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
// copy srcbuf into its area in dstbuf
VkBufferCopy region = {0, it->second, bufInfo.size};
ObjDisp(d)->CmdCopyBuffer(Unwrap(cmd), Unwrap(srcBuf), Unwrap(dstBuf), 1, ®ion);
bufdeletes.push_back(srcBuf);
}
vkr = ObjDisp(d)->EndCommandBuffer(Unwrap(cmd));
RDCASSERTEQUAL(vkr, VK_SUCCESS);
// INITSTATEBATCH
SubmitCmds();
FlushQ();
for(size_t i = 0; i < bufdeletes.size(); i++)
{
ObjDisp(d)->DestroyBuffer(Unwrap(d), Unwrap(bufdeletes[i]), NULL);
GetResourceManager()->ReleaseWrappedResource(bufdeletes[i]);
}
GetResourceManager()->SetInitialContents(id, initContents);
return true;
}
bool WrappedVulkan::Prepare_SparseInitialState(WrappedVkImage *im)
{
ResourceId id = im->id;
ResourceInfo *sparse = im->record->resInfo;
// VKTODOLOW this is a bit conservative, as we save the whole memory object rather than just the
// bound range.
std::map<VkDeviceMemory, VkDeviceSize> boundMems;
// value will be filled out later once all memories are added
for(size_t i = 0; i < sparse->opaquemappings.size(); i++)
boundMems[sparse->opaquemappings[i].memory] = 0;
uint32_t pagePerAspect = sparse->imgdim.width * sparse->imgdim.height * sparse->imgdim.depth;
for(uint32_t a = 0; a < NUM_VK_IMAGE_ASPECTS; a++)
{
if(sparse->pages[a])
{
for(uint32_t i = 0; i < pagePerAspect; i++)
if(sparse->pages[a][i].first != VK_NULL_HANDLE)
boundMems[sparse->pages[a][i].first] = 0;
}
}
uint32_t opaqueCount = (uint32_t)sparse->opaquemappings.size();
VkInitialContents initContents;
initContents.tag = VkInitialContents::Sparse;
initContents.type = eResImage;
SparseImageInitState &sparseInit = initContents.sparseImage;
sparseInit.opaqueCount = opaqueCount;
sparseInit.opaque = new VkSparseMemoryBind[opaqueCount];
sparseInit.imgdim = sparse->imgdim;
sparseInit.pagedim = sparse->pagedim;
sparseInit.numUniqueMems = (uint32_t)boundMems.size();
sparseInit.memDataOffs = new MemIDOffset[boundMems.size()];
if(opaqueCount > 0)
memcpy(sparseInit.opaque, &sparse->opaquemappings[0], sizeof(VkSparseMemoryBind) * opaqueCount);
for(uint32_t a = 0; a < NUM_VK_IMAGE_ASPECTS; a++)
{
sparseInit.pageCount[a] = (sparse->pages[a] ? pagePerAspect : 0);
if(sparseInit.pageCount[a] != 0)
{
sparseInit.pages[a] = new MemIDOffset[pagePerAspect];
for(uint32_t i = 0; i < pagePerAspect; i++)
{
sparseInit.pages[a][i].memory = GetResID(sparse->pages[a][i].first);
sparseInit.pages[a][i].memOffs = sparse->pages[a][i].second;
}
}
else
{
sparseInit.pages[a] = NULL;
}
}
VkDevice d = GetDev();
// INITSTATEBATCH
VkCommandBuffer cmd = GetNextCmd();
VkBufferCreateInfo bufInfo = {
VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
NULL,
0,
0,
VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT,
};
uint32_t memidx = 0;
for(auto it = boundMems.begin(); it != boundMems.end(); ++it)
{
// store offset
it->second = bufInfo.size;
sparseInit.memDataOffs[memidx].memory = GetResID(it->first);
sparseInit.memDataOffs[memidx].memOffs = bufInfo.size;
// increase size
bufInfo.size += GetRecord(it->first)->Length;
memidx++;
}
sparseInit.totalSize = bufInfo.size;
// since this happens during capture, we don't want to start serialising extra buffer creates, so
// we manually create & then just wrap.
VkBuffer dstBuf;
VkResult vkr = VK_SUCCESS;
vkr = ObjDisp(d)->CreateBuffer(Unwrap(d), &bufInfo, NULL, &dstBuf);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
GetResourceManager()->WrapResource(Unwrap(d), dstBuf);
MemoryAllocation readbackmem =
AllocateMemoryForResource(dstBuf, MemoryScope::InitialContents, MemoryType::Readback);
initContents.mem = readbackmem;
vkr = ObjDisp(d)->BindBufferMemory(Unwrap(d), Unwrap(dstBuf), Unwrap(readbackmem.mem),
readbackmem.offs);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
rdcarray<VkBuffer> bufdeletes;
bufdeletes.push_back(dstBuf);
VkCommandBufferBeginInfo beginInfo = {VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, NULL,
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};
vkr = ObjDisp(d)->BeginCommandBuffer(Unwrap(cmd), &beginInfo);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
// copy all of the bound memory objects
for(auto it = boundMems.begin(); it != boundMems.end(); ++it)
{
VkBuffer srcBuf;
bufInfo.size = GetRecord(it->first)->Length;
vkr = ObjDisp(d)->CreateBuffer(Unwrap(d), &bufInfo, NULL, &srcBuf);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
GetResourceManager()->WrapResource(Unwrap(d), srcBuf);
vkr = ObjDisp(d)->BindBufferMemory(Unwrap(d), Unwrap(srcBuf), Unwrap(it->first), 0);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
// copy srcbuf into its area in dstbuf
VkBufferCopy region = {0, it->second, bufInfo.size};
ObjDisp(d)->CmdCopyBuffer(Unwrap(cmd), Unwrap(srcBuf), Unwrap(dstBuf), 1, ®ion);
bufdeletes.push_back(srcBuf);
}
vkr = ObjDisp(d)->EndCommandBuffer(Unwrap(cmd));
RDCASSERTEQUAL(vkr, VK_SUCCESS);
// INITSTATEBATCH
SubmitCmds();
FlushQ();
for(size_t i = 0; i < bufdeletes.size(); i++)
{
ObjDisp(d)->DestroyBuffer(Unwrap(d), Unwrap(bufdeletes[i]), NULL);
GetResourceManager()->ReleaseWrappedResource(bufdeletes[i]);
}
GetResourceManager()->SetInitialContents(id, initContents);
return true;
}
uint64_t WrappedVulkan::GetSize_SparseInitialState(ResourceId id, const VkInitialContents &initial)
{
if(initial.type == eResBuffer)
{
const SparseBufferInitState &info = initial.sparseBuffer;
// some bytes just to cover overheads etc.
uint64_t ret = 128;
// the list of memory objects bound
ret += 8 + sizeof(VkSparseMemoryBind) * info.numBinds;
// the list of memory regions to copy
ret += 8 + sizeof(MemIDOffset) * info.numUniqueMems;
// the actual data
ret += uint64_t(info.totalSize + WriteSerialiser::GetChunkAlignment());
return ret;
}
else if(initial.type == eResImage)
{
const SparseImageInitState &info = initial.sparseImage;
// some bytes just to cover overheads etc.
uint64_t ret = 128;
// the meta-data structure
ret += sizeof(SparseImageInitState);
// the list of memory objects bound
ret += sizeof(VkSparseMemoryBind) * info.opaqueCount;
// the page tables
for(uint32_t a = 0; a < NUM_VK_IMAGE_ASPECTS; a++)
ret += 8 + sizeof(MemIDOffset) * info.pageCount[a];
// the list of memory regions to copy
ret += sizeof(MemIDOffset) * info.numUniqueMems;
// the actual data
ret += uint64_t(info.totalSize + WriteSerialiser::GetChunkAlignment());
return ret;
}
RDCERR("Unhandled resource type %s", ToStr(initial.type).c_str());
return 128;
}
template <typename SerialiserType>
bool WrappedVulkan::Serialise_SparseBufferInitialState(SerialiserType &ser, ResourceId id,
const VkInitialContents *contents)
{
VkDevice d = !IsStructuredExporting(m_State) ? GetDev() : VK_NULL_HANDLE;
VkResult vkr = VK_SUCCESS;
SERIALISE_ELEMENT_LOCAL(SparseState, contents->sparseBuffer);
MemoryAllocation mappedMem;
byte *Contents = NULL;
uint64_t ContentsSize = (uint64_t)SparseState.totalSize;
// Serialise this separately so that it can be used on reading to prepare the upload memory
SERIALISE_ELEMENT(ContentsSize);
// the memory/buffer that we allocated on read, to upload the initial contents.
MemoryAllocation uploadMemory;
VkBuffer uploadBuf = VK_NULL_HANDLE;
// during writing, we already have the memory copied off - we just need to map it.
if(ser.IsWriting())
{
// the memory was created not wrapped.
mappedMem = contents->mem;
vkr = ObjDisp(d)->MapMemory(Unwrap(d), Unwrap(mappedMem.mem), mappedMem.offs, mappedMem.size, 0,
(void **)&Contents);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
// invalidate the cpu cache for this memory range to avoid reading stale data
VkMappedMemoryRange range = {
VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE,
NULL,
Unwrap(mappedMem.mem),
mappedMem.offs,
mappedMem.size,
};
vkr = ObjDisp(d)->InvalidateMappedMemoryRanges(Unwrap(d), 1, &range);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
}
else if(IsReplayingAndReading() && !ser.IsErrored())
{
// create a buffer with memory attached, which we will fill with the initial contents
VkBufferCreateInfo bufInfo = {
VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
NULL,
0,
ContentsSize,
VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT,
};
vkr = ObjDisp(d)->CreateBuffer(Unwrap(d), &bufInfo, NULL, &uploadBuf);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
GetResourceManager()->WrapResource(Unwrap(d), uploadBuf);
uploadMemory =
AllocateMemoryForResource(uploadBuf, MemoryScope::InitialContents, MemoryType::Upload);
vkr = ObjDisp(d)->BindBufferMemory(Unwrap(d), Unwrap(uploadBuf), Unwrap(uploadMemory.mem),
uploadMemory.offs);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
mappedMem = uploadMemory;
ObjDisp(d)->MapMemory(Unwrap(d), Unwrap(uploadMemory.mem), uploadMemory.offs, uploadMemory.size,
0, (void **)&Contents);
}
// not using SERIALISE_ELEMENT_ARRAY so we can deliberately avoid allocation - we serialise
// directly into upload memory
ser.Serialise("Contents"_lit, Contents, ContentsSize, SerialiserFlags::NoFlags);
// unmap the resource we mapped before - we need to do this on read and on write.
if(!IsStructuredExporting(m_State) && mappedMem.mem != VK_NULL_HANDLE)
{
if(IsReplayingAndReading())
{
// first ensure we flush the writes from the cpu to gpu memory
VkMappedMemoryRange range = {
VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE,
NULL,
Unwrap(mappedMem.mem),
mappedMem.offs,
mappedMem.size,
};
vkr = ObjDisp(d)->FlushMappedMemoryRanges(Unwrap(d), 1, &range);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
}
ObjDisp(d)->UnmapMemory(Unwrap(d), Unwrap(mappedMem.mem));
}
SERIALISE_CHECK_READ_ERRORS();
if(IsReplayingAndReading())
{
VkInitialContents initContents;
initContents.type = eResBuffer;
initContents.buf = uploadBuf;
initContents.mem = uploadMemory;
initContents.tag = VkInitialContents::Sparse;
initContents.sparseBuffer = SparseState;
// we steal the serialised arrays here by resetting the struct, then the serialisation won't
// deallocate them. VkInitialContents::Free() will deallocate them in the same way.
SparseState = SparseBufferInitState();
GetResourceManager()->SetInitialContents(id, initContents);
}
return true;
}
template <typename SerialiserType>
bool WrappedVulkan::Serialise_SparseImageInitialState(SerialiserType &ser, ResourceId id,
const VkInitialContents *contents)
{
VkDevice d = !IsStructuredExporting(m_State) ? GetDev() : VK_NULL_HANDLE;
VkResult vkr = VK_SUCCESS;
SERIALISE_ELEMENT_LOCAL(SparseState, contents->sparseImage);
MemoryAllocation mappedMem;
byte *Contents = NULL;
uint64_t ContentsSize = (uint64_t)SparseState.totalSize;
// Serialise this separately so that it can be used on reading to prepare the upload memory
SERIALISE_ELEMENT(ContentsSize);
// the memory/buffer that we allocated on read, to upload the initial contents.
MemoryAllocation uploadMemory;
VkBuffer uploadBuf = VK_NULL_HANDLE;
// during writing, we already have the memory copied off - we just need to map it.
if(ser.IsWriting())
{
mappedMem = contents->mem;
vkr = ObjDisp(d)->MapMemory(Unwrap(d), Unwrap(mappedMem.mem), mappedMem.offs, mappedMem.size, 0,
(void **)&Contents);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
}
else if(IsReplayingAndReading() && !ser.IsErrored())
{
// create a buffer with memory attached, which we will fill with the initial contents
VkBufferCreateInfo bufInfo = {
VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
NULL,
0,
ContentsSize,
VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT,
};
vkr = ObjDisp(d)->CreateBuffer(Unwrap(d), &bufInfo, NULL, &uploadBuf);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
GetResourceManager()->WrapResource(Unwrap(d), uploadBuf);
uploadMemory =
AllocateMemoryForResource(uploadBuf, MemoryScope::InitialContents, MemoryType::Upload);
vkr = ObjDisp(d)->BindBufferMemory(Unwrap(d), Unwrap(uploadBuf), Unwrap(uploadMemory.mem),
uploadMemory.offs);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
mappedMem = uploadMemory;
ObjDisp(d)->MapMemory(Unwrap(d), Unwrap(uploadMemory.mem), uploadMemory.offs, uploadMemory.size,
0, (void **)&Contents);
}
// not using SERIALISE_ELEMENT_ARRAY so we can deliberately avoid allocation - we serialise
// directly into upload memory
ser.Serialise("Contents"_lit, Contents, ContentsSize, SerialiserFlags::NoFlags);
// unmap the resource we mapped before - we need to do this on read and on write.
if(!IsStructuredExporting(m_State) && mappedMem.mem != VK_NULL_HANDLE)
ObjDisp(d)->UnmapMemory(Unwrap(d), Unwrap(mappedMem.mem));
SERIALISE_CHECK_READ_ERRORS();
if(IsReplayingAndReading())
{
VkInitialContents initContents;
initContents.type = eResImage;
initContents.buf = uploadBuf;
initContents.mem = uploadMemory;
initContents.tag = VkInitialContents::Sparse;
initContents.sparseImage = SparseState;
for(uint32_t a = 0; a < NUM_VK_IMAGE_ASPECTS; a++)
{
if(SparseState.pageCount[a] == 0)
{
initContents.sparseImage.pageBinds[a] = NULL;
}
else
{
initContents.sparseImage.pageBinds[a] = new VkSparseImageMemoryBind[SparseState.pageCount[a]];
uint32_t i = 0;
for(uint32_t z = 0; z < SparseState.imgdim.depth; z++)
{
for(uint32_t y = 0; y < SparseState.imgdim.height; y++)
{
for(uint32_t x = 0; x < SparseState.imgdim.width; x++)
{
VkSparseImageMemoryBind &p = initContents.sparseImage.pageBinds[a][i];
p.memory = Unwrap(GetResourceManager()->GetLiveHandle<VkDeviceMemory>(
SparseState.pages[a][i].memory));
p.memoryOffset = SparseState.pages[a][i].memOffs;
p.extent = SparseState.pagedim;
p.subresource.aspectMask = (VkImageAspectFlags)(1 << a);
p.subresource.arrayLayer = 0;
p.subresource.mipLevel = 0;
p.offset.x = x * p.extent.width;
p.offset.y = y * p.extent.height;
p.offset.z = z * p.extent.depth;
i++;
}
}
}
}
}
// delete and free the pages array, we no longer need it.
for(uint32_t a = 0; a < NUM_VK_IMAGE_ASPECTS; a++)
SAFE_DELETE_ARRAY(SparseState.pages[a]);
// we steal the serialised arrays here by resetting the struct, then the serialisation won't
// deallocate them. VkInitialContents::Free() will deallocate them in the same way.
SparseState = SparseImageInitState();
GetResourceManager()->SetInitialContents(id, initContents);
}
return true;
}
template bool WrappedVulkan::Serialise_SparseBufferInitialState(ReadSerialiser &ser, ResourceId id,
const VkInitialContents *contents);
template bool WrappedVulkan::Serialise_SparseBufferInitialState(WriteSerialiser &ser, ResourceId id,
const VkInitialContents *contents);
template bool WrappedVulkan::Serialise_SparseImageInitialState(ReadSerialiser &ser, ResourceId id,
const VkInitialContents *contents);
template bool WrappedVulkan::Serialise_SparseImageInitialState(WriteSerialiser &ser, ResourceId id,
const VkInitialContents *contents);
bool WrappedVulkan::Apply_SparseInitialState(WrappedVkBuffer *buf, const VkInitialContents &contents)
{
const SparseBufferInitState &info = contents.sparseBuffer;
// unbind the entire buffer so that any new areas that are bound are unbound again
VkQueue q = GetQ();
VkMemoryRequirements mrq = {};
ObjDisp(q)->GetBufferMemoryRequirements(Unwrap(GetDev()), buf->real.As<VkBuffer>(), &mrq);
VkSparseMemoryBind unbind = {0, RDCMAX(mrq.size, m_CreationInfo.m_Buffer[buf->id].size),
VK_NULL_HANDLE, 0, 0};
VkSparseBufferMemoryBindInfo bufBind = {buf->real.As<VkBuffer>(), 1, &unbind};
// this semaphore separates the unbind and bind, as there isn't an ordering guarantee
// for two adjacent batches that bind the same resource.
VkSemaphore sem = GetNextSemaphore();
VkBindSparseInfo bindsparse = {
VK_STRUCTURE_TYPE_BIND_SPARSE_INFO,
NULL,
0,
NULL, // wait semaphores
1,
&bufBind,
0,
NULL, // image opaque
0,
NULL, // image bind
1,
UnwrapPtr(sem), // signal semaphores
};
// first unbind all
ObjDisp(q)->QueueBindSparse(Unwrap(q), 1, &bindsparse, VK_NULL_HANDLE);
// then make any bindings
if(info.numBinds > 0)
{
bufBind.bindCount = info.numBinds;
bufBind.pBinds = info.binds;
// wait for unbind semaphore
bindsparse.waitSemaphoreCount = 1;
bindsparse.pWaitSemaphores = bindsparse.pSignalSemaphores;
bindsparse.signalSemaphoreCount = 0;
bindsparse.pSignalSemaphores = NULL;
ObjDisp(q)->QueueBindSparse(Unwrap(q), 1, &bindsparse, VK_NULL_HANDLE);
}
// marks that the above semaphore has been used, so next time we
// flush it will be moved back to the pool
SubmitSemaphores();
VkResult vkr = VK_SUCCESS;
VkBuffer srcBuf = contents.buf;
VkCommandBuffer cmd = GetNextCmd();
VkCommandBufferBeginInfo beginInfo = {VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, NULL,
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};
vkr = ObjDisp(cmd)->BeginCommandBuffer(Unwrap(cmd), &beginInfo);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
for(uint32_t i = 0; i < info.numUniqueMems; i++)
{
VkDeviceMemory dstMem =
GetResourceManager()->GetLiveHandle<VkDeviceMemory>(info.memDataOffs[i].memory);
ResourceId id = GetResID(dstMem);
VkBuffer dstBuf = m_CreationInfo.m_Memory[id].wholeMemBuf;
VkDeviceSize size = m_CreationInfo.m_Memory[id].size;
// fill the whole memory from the given offset
VkBufferCopy region = {info.memDataOffs[i].memOffs, 0, size};
if(dstBuf != VK_NULL_HANDLE)
ObjDisp(cmd)->CmdCopyBuffer(Unwrap(cmd), Unwrap(srcBuf), Unwrap(dstBuf), 1, ®ion);
else
RDCERR("Whole memory buffer not present for %s", ToStr(id).c_str());
}
vkr = ObjDisp(cmd)->EndCommandBuffer(Unwrap(cmd));
RDCASSERTEQUAL(vkr, VK_SUCCESS);
FlushQ();
return true;
}
bool WrappedVulkan::Apply_SparseInitialState(WrappedVkImage *im, const VkInitialContents &contents)
{
const SparseImageInitState &info = contents.sparseImage;
VkQueue q = GetQ();
if(info.opaque)
{
// unbind the entire image so that any new areas that are bound are unbound again
// VKTODOLOW not sure if this is the right size for opaque portion of partial resident
// sparse image? how is that determined?
VkSparseMemoryBind unbind = {0, 0, VK_NULL_HANDLE, 0, 0};
VkMemoryRequirements mrq = {0};
ObjDisp(q)->GetImageMemoryRequirements(Unwrap(GetDev()), im->real.As<VkImage>(), &mrq);
unbind.size = mrq.size;
VkSparseImageOpaqueMemoryBindInfo opaqueBind = {im->real.As<VkImage>(), 1, &unbind};
VkSemaphore sem = GetNextSemaphore();
VkBindSparseInfo bindsparse = {
VK_STRUCTURE_TYPE_BIND_SPARSE_INFO,
NULL,
0,
NULL, // wait semaphores
0,
NULL, // buffer bind
1,
&opaqueBind,
0,
NULL, // image bind
1,
UnwrapPtr(sem), // signal semaphores
};
// first unbind all
ObjDisp(q)->QueueBindSparse(Unwrap(q), 1, &bindsparse, VK_NULL_HANDLE);
// then make any bindings
if(info.opaqueCount > 0)
{
opaqueBind.bindCount = info.opaqueCount;
opaqueBind.pBinds = info.opaque;
// wait for unbind semaphore
bindsparse.waitSemaphoreCount = 1;
bindsparse.pWaitSemaphores = bindsparse.pSignalSemaphores;
bindsparse.signalSemaphoreCount = 0;
bindsparse.pSignalSemaphores = NULL;
ObjDisp(q)->QueueBindSparse(Unwrap(q), 1, &bindsparse, VK_NULL_HANDLE);
}
// marks that the above semaphore has been used, so next time we
// flush it will be moved back to the pool
SubmitSemaphores();
}
{
VkSparseImageMemoryBindInfo imgBinds[NUM_VK_IMAGE_ASPECTS];
RDCEraseEl(imgBinds);
VkBindSparseInfo bindsparse = {
VK_STRUCTURE_TYPE_BIND_SPARSE_INFO,
NULL,
0,
NULL, // wait semaphores
0,
NULL, // buffer bind
0,
NULL, // opaque bind
0,
imgBinds,
0,
NULL, // signal semaphores
};
// blat the page tables
for(uint32_t a = 0; a < NUM_VK_IMAGE_ASPECTS; a++)
{
if(!info.pageBinds[a])
continue;
imgBinds[bindsparse.imageBindCount].image = im->real.As<VkImage>();
imgBinds[bindsparse.imageBindCount].bindCount = info.pageCount[a];
imgBinds[bindsparse.imageBindCount].pBinds = info.pageBinds[a];
bindsparse.imageBindCount++;
}
ObjDisp(q)->QueueBindSparse(Unwrap(q), 1, &bindsparse, VK_NULL_HANDLE);
}
VkResult vkr = VK_SUCCESS;
VkBuffer srcBuf = contents.buf;
VkCommandBuffer cmd = GetNextCmd();
VkCommandBufferBeginInfo beginInfo = {VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, NULL,
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};
vkr = ObjDisp(cmd)->BeginCommandBuffer(Unwrap(cmd), &beginInfo);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
for(uint32_t i = 0; i < info.numUniqueMems; i++)
{
VkDeviceMemory dstMem =
GetResourceManager()->GetLiveHandle<VkDeviceMemory>(info.memDataOffs[i].memory);
ResourceId id = GetResID(dstMem);
// since this is short lived it isn't wrapped. Note that we want
// to cache this up front, so it will then be wrapped
VkBuffer dstBuf = m_CreationInfo.m_Memory[id].wholeMemBuf;
VkDeviceSize size = m_CreationInfo.m_Memory[id].size;
// fill the whole memory from the given offset
VkBufferCopy region = {info.memDataOffs[i].memOffs, 0, size};
if(dstBuf != VK_NULL_HANDLE)
ObjDisp(cmd)->CmdCopyBuffer(Unwrap(cmd), Unwrap(srcBuf), Unwrap(dstBuf), 1, ®ion);
else
RDCERR("Whole memory buffer not present for %s", ToStr(id).c_str());
}
vkr = ObjDisp(cmd)->EndCommandBuffer(Unwrap(cmd));
RDCASSERTEQUAL(vkr, VK_SUCCESS);
return true;
}
| [
"baldurk@baldurk.org"
] | baldurk@baldurk.org |
2ff66c1603112cefa508fa96dd20e569df66e151 | 0e112bbaf863e531a3c21926bb56b52419f46007 | /topcoder/SRM_758/LongJump2.cpp | 509556637ef5233408aba6333c0e252523d0e5b8 | [] | no_license | vexsnare/cpp-prog | 375d6245a1e775cb043d9daa5093ff1f5734f633 | f1b3ed042efac73e5c52a7e4d70e00f5cbc43e5c | refs/heads/master | 2020-04-08T07:36:18.474191 | 2019-08-29T18:00:23 | 2019-08-29T18:00:23 | 159,144,720 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,277 | cpp | #include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
using namespace std;
class LongJump2 {
public:
int countNewLeaders(int N, vector <int> jumpLengths) {
int leader = 0;
int jump = jumpLengths[0];
int count = 1;
for (int i = 1; i < jumpLengths.size(); ++i) {
if(jump < jumpLengths[i]) {
int leaderIndex = i%N;
jump = jumpLengths[i];
if(leaderIndex != leader) {
count++;
leader = leaderIndex;
}
}
}
return count;
}
};
// BEGIN KAWIGIEDIT TESTING
// Generated by KawigiEdit 2.1.4 (beta) modified by pivanof
bool KawigiEdit_RunTest(int testNum, int p0, vector <int> p1, bool hasAnswer, int p2) {
cout << "Test " << testNum << ": [" << p0 << "," << "{";
for (int i = 0; int(p1.size()) > i; ++i) {
if (i > 0) {
cout << ",";
}
cout << p1[i];
}
cout << "}";
cout << "]" << endl;
LongJump2 *obj;
int answer;
obj = new LongJump2();
clock_t startTime = clock();
answer = obj->countNewLeaders(p0, p1);
clock_t endTime = clock();
delete obj;
bool res;
res = true;
cout << "Time: " << double(endTime - startTime) / CLOCKS_PER_SEC << " seconds" << endl;
if (hasAnswer) {
cout << "Desired answer:" << endl;
cout << "\t" << p2 << endl;
}
cout << "Your answer:" << endl;
cout << "\t" << answer << endl;
if (hasAnswer) {
res = answer == p2;
}
if (!res) {
cout << "DOESN'T MATCH!!!!" << endl;
} else if (double(endTime - startTime) / CLOCKS_PER_SEC >= 2) {
cout << "FAIL the timeout" << endl;
res = false;
} else if (hasAnswer) {
cout << "Match :-)" << endl;
} else {
cout << "OK, but is it right?" << endl;
}
cout << "" << endl;
return res;
}
int main() {
bool all_right;
all_right = true;
int p0;
vector <int> p1;
int p2;
{
// ----- test 0 -----
p0 = 1;
int t1[] = {812,780,815};
p1.assign(t1, t1 + sizeof(t1) / sizeof(t1[0]));
p2 = 1;
all_right = KawigiEdit_RunTest(0, p0, p1, true, p2) && all_right;
// ------------------
}
{
// ----- test 1 -----
p0 = 2;
int t1[] = {0,0,0,0,0,0};
p1.assign(t1, t1 + sizeof(t1) / sizeof(t1[0]));
p2 = 1;
all_right = KawigiEdit_RunTest(1, p0, p1, true, p2) && all_right;
// ------------------
}
{
// ----- test 2 -----
p0 = 2;
int t1[] = {810,811,812,813,814,815};
p1.assign(t1, t1 + sizeof(t1) / sizeof(t1[0]));
p2 = 6;
all_right = KawigiEdit_RunTest(2, p0, p1, true, p2) && all_right;
// ------------------
}
{
// ----- test 3 -----
p0 = 3;
int t1[] = {800,10,20,810,30,40,50,830,830};
p1.assign(t1, t1 + sizeof(t1) / sizeof(t1[0]));
p2 = 2;
all_right = KawigiEdit_RunTest(3, p0, p1, true, p2) && all_right;
// ------------------
}
if (all_right) {
cout << "You're a stud (at least on the example cases)!" << endl;
} else {
cout << "Some of the test cases had errors." << endl;
}
return 0;
}
// END KAWIGIEDIT TESTING
//Powered by KawigiEdit 2.1.4 (beta) modified by pivanof!
| [
"vinay.saini@flipkart.com"
] | vinay.saini@flipkart.com |
832c18a73299be077ac7a85635991d408ed523e6 | dfe1f796a54143e5eb8661f3328ad29dbfa072d6 | /psx/_dump_/17/_dump_c_src_/diabpsx/source/monster.cpp | 1bf1b07e6728c6a6dc822874c7eb5091f202e38e | [
"Unlicense"
] | permissive | diasurgical/scalpel | 0f73ad9be0750ce08eb747edc27aeff7931800cd | 8c631dff3236a70e6952b1f564d0dca8d2f4730f | refs/heads/master | 2021-06-10T18:07:03.533074 | 2020-04-16T04:08:35 | 2020-04-16T04:08:35 | 138,939,330 | 15 | 7 | Unlicense | 2019-08-27T08:45:36 | 2018-06-27T22:30:04 | C | UTF-8 | C++ | false | false | 28,257 | cpp | // C:\diabpsx\SOURCE\MONSTER.CPP
#include "types.h"
// address: 0x8013215C
// line start: 447
// line end: 466
void MonstPartJump__Fi(int m) {
// register: 17
register int ScrX;
// register: 19
register int ScrXOff;
// register: 20
register int ScrYOff;
// address: 0xFFFFFFD8
auto int WorldX;
// address: 0xFFFFFFDC
auto int WorldY;
// register: 21
// size: 0xE0
register struct CBlocks *gblocks;
}
// address: 0x801322F0
// line start: 485
// line end: 492
void DeleteMonster__Fi(int i) {
// register: 6
register int temp;
}
// address: 0x80132328
// line start: 511
// line end: 513
int M_GetDir__Fi(int i) {
}
// address: 0x80132384
// line start: 532
// line end: 540
void M_StartDelay__Fii(int i, int len) {
}
// address: 0x801323CC
// line start: 555
// line end: 577
void M_StartRAttack__Fiii(int i, int missile_type, int dam) {
// register: 18
register int md;
// register: 2
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 3
register int _mx;
// register: 5
register int _my;
}
// address: 0x801324E4
// line start: 585
// line end: 608
void M_StartRSpAttack__Fiii(int i, int missile_type, int dam) {
// register: 18
register int md;
// register: 2
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 3
register int _mx;
// register: 5
register int _my;
}
// address: 0x80132608
// line start: 615
// line end: 635
void M_StartSpAttack__Fi(int i) {
// register: 18
register int md;
// register: 2
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 3
register int _mx;
// register: 5
register int _my;
}
// address: 0x801326F0
// line start: 643
// line end: 659
void M_StartEat__Fi(int i) {
// register: 2
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 3
register int _mx;
// register: 5
register int _my;
}
// address: 0x801327C0
// line start: 666
// line end: 695
void M_GetKnockback__Fi(int i) {
// register: 16
register int d;
{
{
// register: 2
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 17
register int _mx;
// register: 16
register int _my;
}
}
}
// address: 0x80132998
// line start: 702
// line end: 758
void M_StartHit__Fiii(int i, int pnum, int dam) {
{
{
// register: 2
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 17
register int _moldx;
// register: 16
register int _moldy;
}
}
}
// address: 0x80132C88
// line start: 763
// line end: 819
void M_DiabloDeath__FiUc(int i, unsigned char sendmsg) {
// register: 22
// size: 0x70
register struct MonsterStruct *Monst;
// register: 23
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 18
register int _mx;
// register: 19
register int _my;
// register: 3
register int steps;
{
// register: 20
register int j;
{
// register: 19
register int k;
{
{
// register: 18
register int _moldx;
// register: 17
register int _moldy;
}
}
}
}
}
// address: 0x80132FAC
// line start: 826
// line end: 878
void M2MStartHit__Fiii(int mid, int i, int dam) {
// register: 3
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 18
register int _mx;
// register: 17
register int _my;
}
// address: 0x80133258
// line start: 884
// line end: 948
void MonstStartKill__FiiUc(int i, int pnum, unsigned char sendmsg) {
// register: 2
register int md;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
// register: 3
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 16
register int _mx;
// register: 19
register int _my;
{
{
// register: 16
register int omp;
}
}
}
// address: 0x8013352C
// line start: 955
// line end: 1018
void M2MStartKill__Fii(int i, int mid) {
// register: 6
register int md;
// register: 23
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 20
register int _mx;
// register: 22
register int _my;
{
{
// register: 16
register int omp;
}
}
}
// address: 0x801338F4
// line start: 1025
// line end: 1044
void M_StartKill__Fii(int i, int pnum) {
// register: 3
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 17
register int _mx;
// register: 18
register int _my;
}
// address: 0x801339E4
// line start: 1078
// line end: 1098
void M_StartFadein__FiiUc(int i, int md, unsigned char backwards) {
}
// address: 0x80133B38
// line start: 1106
// line end: 1124
void M_StartFadeout__FiiUc(int i, int md, unsigned char backwards) {
}
// address: 0x80133C80
// line start: 1132
// line end: 1143
void M_StartHeal__Fi(int i) {
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x80133D00
// line start: 1150
// line end: 1185
void M_ChangeLightOffset__Fi(int monst) {
// register: 5
register int lx;
// register: 3
register int ly;
// register: 2
register int sign;
// register: 3
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 2
register int _mxoff;
// register: 3
register int _myoff;
}
// address: 0x80133DA0
// line start: 1192
// line end: 1210
int M_DoStand__Fi(int i) {
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x80133E08
// line start: 1217
// line end: 1248
int M_DoWalk__Fi(int i) {
// register: 16
register int rv;
}
// address: 0x8013408C
// line start: 1255
// line end: 1282
int M_DoWalk2__Fi(int i) {
// register: 16
register int rv;
}
// address: 0x80134278
// line start: 1289
// line end: 1320
int M_DoWalk3__Fi(int i) {
// register: 16
register int rv;
}
// address: 0x8013453C
// line start: 1327
// line end: 1364
void M_TryM2MHit__Fiiiii(int i, int mid, int hper, int mind, int maxd) {
// register: 18
register int hit;
// register: 6
register int dam;
// address: 0xFFFFFFD0
auto unsigned char ret;
}
// address: 0x80134704
// line start: 1370
// line end: 1500
void M_TryH2HHit__Fiiiii(int i, int pnum, int Hit, int MinDam, int MaxDam) {
// register: 17
// size: 0x22C8
register struct PlayerStruct *ptrplr;
// register: 22
register int hit;
// register: 16
register int hper;
// register: 4
register int tac;
// register: 16
register long dam;
// register: 16
register int dx;
// register: 2
register int dy;
// register: 6
register int blk;
// register: 3
register int blkper;
// register: 6
register int mdam;
// register: 2
// size: 0x70
register struct MonsterStruct *pMonster;
// address: 0xFFFFFFC8
auto int _mx;
// address: 0xFFFFFFD0
auto int _my;
// register: 23
register int _px;
// register: 30
register int _py;
{
{
{
{
{
{
{
{
{
{
// register: 18
register int newx;
// register: 16
register int newy;
}
}
}
}
}
}
}
}
}
}
}
// address: 0x80134D08
// line start: 1506
// line end: 1545
int M_DoAttack__Fi(int i) {
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 21
register unsigned char mMinDamage;
// register: 19
register unsigned char mMaxDamage;
// register: 20
register unsigned char mHit;
// register: 18
register int _menemy;
}
// address: 0x80134EAC
// line start: 1553
// line end: 1575
int M_DoRAttack__Fi(int i) {
// register: 19
register int multimissiles;
// register: 17
register int mi;
}
// address: 0x80135024
// line start: 1583
// line end: 1605
int M_DoRSpAttack__Fi(int i) {
}
// address: 0x80135214
// line start: 1613
// line end: 1623
int M_DoSAttack__Fi(int i) {
}
// address: 0x801352E8
// line start: 1631
// line end: 1640
int M_DoFadein__Fi(int i) {
}
// address: 0x801353B8
// line start: 1647
// line end: 1665
int M_DoFadeout__Fi(int i) {
// register: 2
register int mtype;
}
// address: 0x801354CC
// line start: 1672
// line end: 1692
int M_DoHeal__Fi(int i) {
// register: 5
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x80135578
// line start: 1699
// line end: 1789
int M_DoTalk__Fi(int i) {
// register: 16
register int tren;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 21
register int _mx;
// register: 20
register int _my;
// register: 19
register int mType;
}
// address: 0x801359E4
// line start: 1799
// line end: 1845
void M_Teleport__Fi(int i) {
// register: 23
// size: 0x70
register struct MonsterStruct *Monst;
// register: 22
register unsigned char done;
// address: 0xFFFFFFC0
auto int mulx;
// register: 3
register int muly;
// register: 19
register int x;
// register: 20
register int y;
// register: 18
register int a;
// register: 16
register int b;
// register: 16
register int px;
// address: 0xFFFFFFC8
auto int py;
}
// address: 0x80135C18
// line start: 1851
// line end: 1859
int M_DoGotHit__Fi(int i) {
}
// address: 0x80135C78
// line start: 1871
// line end: 1911
void DoEnding__Fv() {
// register: 16
register unsigned char bMusicOn;
}
// address: 0x80135D1C
// line start: 1918
// line end: 1940
void PrepDoEnding__Fv() {
{
// register: 6
register int i;
}
}
// address: 0x80135E38
// line start: 1947
// line end: 1977
int M_DoDeath__Fi(int i) {
// register: 3
// size: 0x70
register struct MonsterStruct *pMonster;
// register: 16
register int _mx;
// register: 17
register int _my;
}
// address: 0x80136008
// line start: 1984
// line end: 1994
int M_DoSpStand__Fi(int i) {
}
// address: 0x801360AC
// line start: 1999
// line end: 2018
int M_DoDelay__Fi(int i) {
{
{
// register: 16
register int tmp;
}
}
}
// address: 0x8013619C
// line start: 2025
// line end: 2032
int M_DoStone__Fi(int i) {
}
// address: 0x80136220
// line start: 2039
// line end: 2098
void M_WalkDir__Fii(int i, int md) {
// register: 3
register int mwi;
}
// address: 0x80136448
// line start: 2107
// line end: 2183
void GroupUnity__Fi(int i) {
// register: 19
register int leader;
// register: 3
register int tmp;
// register: 5
register int m;
// register: 23
// size: 0x70
register struct MonsterStruct *pMonster;
// register: 22
register int _mx;
// register: 21
register int _my;
}
// address: 0x80136834
// line start: 2192
// line end: 2210
unsigned char M_CallWalk__Fii(int i, int md) {
// register: 19
register int mdtemp;
// register: 16
register unsigned char ok;
}
// address: 0x80136A20
// line start: 2218
// line end: 2232
unsigned char M_PathWalk__Fi(int i, char plr2monst[9], unsigned char (*Check)()) {
// address: 0xFFFFFFD8
// size: 0x19
auto char path[25];
}
// address: 0x80136AE4
// line start: 2243
// line end: 2256
unsigned char M_CallWalk2__Fii(int i, int md) {
// register: 20
register int mdtemp;
// register: 17
register unsigned char ok;
}
// address: 0x80136BF8
// line start: 2264
// line end: 2271
unsigned char M_DumbWalk__Fii(int i, int md) {
}
// address: 0x80136C4C
// line start: 2278
// line end: 2310
unsigned char M_RoundWalk__FiiRi(int i, int md, int *dir) {
// register: 19
register int mdtemp;
// register: 17
register unsigned char ok;
}
// address: 0x80136DEC
// line start: 2322
// line end: 2349
void MAI_Zombie__Fi(int i) {
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
// register: 16
register int mx;
// register: 18
register int my;
// register: 19
register int md;
// register: 21
register int v;
}
// address: 0x80136FE4
// line start: 2363
// line end: 2385
void MAI_SkelSd__Fi(int i) {
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
// register: 16
register int mx;
// register: 18
register int my;
// register: 16
register int md;
}
// address: 0x8013717C
// line start: 2400
// line end: 2457
void MAI_Snake__Fi(int i) {
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 18
register int fx;
// register: 21
register int fy;
// register: 19
register int mx;
// register: 23
register int my;
// register: 22
register int md;
// register: 30
register int pnum;
// address: 0xFFFFFFD0
// size: 0x6
auto char pattern[6];
// register: 3
register int tmp;
}
// address: 0x80137560
// line start: 2469
// line end: 2536
void MAI_Bat__Fi(int i) {
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 23
register int mx;
// register: 30
register int my;
// register: 19
register int md;
// register: 20
register int v;
// address: 0xFFFFFFD0
auto int pnum;
// register: 17
register int fx;
// register: 21
register int fy;
}
// address: 0x80137918
// line start: 2549
// line end: 2581
void MAI_SkelBow__Fi(int i) {
// register: 16
register int mx;
// register: 18
register int my;
// register: 21
register int md;
// register: 18
register int fx;
// register: 19
register int fy;
// register: 22
register unsigned char walking;
// register: 16
register int v;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x80137AFC
// line start: 2592
// line end: 2613
void MAI_Fat__Fi(int i) {
// register: 16
register int mx;
// register: 19
register int my;
// register: 21
register int md;
// register: 16
register int v;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x80137CAC
// line start: 2626
// line end: 2707
void MAI_Sneak__Fi(int i) {
// register: 20
register int mx;
// register: 21
register int my;
// register: 18
register int md;
// register: 30
register int v;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 23
register int dist;
}
// address: 0x80138090
// line start: 2719
// line end: 2795
void MAI_Fireman__Fi(int i) {
// register: 22
register int mx;
// register: 23
register int my;
// register: 20
register int md;
// register: 21
register int pnum;
// register: 18
register int fx;
// register: 19
register int fy;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x80138388
// line start: 2807
// line end: 2885
void MAI_Fallen__Fi(int i) {
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 6
register int x;
// register: 7
register int y;
// register: 5
register int xpos;
// register: 4
register int ypos;
// register: 3
register int m;
// register: 8
register int rad;
// register: 16
register int my;
// register: 2
register int aitype;
}
// address: 0x801386A4
// line start: 2893
// line end: 2909
void MAI_Cleaver__Fi(int i) {
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
// register: 16
register int mx;
// register: 19
register int my;
// register: 16
register int md;
}
// address: 0x8013878C
// line start: 2920
// line end: 2987
void MAI_Round__FiUc(int i, unsigned char special) {
// register: 21
register int mx;
// register: 22
register int my;
// register: 23
register int md;
// register: 30
register int v;
// register: 18
register int fx;
// register: 20
register int fy;
// register: 4
register int dist;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x80138BF8
// line start: 2997
// line end: 2998
void MAI_GoatMc__Fi(int i) {
}
// address: 0x80138C18
// line start: 3005
// line end: 3058
void MAI_Ranged__FiiUc(int i, int missile_type, unsigned char special) {
// register: 22
register int fx;
// register: 23
register int fy;
// register: 17
register int mx;
// register: 18
register int my;
// register: 20
register int md;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x80138E38
// line start: 3064
// line end: 3065
void MAI_GoatBow__Fi(int i) {
}
// address: 0x80138E5C
// line start: 3069
// line end: 3070
void MAI_Succ__Fi(int i) {
}
// address: 0x80138E80
// line start: 3074
// line end: 3075
void MAI_AcidUniq__Fi(int i) {
}
// address: 0x80138EA4
// line start: 3089
// line end: 3175
void MAI_Scav__Fi(int i) {
// register: 18
// size: 0x70
register struct MonsterStruct *Monst;
// register: 17
register int x;
// register: 16
register int y;
// register: 19
register unsigned char done;
}
// address: 0x801392BC
// line start: 3185
// line end: 3225
void MAI_Garg__Fi(int i) {
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 17
register int mx;
// register: 19
register int my;
// register: 20
register int md;
}
// address: 0x8013949C
// line start: 3238
// line end: 3329
void MAI_RoundRanged__FiiUciUc(int i, int missile_type, unsigned char checkdoors, int dam, int lessmissiles) {
// register: 21
register int fx;
// register: 30
register int fy;
// register: 22
register int mx;
// register: 23
register int my;
// address: 0xFFFFFFD0
auto int md;
// register: 19
register int v;
// register: 4
register int dist;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x801399B0
// line start: 3334
// line end: 3335
void MAI_Magma__Fi(int i) {
}
// address: 0x801399DC
// line start: 3339
// line end: 3340
void MAI_Storm__Fi(int i) {
}
// address: 0x80139A08
// line start: 3344
// line end: 3345
void MAI_Acid__Fi(int i) {
}
// address: 0x80139A38
// line start: 3350
// line end: 3351
void MAI_Diablo__Fi(int i) {
}
// address: 0x80139A64
// line start: 3355
// line end: 3447
void MAI_RR2__Fiii(int i, int mistype, int dam) {
// register: 22
register int fx;
// register: 23
register int fy;
// register: 18
register int mx;
// register: 19
register int my;
// register: 30
register int md;
// register: 21
register int v;
// register: 4
register int dist;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x80139F64
// line start: 3452
// line end: 3453
void MAI_Mega__Fi(int i) {
}
// address: 0x80139F88
// line start: 3460
// line end: 3550
void MAI_SkelKing__Fi(int i) {
// register: 19
register int fx;
// register: 23
register int fy;
// register: 30
register int mx;
// address: 0xFFFFFFC8
auto int my;
// register: 22
register int md;
// address: 0xFFFFFFD0
auto int v;
// register: 4
register int dist;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
// register: 17
register int nx;
// register: 16
register int ny;
// register: 18
register int _mx;
// register: 21
register int _my;
}
// address: 0x8013A4C4
// line start: 3564
// line end: 3642
void MAI_Rhino__Fi(int i) {
// register: 23
register int fx;
// register: 30
register int fy;
// register: 21
register int mx;
// register: 22
register int my;
// address: 0xFFFFFFC8
auto int md;
// address: 0xFFFFFFD0
auto int v;
// register: 4
register int dist;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
// register: 18
register int _mx;
// register: 20
register int _my;
}
// address: 0x8013A96C
// line start: 3655
// line end: 3749
void MAI_Counselor__Fi(int i, unsigned char counsmiss[4], int _mx, int _my) {
// address: 0xFFFFFFB8
auto int fx;
// address: 0xFFFFFFC0
auto int fy;
// register: 19
register int mx;
// register: 21
register int my;
// register: 22
register int md;
// address: 0xFFFFFFC8
auto int v;
// register: 30
register int dist;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x8013AE38
// line start: 3757
// line end: 3786
void MAI_Garbud__Fi(int i) {
// register: 20
register int md;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 17
register int _mx;
// register: 18
register int _my;
}
// address: 0x8013AFE8
// line start: 3795
// line end: 3826
void MAI_Zhar__Fi(int i) {
// register: 19
register int mx;
// register: 18
register int my;
// register: 21
register int md;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
// register: 16
register int _mx;
// register: 18
register int _my;
}
// address: 0x8013B1E0
// line start: 3835
// line end: 3877
void MAI_SnotSpil__Fi(int i) {
// register: 20
register int md;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 17
register int _mx;
// register: 18
register int _my;
{
{
{
{
{
{
}
}
}
}
}
}
}
// address: 0x8013B414
// line start: 3886
// line end: 3933
void MAI_Lazurus__Fi(int i) {
// register: 17
register int md;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 17
register int _mx;
// register: 18
register int _my;
}
// address: 0x8013B684
// line start: 3942
// line end: 3972
void MAI_Lazhelp__Fi(int i) {
// register: 17
register int md;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 17
register int _mx;
// register: 18
register int _my;
}
// address: 0x8013B7A4
// line start: 3980
// line end: 4010
void MAI_Lachdanan__Fi(int i) {
// register: 20
register int md;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 17
register int _mx;
// register: 18
register int _my;
}
// address: 0x8013B934
// line start: 4019
// line end: 4051
void MAI_Warlord__Fi(int i) {
// register: 17
register int md;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 17
register int _mx;
// register: 18
register int _my;
{
{
{
{
}
}
}
}
}
// address: 0x8013BA80
// line start: 4060
// line end: 4083
void DeleteMonsterList__Fv() {
// register: 4
register int i;
// register: 2
register int mi;
}
// address: 0x8013BB9C
// line start: 4091
// line end: 4286
void ProcessMonsters__Fv() {
// register: 23
register int i;
// register: 18
register int mi;
// register: 19
register int raflag;
// register: 20
register int mx;
// register: 22
register int my;
// register: 21
register int _menemy;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
// register: 3
register int oldmode;
{
{
{
{
{
{
// register: 16
register int tmp;
}
}
}
}
}
}
}
// address: 0x8013C174
// line start: 4295
// line end: 4357
unsigned char DirOK__Fii(int i, int mdir) {
// register: 17
register long fx;
// register: 19
register long fy;
// register: 3
register int tmp;
{
{
// register: 8
register int mcount;
{
// register: 7
register int x;
{
{
// register: 5
register int y;
}
}
}
}
}
}
// address: 0x8013C55C
// line start: 4364
// line end: 4365
unsigned char PosOkMissile__Fii(int x, int y) {
}
// address: 0x8013C5C4
// line start: 4372
// line end: 4373
unsigned char CheckNoSolid__Fii(int x, int y) {
}
// address: 0x8013C608
// line start: 4400
// line end: 4519
unsigned char LineClearF__FPFii_Uciiii(unsigned char (*Clear)(), int x1, int y1, int x2, int y2) {
// register: 18
register int dx;
// register: 17
register int dy;
// register: 16
register int d;
// register: 22
register int dincH;
// register: 18
register int dincD;
// register: 17
register int xincD;
// register: 17
register int yincD;
// address: 0xFFFFFFC8
auto int xorg;
// address: 0xFFFFFFD0
auto int yorg;
// register: 21
register unsigned char done;
// register: 2
register int tmp;
}
// address: 0x8013C890
// line start: 4527
// line end: 4528
unsigned char LineClear__Fiiii(int x1, int y1, int x2, int y2) {
}
// address: 0x8013C8D0
// line start: 4539
// line end: 4654
unsigned char LineClearF1__FPFiii_Uciiiii(unsigned char (*Clear)(), int monst, int x1, int y1, int x2, int y2) {
// register: 18
register int dx;
// register: 17
register int dy;
// register: 16
register int d;
// register: 22
register int dincH;
// register: 18
register int dincD;
// register: 17
register int xincD;
// register: 17
register int yincD;
// address: 0xFFFFFFC8
auto int xorg;
// address: 0xFFFFFFD0
auto int yorg;
// register: 21
register unsigned char done;
// register: 2
register int tmp;
}
// address: 0x8013CB64
// line start: 4751
// line end: 4791
void M_FallenFear__Fii(int x, int y) {
// register: 19
register int i;
// register: 4
register int mi;
// register: 18
register int rundist;
// register: 3
register int aitype;
}
// address: 0x8013CD34
// line start: 4798
// line end: 4857
void PrintMonstHistory__Fi(int mt) {
// register: 16
register int res;
}
// address: 0x8013CF5C
// line start: 4864
// line end: 4890
void PrintUniqueHistory__Fv() {
// register: 16
register int res;
}
// address: 0x8013D080
// line start: 4900
// line end: 4981
void MissToMonst__Fiii(int i, int x, int y) {
// register: 20
register int oldx;
// register: 21
register int oldy;
// register: 16
register int newx;
// register: 17
register int newy;
// register: 5
// size: 0x50
register struct MissileStruct *Miss;
// register: 17
register int m;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
// register: 18
register int pnum;
}
// address: 0x8013D4DC
// line start: 5003
// line end: 5032
unsigned char PosOkMonst2__Fiii(int i, int x, int y) {
// register: 7
register unsigned char ret;
// register: 3
register int oi;
// register: 4
register int mi;
// register: 18
register unsigned char fire;
}
// address: 0x8013D6F8
// line start: 5043
// line end: 5083
unsigned char PosOkMonst3__Fiii(int i, int x, int y) {
// register: 19
register unsigned char ret;
// register: 3
register int oi;
// register: 4
register int objtype;
// register: 4
register int mi;
// register: 20
register unsigned char fire;
// register: 18
register unsigned char isdoor;
}
// address: 0x8013D9EC
// line start: 5096
// line end: 5119
int M_SpawnSkel__Fiii(int x, int y, int dir) {
// register: 16
register int i;
// register: 19
register int j;
// register: 18
register int skeltypes;
// register: 16
register int skel;
}
// address: 0x8013DB44
// line start: 5135
// line end: 5162
void TalktoMonster__Fi(int i) {
// register: 17
register int pnum;
// address: 0xFFFFFFE8
auto int itm;
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x8013DC64
// line start: 5169
// line end: 5194
void SpawnGolum__Fiiii(int i, int x, int y, int mi) {
}
// address: 0x8013DEB8
// line start: 5201
// line end: 5206
unsigned char CanTalkToMonst__Fi(int m) {
}
// address: 0x8013DEF0
// line start: 5213
// line end: 5229
unsigned char CheckMonsterHit__FiRUc(int m, unsigned char *ret) {
}
// address: 0x8013DFBC
// line start: 5238
// line end: 5302
void MAI_Golum__Fi(int i) {
// register: 3
register int ok;
// register: 16
register int j;
// register: 5
register int k;
// register: 3
register int mid;
// register: 16
register int mx;
// register: 21
register int my;
// register: 18
register int md;
// address: 0xFFFFFFC0
auto unsigned char have_enemy;
// register: 17
// size: 0x70
register struct MonsterStruct *Monst;
// register: 3
register int _menemy;
// address: 0xFFFFFFD0
auto int _mex;
// register: 30
register int _mey;
}
// address: 0x8013E328
// line start: 5310
// line end: 5341
unsigned char MAI_Path__Fi(int i) {
// register: 16
// size: 0x70
register struct MonsterStruct *Monst;
}
// address: 0x8013E48C
// line start: 5345
// line end: 5365
void M_StartAttack__Fi(int i) {
// register: 18
register int md;
// register: 2
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 3
register int _mx;
// register: 5
register int _my;
}
// address: 0x8013E574
// line start: 5369
// line end: 5400
void M_StartWalk__Fiiiiii(int i, int xvel, int yvel, int xadd, int yadd, int EndDir) {
// register: 8
register long fx;
// register: 9
register long fy;
// register: 2
// size: 0x70
register struct MonsterStruct *pmonster;
// register: 10
register int _mx;
// register: 11
register int _my;
}
| [
"rnd0x00@gmail.com"
] | rnd0x00@gmail.com |
bad917c4714443ef738d9b283a8a2e5029e4dd4f | 140d78334109e02590f04769ec154180b2eaf78d | /aws-cpp-sdk-cloudhsm/source/model/ModifyHsmResult.cpp | daafa826018293201b0659a05f49f29b569131c4 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | coderTong/aws-sdk-cpp | da140feb7e5495366a8d2a6a02cf8b28ba820ff6 | 5cd0c0a03b667c5a0bd17394924abe73d4b3754a | refs/heads/master | 2021-07-08T07:04:40.181622 | 2017-08-22T21:50:00 | 2017-08-22T21:50:00 | 101,145,374 | 0 | 1 | Apache-2.0 | 2021-05-04T21:06:36 | 2017-08-23T06:24:37 | C++ | UTF-8 | C++ | false | false | 1,353 | cpp | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#include <aws/cloudhsm/model/ModifyHsmResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::CloudHSM::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ModifyHsmResult::ModifyHsmResult()
{
}
ModifyHsmResult::ModifyHsmResult(const AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ModifyHsmResult& ModifyHsmResult::operator =(const AmazonWebServiceResult<JsonValue>& result)
{
const JsonValue& jsonValue = result.GetPayload();
if(jsonValue.ValueExists("HsmArn"))
{
m_hsmArn = jsonValue.GetString("HsmArn");
}
return *this;
}
| [
"henso@amazon.com"
] | henso@amazon.com |
71e408e3651babd414d7f523342aa1bcc45479a2 | ead0b1c60e787f319242de5a56d246991d6e5464 | /code/source/BaseModel.cpp | ff561f218d5127fd87d811dfc066969c03b324e4 | [] | no_license | jplafonta/XPlatCSdk | fbc9edcf7dadf88c5e20f26b6deaafa3bb512909 | 302c021dcfd7518959551b33c65499a45d7829de | refs/heads/main | 2023-07-30T04:54:27.901376 | 2021-08-31T14:26:52 | 2021-08-31T14:26:52 | 347,189,117 | 0 | 0 | null | 2021-04-15T01:09:33 | 2021-03-12T20:26:17 | C++ | UTF-8 | C++ | false | false | 613 | cpp | #include "stdafx.h"
#include "BaseModel.h"
namespace PlayFab
{
JsonObject::JsonObject(const JsonObject& src) :
m_string{ src.m_string }
{
JsonUtils::FromJson(src.m_value, m_value);
}
const char* JsonObject::StringValue() const
{
return m_string.empty() ? nullptr : m_string.data();
}
void JsonObject::FromJson(const PlayFab::JsonValue& input)
{
JsonUtils::FromJson(input, m_value);
m_string = JsonUtils::WriteToString(m_value);
}
JsonValue JsonObject::ToJson() const
{
JsonValue output;
JsonUtils::FromJson(m_value, output);
return output;
}
}
| [
"jlafonta0550@gmail.com"
] | jlafonta0550@gmail.com |
ce4f94cb48240f7a1fbd4f4ff271924c440fa1f1 | 6a2686efe30bd1b25c8c5dcea7aafa9535570783 | /src/utilmoneystr.cpp | a340acab21950e5ddcdeedf78ce81d696df12581 | [
"MIT"
] | permissive | bumbacoin/cream | 493b9203c7d5cf73f67f2357dbecc25a1ae3088c | f3e72b58a3b5ae108e2e9c1675f95aacb2599711 | refs/heads/master | 2020-04-17T17:29:34.657525 | 2019-01-22T05:28:22 | 2019-01-22T05:28:22 | 166,779,886 | 0 | 0 | MIT | 2019-01-21T08:52:49 | 2019-01-21T08:52:46 | null | UTF-8 | C++ | false | false | 2,077 | cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2018 The Cream developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <utilmoneystr.h>
#include <primitives/transaction.h>
#include <tinyformat.h>
#include <utilstrencodings.h>
std::string FormatMoney(const CAmount& n)
{
// Note: not using straight sprintf here because we do NOT want
// localized number formatting.
int64_t n_abs = (n > 0 ? n : -n);
int64_t quotient = n_abs/COIN;
int64_t remainder = n_abs%COIN;
std::string str = strprintf("%d.%08d", quotient, remainder);
// Right-trim excess zeros before the decimal point:
int nTrim = 0;
for (int i = str.size()-1; (str[i] == '0' && isdigit(str[i-2])); --i)
++nTrim;
if (nTrim)
str.erase(str.size()-nTrim, nTrim);
if (n < 0)
str.insert((unsigned int)0, 1, '-');
return str;
}
bool ParseMoney(const std::string& str, CAmount& nRet)
{
return ParseMoney(str.c_str(), nRet);
}
bool ParseMoney(const char* pszIn, CAmount& nRet)
{
std::string strWhole;
int64_t nUnits = 0;
const char* p = pszIn;
while (isspace(*p))
p++;
for (; *p; p++)
{
if (*p == '.')
{
p++;
int64_t nMult = CENT*10;
while (isdigit(*p) && (nMult > 0))
{
nUnits += nMult * (*p++ - '0');
nMult /= 10;
}
break;
}
if (isspace(*p))
break;
if (!isdigit(*p))
return false;
strWhole.insert(strWhole.end(), *p);
}
for (; *p; p++)
if (!isspace(*p))
return false;
if (strWhole.size() > 10) // guard against 63 bit overflow
return false;
if (nUnits < 0 || nUnits > COIN)
return false;
int64_t nWhole = atoi64(strWhole);
CAmount nValue = nWhole*COIN + nUnits;
nRet = nValue;
return true;
}
| [
"creamcoin@gmail.com"
] | creamcoin@gmail.com |
ddf0441ad23ba7211ef7c7ac951d084b091debfd | e5710ea6a8170f57a745548609d1258c00603344 | /SpriteObject.cpp | 090ec206034dbc689ea215d1efe77710e3bca5b7 | [] | no_license | Mckinlaydnl/MazeEscape3 | 04a9d3329549b4b88b2f538519090f9137527023 | 1749024125cd6c0c61e6f659aef658037c0daef0 | refs/heads/master | 2020-04-03T11:54:41.598560 | 2018-10-29T15:26:23 | 2018-10-29T15:26:23 | 155,235,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 252 | cpp |
// Project Includes
#include "SpriteObject.h"
SpriteObject::SpriteObject()
: GameObject() // Always initialise your parent class in your constructor
, m_sprite()
{
}
void SpriteObject::Draw(sf::RenderTarget& _target)
{
_target.draw(m_sprite);
} | [
"43002081+Mckinlaydnl@users.noreply.github.com"
] | 43002081+Mckinlaydnl@users.noreply.github.com |
5e2f2be5a168bb5c0d5210f92398db469307218d | 666f25de2586ae5252653b39802acbfb35aa0dbb | /practical_exercises/10_day_practice/day6/virtual_func/virtual_feature.cpp | 2400a1e7abc3a7d209fd1984dee647865bbff300 | [] | no_license | wangning7149/CPlusPlusThings | 16b9e0fac4d05989f1875ba256daccda746e3af5 | 334d4134e4b3e9d99f838494923db76afc74bc35 | refs/heads/master | 2023-04-23T19:32:55.309042 | 2023-04-01T05:58:16 | 2023-04-01T05:58:16 | 279,726,373 | 0 | 1 | null | 2023-04-01T05:58:17 | 2020-07-15T00:54:48 | null | UTF-8 | C++ | false | false | 704 | cpp | /* 虚函数特性.cpp */
#include <iostream>
#include <string>
using namespace std;
class A {
public:
void f(int i) { cout << "A::f()" << endl; };
};
class B : public A {
public:
virtual void f(int i) { cout << "B::f()" << endl; }
};
class C : public B {
public:
void f(int i) { cout << "C::f()" << endl; }
};
//一旦将某个成员函数声明为虚函数后,它在继承体系中就永远为虚函数了
class D : public C {
public:
void f(int) { cout << "D::f()" << endl; }
};
int main() {
A *pA, a;
B *pB, b;
C c;
D d;
pA = &a;
pA->f(1); //调用A::f
pB = &b;
pB->f(1); //调用B::f
pB = &c;
pB->f(1); //调用C::f
pB = &d;
pB->f(1); //调用D::f
return 0;
}
| [
"455954986@qq.com"
] | 455954986@qq.com |
c00e7e2d0e521b18c84a4fd4e006da5be2a05511 | 6820ef53dc0ca8663b71f5edb8ea23a8c823862b | /include/geo_configure.hh | 68187dd275da92ffdbc23403d9fc93ac1f08f52e | [] | no_license | Adiolph/OptiX-test2 | 0a402b86a12df86f69917279ef46e0838311fc49 | d04cb7bc5443060b76def477f7574acda8771782 | refs/heads/main | 2023-01-09T19:47:54.161062 | 2020-11-03T12:52:16 | 2020-11-03T12:52:16 | 307,619,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,377 | hh | #pragma once
#include <array>
#include <vector>
#include <optix_world.h>
#include <iostream>
const unsigned int DOM_NUM_X = 4u;
const unsigned int DOM_NUM_Y = 4u;
const unsigned int DOM_NUM_Z = 4u;
const float DOM_SEP_X = 50.f;
const float DOM_SEP_Y = 50.f;
const float DOM_SEP_Z = 50.f;
const float DOM_RAD = 15.f;
const unsigned int NUM_DOM = DOM_NUM_X*DOM_NUM_Y*DOM_NUM_Z;
struct GeoConfig
{
typedef std::array<float, 16> Transform_t;
std::vector<Transform_t> transforms;
static Transform_t MakeTranslation(float tx, float ty, float tz)
{
return {1.f, 0.f, 0.f, tx,
0.f, 1.f, 0.f, ty,
0.f, 0.f, 1.f, tz,
0.f, 0.f, 0.f, 1.f};
}
GeoConfig(unsigned num)
{
for (int i = 0; i < num; i++)
{
int nx = static_cast<int>(i / DOM_NUM_Y / DOM_NUM_Z);
int ny = static_cast<int>((i - (DOM_NUM_Y * DOM_NUM_Z) * nx) / DOM_NUM_Z);
int nz = i - (DOM_NUM_Y * DOM_NUM_Z) * nx - DOM_NUM_Z * ny;
float tx = (nx - (DOM_NUM_X - 1.f) / 2.f) * DOM_SEP_X;
float ty = (ny - (DOM_NUM_Y - 1.f) / 2.f) * DOM_SEP_Y;
float tz = (nz - (DOM_NUM_Z - 1.f) / 2.f) * DOM_SEP_Z;
transforms.push_back(MakeTranslation(tx, ty, tz));
// std::cout << "nxnynz: " << nx << ", " << ny << ", " << nz << std::endl;
// std::cout << "txtytz: " << tx << ", " << ty << ", " << tz << std::endl;
}
}
};
| [
"fan_hu@pku.edu.cn"
] | fan_hu@pku.edu.cn |
3125f90bc3a5f16d4089d91cf328c9f648c1bf90 | 1b56e3669f612b01275fb188281817ac57d85eaf | /xlive/XLive/Networking/XLiveQoS.cpp | f7d79e02b1bc602e71f895a4839e67e5679e2ee3 | [] | no_license | num0005/cartographer | 29c87315fd911921901369cde28ad446fdb01472 | f6edcbd49bb0a2d311a93e37c4d8b6bb1b713d42 | refs/heads/development | 2021-12-02T04:49:50.763656 | 2018-10-21T00:50:13 | 2018-10-21T00:50:13 | 102,141,108 | 1 | 0 | null | 2017-09-01T18:19:45 | 2017-09-01T18:19:45 | null | UTF-8 | C++ | false | false | 18,419 | cpp | #include <WinSock2.h>
#include <windows.h>
#include "XLive\Networking\XLiveQoS.h"
#include "H2MOD\Modules\Config\Config.h"
#include "xliveless.h"
#include "xlivedefs.h"
#include <WS2tcpip.h>
#include "Globals.h"
#include <thread>
#include <chrono>
#include <functional>
#include <numeric>
using namespace std::chrono_literals;
H2MOD_QoS h2QoS;
void StartQoSThread()
{
h2QoS.startListening();
}
void StartListenerThread(PBYTE pbData, UINT cbData)
{
if (cbData > 0)
{
/* We're racing... clean this up (eventually) - PermaNull*/
if (h2QoS.cbData > 0 && h2QoS.pbData != NULL)
{
h2QoS.cbData = 0;
delete[] h2QoS.pbData;
}
PBYTE pb = new BYTE[cbData];
ZeroMemory(pb, cbData);
memcpy(pb, pbData, cbData);
h2QoS.pbData = pb;
h2QoS.cbData = cbData;
}
if(!h2QoS.IsListening())
std::thread(StartQoSThread).detach();
}
//DWORD WINAPI XNetQosLookup (UINT cxna, XNADDR * apxna[], XNKID * apxnkid[],XNKEY * apxnkey[], UINT cina, IN_ADDR aina[], DWORD adwServiceId[], UINT cProbes, DWORD dwBitsPerSec, DWORD dwFlags, WSAEVENT hEvent, XNQOS** pxnqos)
void ClientQoSLookUp(UINT cxna, XNADDR *apxna[],UINT cProbes,IN_ADDR aina[], XNQOS** pxnqos,DWORD dwBitsPerSec,XNQOS* pqos)
{
TRACE_GAME_N("ClientQoSLookup( cxna: %i, cProbes: %i, XNADDR array: %08X)", cxna,cProbes,apxna);
//*pxnqos = new XNQOS;
/**pxnqos = (XNQOS*)malloc(sizeof(XNQOS) + (sizeof(XNQOSINFO) * (cxna)));
XNQOS* pqos = &**pxnqos;
ZeroMemory(pqos, sizeof(XNQOS) + (sizeof(XNQOSINFO)*(cxna)));
pqos->cxnqosPending = cxna;
pqos->cxnqos = cxna;
*/
while (pqos->cxnqosPending)
{
if (cProbes > 0)
{
if (pqos->cxnqosPending == 0)
break;
XNADDR *xn = apxna[pqos->cxnqosPending-1];
XNQOSINFO *xnqos = &pqos->axnqosinfo[ ( pqos->cxnqosPending - 1) ];
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup] Looping cxnas for probes pqos->xnqosPending: %i", pqos->cxnqosPending);
SOCKET connectSocket = INVALID_SOCKET;
WSADATA wsaData;
struct addrinfo *result = NULL, *ptr = NULL, hints;
int iResult;
int recvbuflen = 255;
// Initialize Winsock
iResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
if (iResult != 0) {
if (H2Config_debug_log)
TRACE_GAME_N("WSAStartup failed with error: %d\n", iResult);
}
ZeroMemory(&hints, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
std::string addr = inet_ntoa(xn->ina);
std::string prt = std::to_string(ntohs(xn->wPortOnline) + 10);
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup] QoSLookup, addr=%s, port=%s", addr.c_str(), prt.c_str());
// Resolve the server address and port
iResult = getaddrinfo(addr.c_str(), prt.c_str(), &hints, &result);
if (iResult != 0) {
if (H2Config_debug_log)
TRACE_GAME_N("[XnetQoSLookup] getaddrinfo failed with error: %d\n", iResult);
//WSACleanup();
xnqos->cProbesRecv = 0;
xnqos->wRttMedInMsecs = 1000;
xnqos->wRttMinInMsecs = 1000;
xnqos->dwUpBitsPerSec = 0;
xnqos->dwDnBitsPerSec = 0;
xnqos->bFlags = XNET_XNQOSINFO_TARGET_DISABLED;
if(pqos->cxnqosPending > 0)
pqos->cxnqosPending--;
break;
continue;
}
for (ptr = result; ptr != NULL; ptr = ptr->ai_next) {
connectSocket = socket(ptr->ai_family, ptr->ai_socktype,
ptr->ai_protocol);
if (connectSocket == INVALID_SOCKET) {
xnqos->wRttMinInMsecs = 2000;
xnqos->wRttMedInMsecs = 2000;
xnqos->bReserved = 0;
xnqos->dwUpBitsPerSec = 0;
xnqos->dwDnBitsPerSec = 0;
xnqos->bFlags = XNET_XNQOSINFO_TARGET_DISABLED;
if(pqos->cxnqosPending > 0)
pqos->cxnqosPending--;
break;
}
/* We're only allowing 500ms for a response from server, or connection to server to be established. */
int nTimeout = 500;
setsockopt(connectSocket, SOL_SOCKET, SO_RCVTIMEO, (const char*)&nTimeout, sizeof(int));
setsockopt(connectSocket, SOL_SOCKET, SO_SNDTIMEO, (const char*)&nTimeout, sizeof(int));
// Connect to server.
iResult = connect(connectSocket, ptr->ai_addr, (int)ptr->ai_addrlen);
if (iResult == SOCKET_ERROR) {
closesocket(connectSocket);
connectSocket = INVALID_SOCKET;
xnqos->wRttMinInMsecs = 3000;
xnqos->wRttMedInMsecs = 3000;
xnqos->bReserved = 0;
xnqos->dwUpBitsPerSec = 0;
xnqos->dwDnBitsPerSec = 0;
xnqos->bFlags = XNET_XNQOSINFO_TARGET_DISABLED;
if(pqos->cxnqosPending > 0)
pqos->cxnqosPending--;
continue;
}
}
freeaddrinfo(result);
if (connectSocket == INVALID_SOCKET)
{
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup] Unable to connect to server...");
xnqos->wRttMinInMsecs = 4000;
xnqos->wRttMedInMsecs = 4000;
xnqos->bReserved = 0;
xnqos->dwUpBitsPerSec = 0;
xnqos->dwDnBitsPerSec = 0;
xnqos->bFlags = XNET_XNQOSINFO_TARGET_DISABLED;
if(pqos->cxnqosPending > 0 )
pqos->cxnqosPending--;
continue;
}
int RecvLen = 0;
char recvbuf[500];
std::vector<long long int> ping_storage;
int probes = cProbes;
do
{
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup][Client] Sending Probe %i..",probes);
auto started = std::chrono::high_resolution_clock::now();
char send_data[3];
ZeroMemory(send_data, 3);
*(WORD*)&send_data = 0xAADD;
send(connectSocket, send_data, 3, 0);
RecvLen = recv(connectSocket, recvbuf, recvbuflen, 0);
if(H2Config_debug_log)
TRACE_GAME_N("[XNetQosLookup][Client] Probe got %i bytes of data back",RecvLen);
auto done = std::chrono::high_resolution_clock::now();
std::chrono::milliseconds d = std::chrono::duration_cast<std::chrono::milliseconds>(done - started);
long long int diff = d.count();
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup][Client] Probe %i finished ping: %lld", probes, diff);
ping_storage.push_back(diff);
probes--;
} while (probes > 0);
if (RecvLen <= 0)
{
closesocket(connectSocket);
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup][Socket: %08X] Disconnected!",connectSocket);
xnqos->wRttMinInMsecs = 4000;
xnqos->wRttMedInMsecs = 4000;
xnqos->bReserved = 0;
xnqos->dwUpBitsPerSec = 0;
xnqos->dwDnBitsPerSec = 0;
xnqos->bFlags = XNET_XNQOSINFO_TARGET_DISABLED;
pqos->cxnqosPending--;
continue;
}
/*int WSAError = WSAGetLastError();
if (RecvLen == -1 || WSAError == WSAETIMEDOUT || WSAError == WSAECONNRESET || WSAError == WSAESHUTDOWN || WSAError == WSAEINVAL || connectSocket == INVALID_SOCKET || connectSocket == SOCKET_ERROR)
{
closesocket(connectSocket);
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup][Socket: %08X] Winsock Error Occured: %i - Socket Closed", connectSocket, WSAError);
}*/
/* This gets cleaned up in XNetQosRelease() - XNQOS struct is passed there */
PBYTE pb = new BYTE[RecvLen];
ZeroMemory(pb, RecvLen);
memcpy(pb, recvbuf, RecvLen);
auto ping_result = std::minmax_element(ping_storage.begin(),ping_storage.end());
long long min_ping = ping_storage[ (ping_result.first- ping_storage.begin())];
long long max_ping = ping_storage[ (ping_result.second - ping_storage.begin()) ];
WORD average = (std::accumulate(ping_storage.begin(), ping_storage.end(), 0) / ping_storage.size());
ping_storage.clear();
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup][Client] Finished Probes max_ping: %i, min_ping: %i, average: %i", (WORD)max_ping, (WORD)min_ping,average);
xnqos->wRttMinInMsecs = (WORD)min_ping;
xnqos->wRttMedInMsecs = (WORD)average;
xnqos->cProbesRecv = 4;
xnqos->cProbesXmit = 4;
xnqos->pbData = pb;
xnqos->cbData = RecvLen;
xnqos->bReserved = 0;
xnqos->dwUpBitsPerSec = dwBitsPerSec;
xnqos->dwDnBitsPerSec = dwBitsPerSec;
xnqos->bFlags = XNET_XNQOSINFO_TARGET_CONTACTED | XNET_XNQOSINFO_COMPLETE | XNET_XNQOSINFO_DATA_RECEIVED;
closesocket(connectSocket);
if (pqos->cxnqosPending > 0)
{
if(H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup] Finished Probing: %s, %i hosts left to probe.", addr.c_str(), pqos->cxnqosPending);
pqos->cxnqosPending--;
}
}
}
//pqos->cxnqosPending = cProbes;
/**pxnqos = new XNQOS;
XNQOS* pqos = *pxnqos;
pqos->cxnqos = 1;
pqos->cxnqosPending = 0;
memset(pqos->axnqosinfo, 0x00, sizeof(XNQOSINFO));
pqos->axnqosinfo->bReserved = 0;
pqos->axnqosinfo->cProbesXmit = cProbes;
pqos->axnqosinfo->cProbesRecv = cProbes;
if (cProbes > 0)
{
pqos->axnqosinfo->wRttMedInMsecs = 5;
pqos->axnqosinfo->wRttMinInMsecs = 10;
pqos->axnqosinfo->dwUpBitsPerSec = dwBitsPerSec;
pqos->axnqosinfo->dwDnBitsPerSec = dwBitsPerSec;
pqos->axnqosinfo->bFlags = XNET_XNQOSINFO_TARGET_CONTACTED | XNET_XNQOSINFO_COMPLETE | XNET_XNQOSINFO_DATA_RECEIVED;
}
else
{
pqos->axnqosinfo->wRttMedInMsecs = 5;
pqos->axnqosinfo->wRttMinInMsecs = 10;
pqos->axnqosinfo->dwUpBitsPerSec = dwBitsPerSec;
pqos->axnqosinfo->dwDnBitsPerSec = dwBitsPerSec;
pqos->axnqosinfo->bFlags = XNET_XNQOSINFO_TARGET_CONTACTED | XNET_XNQOSINFO_COMPLETE;
}*/
}
void handleClientConnection(SOCKET socket) {
char recvbuf[2];
int iResult = 1;
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup] handleClientConnection(Socket: %08X)",socket);
/* We're only allowing 500ms of wait-time between packets, if the latency is higher than this the game would be unplayable either way.*/
int nTimeout = 500;
setsockopt(socket, SOL_SOCKET, SO_RCVTIMEO, (const char*)&nTimeout, sizeof(int));
setsockopt(socket, SOL_SOCKET, SO_SNDTIMEO, (const char*)&nTimeout, sizeof(int));
do {
iResult = recv(socket, recvbuf, 2, 0);
/*int WSAError = WSAGetLastError();
if (WSAError == WSAETIMEDOUT || WSAError == WSAECONNRESET || WSAError == WSAESHUTDOWN || WSAError == WSAEINVAL || iResult == SOCKET_ERROR)
{
closesocket(socket);
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup][Socket: %08X] Winsock Error Occured: %i", socket,WSAError);
break;
}*/
if (iResult <= 0) {
if (H2Config_debug_log)
TRACE_GAME_N("[XnetQoSLookup][Socket: %08X] Disconnected.",socket);
closesocket(socket);
break;
}
if (*(WORD*)recvbuf == 0xAADD)
{
if (H2Config_debug_log)
TRACE_GAME_N("[XNetQoSLookup][Socket: %08X] Got client magic, sending data back!",socket);
char *mSendBuf = new char[h2QoS.cbData];
ZeroMemory(mSendBuf, h2QoS.cbData);
memcpy(mSendBuf, h2QoS.pbData, h2QoS.cbData);
send(socket, mSendBuf, h2QoS.cbData, 0);
delete[] mSendBuf;
}
std::this_thread::sleep_for(1ms);
} while (1);
}
BOOL H2MOD_QoS::IsListening()
{
return listenerThreadRunning;
}
void H2MOD_QoS::startListening()
{
if (IsListening())
return;
listenerThreadRunning = TRUE;
struct addrinfo *result = NULL;
struct addrinfo hints;
int iResult;
int port = H2Config_base_port + 10; /* port number to use */
int client; /* file descriptor for socket */
WSADATA wsaData;
// Initialize Winsock
iResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
if (iResult != 0) {
if (H2Config_debug_log)
TRACE_GAME_N("WSAStartup failed with error: %d", iResult);
return;
}
ZeroMemory(&hints, sizeof(hints));
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
hints.ai_flags = AI_PASSIVE;
// Resolve the server address and port
iResult = getaddrinfo(NULL, std::to_string(port).c_str(), &hints, &result);
if (iResult != 0) {
if (H2Config_debug_log)
TRACE_GAME_N("getaddrinfo failed with error: %d, port:", iResult, std::to_string(port).c_str());
//WSACleanup();
return;
}
// Create a SOCKET for connecting to server
serverSocket = socket(result->ai_family, result->ai_socktype, result->ai_protocol);
if (serverSocket == INVALID_SOCKET) {
if (H2Config_debug_log)
TRACE_GAME_N("socket failed with error: %ld", WSAGetLastError());
freeaddrinfo(result);
serverSocket = NULL;
//WSACleanup();
return;
}
/* bind socket to the port */
iResult = bind(serverSocket, result->ai_addr, (int)result->ai_addrlen);
if (iResult == SOCKET_ERROR) {
if (H2Config_debug_log)
TRACE_GAME_N("unable to bind to socket: %s", strerror(errno));
freeaddrinfo(result);
closesocket(serverSocket);
serverSocket = NULL;
return;
}
freeaddrinfo(result);
/* listen for clients on the socket */
iResult = listen(serverSocket, SOMAXCONN);
if (iResult == SOCKET_ERROR) {
if (H2Config_debug_log)
TRACE_GAME_N("Error trying to listen on port: %s", strerror(errno));
closesocket(serverSocket);
serverSocket = NULL;
return;
}
if (H2Config_debug_log)
TRACE_GAME_N("Listening on port: %d", port);
while (listenerThreadRunning) {
/* wait for a client to connect */
client = accept(serverSocket, 0, 0);
if (client == -1) {
if (H2Config_debug_log)
TRACE_GAME_N("accept failed: %s", strerror(errno));
//try to accept again
//TODO: if it fails too many times, exit
continue;
}
/*
This is probably a really bad idea, easy method to DoS servers if natural play doesn't already as a person's CPU will start spawning 1 thread per connection.
Need to come up with a better implementation because without this we won't be able to process data coming from the server,
It may be best to attempt a connection first and start timing after the connection on the client end for the ping portion.
*/
std::thread t1(&handleClientConnection, client);
t1.detach();
std::this_thread::sleep_for(1ms);
}
listenerThreadRunning = FALSE;
}
// #69: XNetQosListen
DWORD WINAPI XNetQosListen(XNKID *pxnkid, PBYTE pb, UINT cb, DWORD dwBitsPerSec, DWORD dwFlags)
{
//TRACE("XNetQosListen (pxnkid = %X, pb = %X, cb = %d, bitsPerSec = %d, flags = %X)",
// pxnkid, pb, cb, dwBitsPerSec, dwFlags);
if ((dwFlags & XNET_QOS_LISTEN_ENABLE) && (dwFlags & XNET_QOS_LISTEN_SET_DATA))
{
//TRACE("XnetQoSListen == XNET_QOS_LISTEN_ENABLE && XNetQoSListen == XNET_QOS_LISTEN_SET_DATA");
StartListenerThread(pb, cb);
}
if (dwFlags & XNET_QOS_LISTEN_DISABLE)
{
//TRACE("XnetQoSListen == XNET_QOS_LISTEN_DISABLE");
}
if (dwFlags & XNET_QOS_LISTEN_RELEASE)
{
//TRACE("XnetQosListen == XNET_QOS_LISTEN_RELEASE");
}
if ((dwFlags & XNET_QOS_LISTEN_ENABLE) && !(dwFlags & XNET_QOS_LISTEN_SET_DATA))
{
StartListenerThread(pb, cb);
}
//std::thread(StartQoSThread,pb,cb).detach();
// if(dwFlags == XNET_QOS_LISTEN_ENABLE)
// std::thread(StartQoSThread).detach();
return 0;
}
// #70: XNetQosLookup
DWORD WINAPI XNetQosLookup(UINT cxna, XNADDR * apxna[], XNKID * apxnkid[], XNKEY * apxnkey[], UINT cina, IN_ADDR aina[], DWORD adwServiceId[], UINT cProbes, DWORD dwBitsPerSec, DWORD dwFlags, WSAEVENT hEvent, XNQOS** pxnqos)
{
TRACE("XNetQosLookup ( cxna: %i, cina: %i, cProbes: %i, dwBitsPerSec: %i, hEvent: %X)",
cxna, cina, cProbes, dwBitsPerSec, hEvent);
TRACE("XNetQoSLookup( apxna: %X, apxnkid: %X, apxnkey: %X, aina: %X, adwServiceId: %X, pxnqos: %X)",
apxna, apxnkid, apxnkey, aina, adwServiceId, pxnqos);
//void ClientQoSLookUp(UINT cxna, XNADDR* apxna[],UINT cProbes,IN_ADDR aina[], XNQOS** pxnqos,DWORD dwBitsPerSec)
//XNADDR **axpna_copy = (XNADDR**)malloc(cxna * sizeof(XNADDR*));
XNADDR** axpna_copy = (XNADDR**)malloc(cxna * sizeof(XNADDR*));
for (int i = 0; i < cxna; i++)
{
XNADDR* xn = apxna[i];
axpna_copy[i] = new XNADDR;
memcpy(axpna_copy[i], xn, sizeof(XNADDR));
}
*pxnqos = (XNQOS*)malloc(sizeof(XNQOS) + (sizeof(XNQOSINFO) * (cxna - 1)));
XNQOS* pqos = &**pxnqos;
ZeroMemory(pqos, sizeof(XNQOS) + (sizeof(XNQOSINFO)*(cxna - 1)));
pqos->cxnqosPending = cxna;
pqos->cxnqos = cxna;
pqos->axnqosinfo[0].wRttMedInMsecs = 500;
pqos->axnqosinfo[0].wRttMinInMsecs = 100;
pqos->axnqosinfo[0].dwDnBitsPerSec = dwBitsPerSec;
pqos->axnqosinfo[0].dwUpBitsPerSec = dwBitsPerSec;
pqos->axnqosinfo[0].bFlags = XNET_XNQOSINFO_TARGET_CONTACTED | XNET_XNQOSINFO_COMPLETE;
/*
This is gonna hit some CPUs hard when there's a lot of servers on the list, we'll probably want to queue this a bit and only allow X number of threads to run at a time.
We want to abuse the CPU where possible considering more modern systems will have decent CPUs so we'll be able to force things to happen faster but still want to keep compatibility with older setups.
*/
std::thread(ClientQoSLookUp, cxna, axpna_copy, cProbes, aina, pxnqos, dwBitsPerSec, pqos).detach();
/* Memory Leak - FIX ME! (Need to do some kind of garbage collection somewhere and store data like this in an array to be cleared later */
/*
*pxnqos = new XNQOS;
XNQOS* pqos = *pxnqos;
pqos->cxnqos = 1;
pqos->cxnqosPending = 0;
memset(pqos->axnqosinfo, 0x00, sizeof(XNQOSINFO));
pqos->axnqosinfo->bReserved = 0;
pqos->axnqosinfo->cProbesXmit = cProbes;
pqos->axnqosinfo->cProbesRecv = cProbes;
if (cProbes > 0)
{
pqos->axnqosinfo->wRttMedInMsecs = 5;
pqos->axnqosinfo->wRttMinInMsecs = 10;
pqos->axnqosinfo->dwUpBitsPerSec = dwBitsPerSec;
pqos->axnqosinfo->dwDnBitsPerSec = dwBitsPerSec;
pqos->axnqosinfo->bFlags = XNET_XNQOSINFO_TARGET_CONTACTED | XNET_XNQOSINFO_COMPLETE | XNET_XNQOSINFO_DATA_RECEIVED;
}
else
{
pqos->axnqosinfo->wRttMedInMsecs = 5;
pqos->axnqosinfo->wRttMinInMsecs = 10;
pqos->axnqosinfo->dwUpBitsPerSec = dwBitsPerSec;
pqos->axnqosinfo->dwDnBitsPerSec = dwBitsPerSec;
pqos->axnqosinfo->bFlags = XNET_XNQOSINFO_TARGET_CONTACTED | XNET_XNQOSINFO_COMPLETE;
}*/
return 0;
}
// #71: XNetQosServiceLookup
DWORD WINAPI XNetQosServiceLookup(DWORD a1, DWORD a2, DWORD a3)
{
TRACE("XNetQosServiceLookup");
// not connected to LIVE - abort now
// - wants a3 return ASYNC struct
return ERROR_INVALID_PARAMETER;
//return 0;
}
// #72: XNetQosRelease
INT WINAPI XNetQosRelease(XNQOS* pxnqos)
{
for (int i = 0; i == pxnqos->cxnqos; i++)
{
if (pxnqos->axnqosinfo[i].cbData > 0)
delete[] pxnqos->axnqosinfo[i].pbData;
delete[] & pxnqos->axnqosinfo[i];
//XNQOSINFO *xnqos = &pqos->axnqosinfo[ ( pqos->cxnqosPending - 1) ];
}
/* We need to clean-up all XNetQoSLookup data here, listener data should be cleaned up inside the Listen function Only. */
TRACE("XNetQosRelease");
return 0;
}
// #77
// TODO: Check if halo2 uses this at all and implement it.
DWORD WINAPI XNetQosGetListenStats(DWORD a1, DWORD a2)
{
TRACE("XNetQosGetListenStats");
return 0;
}
| [
"crich@thedefaced.org"
] | crich@thedefaced.org |
7bf2919c87f0e488b47fa3c726616e1e2fa19a16 | 3e886e8707eb5e08c47b3b40dc0ad75ef470645c | /grpc_async_greeter/greeter_async_client2.cc | 521da3d889be5e37beed863dfde131a5968723b3 | [] | no_license | kanglieyong/CppTechnique | c5f7ad4e79074e0fd1252f41e13491638b9d8e4a | f683fa8aa7609eb5caccfca93b60e84878c09888 | refs/heads/master | 2021-01-18T03:58:42.033320 | 2018-01-29T15:36:32 | 2018-01-29T15:36:32 | 33,157,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,946 | cc | #include <iostream>
#include <string>
#include <memory>
#include <grpc++/grpc++.h>
#include <grpc/support/log.h>
#include <thread>
#include "helloworld.grpc.pb.h"
using grpc::Channel;
using grpc::ClientAsyncResponseReader;
using grpc::ClientContext;
using grpc::CompletionQueue;
using grpc::Status;
using helloworld::HelloRequest;
using helloworld::HelloReply;
using helloworld::Greeter;
class GreeterClient
{
public:
explicit GreeterClient(std::shared_ptr<Channel> channel)
: stub_(Greeter::NewStub(channel)) {}
void SayHello(const std::string &user) {
HelloRequest request;
request.set_name(user);
AsyncClientCall *call = new AsyncClientCall;
call->response_reader = stub_->PrepareAsyncSayHello(&call->context, request, &cq_);
call->response_reader->StartCall();
call->response_reader->Finish(&call->reply, &call->status, (void*)call);
}
void AsyncCompleteRpc() {
void *got_tag;
bool ok = false;
while (cq_.Next(&got_tag, &ok)) {
AsyncClientCall *call = static_cast<AsyncClientCall*>(got_tag);
GPR_ASSERT(ok);
if (call->status.ok()) {
std::cout << "Greeter received: " << call->reply.message() << std::endl;
} else {
std::cout << "RPC failed" << std::endl;
}
delete call;
}
}
private:
struct AsyncClientCall {
HelloReply reply;
ClientContext context;
Status status;
std::unique_ptr<ClientAsyncResponseReader<HelloReply> > response_reader;
};
std::unique_ptr<Greeter::Stub> stub_;
CompletionQueue cq_;
};
int main()
{
GreeterClient greeter(grpc::CreateChannel("localhost:50051", grpc::InsecureChannelCredentials()));
std::thread thread_ = std::thread(&GreeterClient::AsyncCompleteRpc, &greeter);
for(int i=0; i<100; i++) {
std::string user("Peng Shasha" + std::to_string(i));
greeter.SayHello(user);
}
std::cout << "Press control-c to quit" << std::endl << std::endl;
thread_.join();
return 0;
}
| [
"kanglieyong@gmail.com"
] | kanglieyong@gmail.com |
7769e94852ef13c986495d9c37f4a1f04b66350d | b7c27f67dbb0678b18546ccbb53281f005aa109d | /include/OK/MapAnalyzer.hpp | c1c21fde16f6668ba9889555ace3a51d2ec84726 | [] | no_license | JonShard/BeatSaberMapGenerator | 4b7bd478ba4e6683905995111f9eeabb75a7051b | 22d602e415dcaecfc25287a8cf9101a66e8bc292 | refs/heads/master | 2021-03-18T05:02:35.857584 | 2020-10-14T19:32:02 | 2020-10-14T19:32:02 | 247,047,962 | 3 | 0 | null | 2020-10-14T19:32:03 | 2020-03-13T10:43:20 | C++ | UTF-8 | C++ | false | false | 415 | hpp | #pragma once
#include "Map.hpp"
#include "Notation.hpp"
#include "TransitionMatrix.hpp"
namespace OK {
// MapAnalyzer parses a map and populates a TransitionMatrix with every note to note transition the map made.
class MapAnalyzer {
public:
static TransitionMatrix<bool> RegisterTransitionsInMap(Map map); // Records all note transitions and stores them in a boolean transition matrix.
};
} // namespace OK
| [
"jonemskaara@gmail.com"
] | jonemskaara@gmail.com |
985bedb8c4f98e2c27963aadb6a63a025a151adc | 72843da20942b6075f83d31d737957f86191b01e | /Unclassified/Done/1463.cpp | 12fa39a555301349482230bf0633bd157572fd58 | [] | no_license | dtcxzyw/OI-Source | cb641f2c7e203a32073f4cae98e690f1cad3dc22 | aa041e2af7e1546e8c7ac5a960a27a3489cfcff8 | refs/heads/master | 2021-12-17T17:52:05.043490 | 2021-12-17T12:52:52 | 2021-12-17T12:52:52 | 140,553,277 | 43 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | #include <cstdio>
#include <cstring>
const int p[12]={2,3,5,7,11,13,17,19,23,29,31,37};
int n,cnt[5001];
void DFS(int c,int x,int fac,int mp){
if(cnt[fac]>x)cnt[fac]=x;
if(c==12)return;
for(int i=1;i<=mp;++i){
if(1LL*x*p[c]<n)x*=p[c];
else break;
DFS(c+1,x,fac*(i+1),i);
}
}
int main(){
scanf("%d",&n);
memset(cnt,0x7f,sizeof(cnt));
DFS(0,1,1,30);
int ans=0,minv=0x7f7f7f7f;
for(int i=5000;i>=1;--i)
if(cnt[i]<=n && cnt[i]<minv){
minv=cnt[i];
if(cnt[i]>ans)ans=cnt[i];
}
printf("%d\n",ans);
return 0;
}
| [
"2601110573@qq.com"
] | 2601110573@qq.com |
381f2119d40138daf1999cca28c54d81bb9b8dc5 | 5fa67edfc3093083a89fb598f0f90f9d70b3c945 | /Codes/final_5_jun_recv/final_5_jun_recv.ino | dd3dcf13604b30e5d7e87724a5f484f3c1648879 | [
"BSD-3-Clause"
] | permissive | RutvijP/MBOT-SwarmAgent | d51bfad64a83062130cbe83d8cab21d3ed0ea368 | ec5de1b4ba3cd1a7c6fa1dea49d3ba5b882103c8 | refs/heads/main | 2023-03-31T13:58:26.026104 | 2021-04-12T12:19:17 | 2021-04-12T12:19:17 | 357,181,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,340 | ino | #include <IRremote.h>
#define ir 8
#define bittm 562
long int ack =0b00000000000000000000000000001000;
int RECV_PIN = 4; // dig pin 4 for rx1
// dig pin 5 for rx4
IRrecv irrecv(RECV_PIN);
decode_results results;
void irsetup(void)
{
pinMode(ir, OUTPUT);
digitalWrite(ir, LOW);
}
void ircarrier(unsigned int irtimemicro)
{
for(int i=0; i < (irtimemicro / 26); i++)
{
digitalWrite(ir, HIGH);
delayMicroseconds(9);
digitalWrite(ir, LOW);
delayMicroseconds(9);
}
}
void irsendcode(unsigned long code)
{
ircarrier(9000);
delayMicroseconds(4500);
for (int i=0; i<32; i++)
{
ircarrier(bittm);
if (code & 0x80000000)
delayMicroseconds(3 * bittm);
else
delayMicroseconds(bittm);
code<<=1;
}
ircarrier(bittm);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////
void setup()
{
Serial.begin(9600);
pinMode(A0, OUTPUT);
pinMode(A1, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A3, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
}
//////////////////////////////////////////////////// void loop///////////////////////////////////////////////
long int setupi=0,setupi1=0,pvalue=0,ans, decision=0 ,delayloop=0,sendack=0,sendno=0,sendno1=0;
void loop()
{
//////////////////////////////////////////////////////////////////
if ((setupi==0))
{ irrecv.enableIRIn(); ///////////////// this part causes probem
Serial.println("setup receiving");
setupi=1;
delay(100);
}
if ( irrecv.decode(&results) )
{
Serial.println(results.value,BIN);
if (results.value==0b100)
{ans=12;}
else {ans=9;}
irrecv.enableIRIn();
}
//delay(200);
if (ans==12)
//////////////////////////////////////////////////////
{ Serial.println("tx bit verified");
cli();
for(sendno=0;sendno<10;sendno++)
{
if(sendno==0)
{ Serial.println("sending ack...");
irsetup();
sendno=1;
}
irsendcode(ack);
delay(200);
cli();
delay(200);
Serial.println("ack sent");
delay(20000);
}
ans=2;
}
if (ans==2)
{delay(200);
Serial.println("starting");
delay(200);
cli();
delay(200);
while(1)
{delay(4000);
for(delayloop=0;delayloop<40;delayloop++)
{Serial.println("motor on");
digitalWrite(10,HIGH);
digitalWrite(A1,HIGH);
digitalWrite(A0,LOW);
digitalWrite(9,HIGH);
digitalWrite(A2,HIGH);
digitalWrite(A3,LOW);
delay(4000);
}
for(delayloop=0;delayloop<40;delayloop++)
{
Serial.println("motor off");
digitalWrite(10,LOW);
digitalWrite(9,LOW);
delay(4000);
//delay(2000);
}
}
}
//else Serial.println("if loopp is off");
}
/* digitalWrite(10,HIGH);
digitalWrite(A1,HIGH);
digitalWrite(A0,LOW);
digitalWrite(9,HIGH);
digitalWrite(A2,HIGH);
digitalWrite(A3,LOW);
*/
/*digitalWrite(10,LOW);
digitalWrite(9,LOW);
*/
| [
"pathakrutvij541@gmail.com"
] | pathakrutvij541@gmail.com |
cd908589f98b57b6aff89a2d44426f97496dedc8 | 2473468345d6ad1a891cc583876dda9d7314b936 | /CH-HCNetSDKV5.3.6.30_build20180816_Win64/Demo示例/1- MFC综合示例/DlgWallVirLED.h | b8b75d041aecfd6e7eb8e87724f21c97979eb040 | [] | no_license | nbdwddbf/hikvision | 23d11d5304151794645216b33c5c77d5f8798638 | 8db96df23c7236fd5cf8b471b976cb628adcc071 | refs/heads/master | 2020-04-12T18:10:13.564654 | 2018-12-21T05:52:09 | 2018-12-21T05:52:09 | 162,671,443 | 7 | 5 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,820 | h | #if !defined(AFX_DLGWALLVIRLED_H__FF22C61E_B60C_4794_B43A_AA792019F494__INCLUDED_)
#define AFX_DLGWALLVIRLED_H__FF22C61E_B60C_4794_B43A_AA792019F494__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgWallVirLED.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgWallVirLED dialog
class CDlgWallVirLED : public CDialog
{
// Construction
public:
CDlgWallVirLED(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgWallVirLED)
enum { IDD = IDD_DLG_VIDEOWALL_VIRTUAL_LED };
CComboBox m_cmbMoveSpeed;
CComboBox m_cmbMoveDirection;
CComboBox m_CombMoveMode;
CComboBox m_CombFontSize;
CComboBox m_CombDisplayMode;
BYTE m_byFontColU;
BYTE m_byFontColV;
BYTE m_byFontColY;
DWORD m_dwHeight;
DWORD m_dwLEDNo;
DWORD m_dwWallNo;
DWORD m_dwWidth;
DWORD m_dwX;
DWORD m_dwY;
CString m_csLEDContent;
BYTE m_byBackgroundU;
BYTE m_byBackgroundV;
BYTE m_byBackgroundY;
BOOL m_BEnable;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgWallVirLED)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgWallVirLED)
afx_msg void OnBtnVirRefresh();
afx_msg void OnBtnVirLedset();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
LONG m_lUserID;
LONG m_iDeviceIndex;
BYTE m_byWallNo; //ÓÃÓÚ³õʼ»¯Ç½ºÅ
protected:
BOOL UpdateLedPapam(NET_DVR_VIRTUALLED_PARAM &Papam);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGWALLVIRLED_H__FF22C61E_B60C_4794_B43A_AA792019F494__INCLUDED_)
| [
"bfding@cloume.com"
] | bfding@cloume.com |
534bdc0f69a2fdb1c6907d44586209112ebbe284 | c831d5b1de47a062e1e25f3eb3087404b7680588 | /webkit/Tools/MiniBrowser/win/MiniBrowser.cpp | b5aee85f61f8523ae22fd63e71feb827ed0e5b46 | [] | no_license | naver/sling | 705b09c6bba6a5322e6478c8dc58bfdb0bfb560e | 5671cd445a2caae0b4dd0332299e4cfede05062c | refs/heads/master | 2023-08-24T15:50:41.690027 | 2016-12-20T17:19:13 | 2016-12-20T17:27:47 | 75,152,972 | 126 | 6 | null | 2022-10-31T00:25:34 | 2016-11-30T04:59:07 | C++ | UTF-8 | C++ | false | false | 16,690 | cpp | /*
* Copyright (C) 2006, 2008, 2013-2015 Apple Inc. All rights reserved.
* Copyright (C) 2009, 2011 Brent Fulgham. All rights reserved.
* Copyright (C) 2009, 2010, 2011 Appcelerator, Inc. All rights reserved.
* Copyright (C) 2013 Alex Christensen. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "stdafx.h"
#include "MiniBrowser.h"
#include "DOMDefaultImpl.h"
#include "MiniBrowserLibResource.h"
#include "MiniBrowserReplace.h"
#include <WebKit/WebKitCOMAPI.h>
#include <wtf/ExportMacros.h>
#include <wtf/Platform.h>
#if USE(CF)
#include <CoreFoundation/CFRunLoop.h>
#endif
#include <algorithm>
#include <cassert>
#include <functional>
#include <memory>
#include <string>
#include <vector>
namespace WebCore {
float deviceScaleFactorForWindow(HWND);
}
static const int maxHistorySize = 10;
typedef _com_ptr_t<_com_IIID<IWebMutableURLRequest, &__uuidof(IWebMutableURLRequest)>> IWebMutableURLRequestPtr;
MiniBrowser::MiniBrowser(HWND mainWnd, HWND urlBarWnd, bool useLayeredWebView, bool pageLoadTesting)
: m_hMainWnd(mainWnd)
, m_hURLBarWnd(urlBarWnd)
, m_useLayeredWebView(useLayeredWebView)
, m_pageLoadTestClient(std::make_unique<PageLoadTestClient>(this, pageLoadTesting))
{
}
HRESULT MiniBrowser::init()
{
updateDeviceScaleFactor();
HRESULT hr = WebKitCreateInstance(CLSID_WebView, 0, IID_IWebView, reinterpret_cast<void**>(&m_webView.GetInterfacePtr()));
if (FAILED(hr))
return hr;
hr = m_webView->QueryInterface(IID_IWebViewPrivate2, reinterpret_cast<void**>(&m_webViewPrivate.GetInterfacePtr()));
if (FAILED(hr))
return hr;
hr = WebKitCreateInstance(CLSID_WebHistory, 0, __uuidof(m_webHistory), reinterpret_cast<void**>(&m_webHistory.GetInterfacePtr()));
if (FAILED(hr))
return hr;
hr = WebKitCreateInstance(CLSID_WebCoreStatistics, 0, __uuidof(m_statistics), reinterpret_cast<void**>(&m_statistics.GetInterfacePtr()));
if (FAILED(hr))
return hr;
hr = WebKitCreateInstance(CLSID_WebCache, 0, __uuidof(m_webCache), reinterpret_cast<void**>(&m_webCache.GetInterfacePtr()));
return hr;
}
HRESULT MiniBrowser::prepareViews(HWND mainWnd, const RECT& clientRect, const BSTR& requestedURL, HWND& viewHwnd)
{
if (!m_webView)
return E_FAIL;
HRESULT hr = m_webView->setHostWindow(mainWnd);
if (FAILED(hr))
return hr;
hr = m_webView->initWithFrame(clientRect, 0, 0);
if (FAILED(hr))
return hr;
if (!requestedURL) {
IWebFramePtr frame;
hr = m_webView->mainFrame(&frame.GetInterfacePtr());
if (FAILED(hr))
return hr;
frame->loadHTMLString(_bstr_t(defaultHTML).GetBSTR(), 0);
}
hr = m_webViewPrivate->setTransparent(m_useLayeredWebView);
if (FAILED(hr))
return hr;
hr = m_webViewPrivate->setUsesLayeredWindow(m_useLayeredWebView);
if (FAILED(hr))
return hr;
hr = m_webViewPrivate->viewWindow(&viewHwnd);
return hr;
}
HRESULT MiniBrowser::setFrameLoadDelegate(IWebFrameLoadDelegate* frameLoadDelegate)
{
m_frameLoadDelegate = frameLoadDelegate;
return m_webView->setFrameLoadDelegate(frameLoadDelegate);
}
HRESULT MiniBrowser::setFrameLoadDelegatePrivate(IWebFrameLoadDelegatePrivate* frameLoadDelegatePrivate)
{
return m_webViewPrivate->setFrameLoadDelegatePrivate(frameLoadDelegatePrivate);
}
HRESULT MiniBrowser::setUIDelegate(IWebUIDelegate* uiDelegate)
{
m_uiDelegate = uiDelegate;
return m_webView->setUIDelegate(uiDelegate);
}
HRESULT MiniBrowser::setAccessibilityDelegate(IAccessibilityDelegate* accessibilityDelegate)
{
m_accessibilityDelegate = accessibilityDelegate;
return m_webView->setAccessibilityDelegate(accessibilityDelegate);
}
HRESULT MiniBrowser::setResourceLoadDelegate(IWebResourceLoadDelegate* resourceLoadDelegate)
{
m_resourceLoadDelegate = resourceLoadDelegate;
return m_webView->setResourceLoadDelegate(resourceLoadDelegate);
}
HRESULT MiniBrowser::setDownloadDelegate(IWebDownloadDelegatePtr downloadDelegate)
{
m_downloadDelegate = downloadDelegate;
return m_webView->setDownloadDelegate(downloadDelegate);
}
IWebFramePtr MiniBrowser::mainFrame()
{
IWebFramePtr framePtr;
m_webView->mainFrame(&framePtr.GetInterfacePtr());
return framePtr;
}
bool MiniBrowser::seedInitialDefaultPreferences()
{
IWebPreferencesPtr tmpPreferences;
if (FAILED(WebKitCreateInstance(CLSID_WebPreferences, 0, IID_IWebPreferences, reinterpret_cast<void**>(&tmpPreferences.GetInterfacePtr()))))
return false;
if (FAILED(tmpPreferences->standardPreferences(&m_standardPreferences.GetInterfacePtr())))
return false;
return true;
}
bool MiniBrowser::setToDefaultPreferences()
{
HRESULT hr = m_standardPreferences->QueryInterface(IID_IWebPreferencesPrivate, reinterpret_cast<void**>(&m_prefsPrivate.GetInterfacePtr()));
if (!SUCCEEDED(hr))
return false;
#if USE(CG)
m_standardPreferences->setAVFoundationEnabled(TRUE);
m_prefsPrivate->setAcceleratedCompositingEnabled(TRUE);
#endif
m_prefsPrivate->setFullScreenEnabled(TRUE);
m_prefsPrivate->setShowDebugBorders(FALSE);
m_prefsPrivate->setShowRepaintCounter(FALSE);
m_prefsPrivate->setShouldInvertColors(FALSE);
m_standardPreferences->setLoadsImagesAutomatically(TRUE);
m_prefsPrivate->setAuthorAndUserStylesEnabled(TRUE);
m_standardPreferences->setJavaScriptEnabled(TRUE);
m_prefsPrivate->setAllowUniversalAccessFromFileURLs(FALSE);
m_prefsPrivate->setAllowFileAccessFromFileURLs(TRUE);
m_prefsPrivate->setDeveloperExtrasEnabled(TRUE);
return true;
}
static void updateMenuItemForHistoryItem(HMENU menu, IWebHistoryItem& historyItem, int currentHistoryItem)
{
UINT menuID = IDM_HISTORY_LINK0 + currentHistoryItem;
MENUITEMINFO menuItemInfo = { 0 };
menuItemInfo.cbSize = sizeof(MENUITEMINFO);
menuItemInfo.fMask = MIIM_TYPE;
menuItemInfo.fType = MFT_STRING;
_bstr_t title;
historyItem.title(title.GetAddress());
menuItemInfo.dwTypeData = static_cast<LPWSTR>(title);
::SetMenuItemInfo(menu, menuID, FALSE, &menuItemInfo);
::EnableMenuItem(menu, menuID, MF_BYCOMMAND | MF_ENABLED);
}
void MiniBrowser::showLastVisitedSites(IWebView& webView)
{
HMENU menu = ::GetMenu(m_hMainWnd);
_com_ptr_t<_com_IIID<IWebBackForwardList, &__uuidof(IWebBackForwardList)>> backForwardList;
HRESULT hr = webView.backForwardList(&backForwardList.GetInterfacePtr());
if (FAILED(hr))
return;
int capacity = 0;
hr = backForwardList->capacity(&capacity);
if (FAILED(hr))
return;
int backCount = 0;
hr = backForwardList->backListCount(&backCount);
if (FAILED(hr))
return;
UINT backSetting = MF_BYCOMMAND | ((backCount) ? MF_ENABLED : MF_DISABLED);
::EnableMenuItem(menu, IDM_HISTORY_BACKWARD, backSetting);
int forwardCount = 0;
hr = backForwardList->forwardListCount(&forwardCount);
if (FAILED(hr))
return;
UINT forwardSetting = MF_BYCOMMAND | ((forwardCount) ? MF_ENABLED : MF_DISABLED);
::EnableMenuItem(menu, IDM_HISTORY_FORWARD, forwardSetting);
IWebHistoryItemPtr currentItem;
hr = backForwardList->currentItem(¤tItem.GetInterfacePtr());
if (FAILED(hr))
return;
hr = m_webHistory->addItems(1, ¤tItem.GetInterfacePtr());
if (FAILED(hr))
return;
_com_ptr_t<_com_IIID<IWebHistoryPrivate, &__uuidof(IWebHistoryPrivate)>> webHistory;
hr = m_webHistory->QueryInterface(IID_IWebHistoryPrivate, reinterpret_cast<void**>(&webHistory.GetInterfacePtr()));
if (FAILED(hr))
return;
int totalListCount = 0;
hr = webHistory->allItems(&totalListCount, 0);
if (FAILED(hr))
return;
m_historyItems.resize(totalListCount);
std::vector<IWebHistoryItem*> historyToLoad(totalListCount);
hr = webHistory->allItems(&totalListCount, historyToLoad.data());
if (FAILED(hr))
return;
size_t i = 0;
for (auto& cur : historyToLoad) {
m_historyItems[i].Attach(cur);
++i;
}
int allItemsOffset = 0;
if (totalListCount > maxHistorySize)
allItemsOffset = totalListCount - maxHistorySize;
int currentHistoryItem = 0;
for (int i = 0; i < m_historyItems.size() && (allItemsOffset + currentHistoryItem) < m_historyItems.size(); ++i) {
updateMenuItemForHistoryItem(menu, *(m_historyItems[allItemsOffset + currentHistoryItem]), currentHistoryItem);
++currentHistoryItem;
}
// Hide any history we aren't using yet.
for (int i = currentHistoryItem; i < maxHistorySize; ++i)
::EnableMenuItem(menu, IDM_HISTORY_LINK0 + i, MF_BYCOMMAND | MF_DISABLED);
}
void MiniBrowser::launchInspector()
{
if (!m_webViewPrivate)
return;
if (!SUCCEEDED(m_webViewPrivate->inspector(&m_inspector.GetInterfacePtr())))
return;
m_inspector->show();
}
void MiniBrowser::navigateForwardOrBackward(HWND hWnd, UINT menuID)
{
if (!m_webView)
return;
BOOL wentBackOrForward = FALSE;
if (IDM_HISTORY_FORWARD == menuID)
m_webView->goForward(&wentBackOrForward);
else
m_webView->goBack(&wentBackOrForward);
}
void MiniBrowser::navigateToHistory(HWND hWnd, UINT menuID)
{
if (!m_webView)
return;
int historyEntry = menuID - IDM_HISTORY_LINK0;
if (historyEntry > m_historyItems.size())
return;
IWebHistoryItemPtr desiredHistoryItem = m_historyItems[historyEntry];
if (!desiredHistoryItem)
return;
BOOL succeeded = FALSE;
m_webView->goToBackForwardItem(desiredHistoryItem, &succeeded);
_bstr_t frameURL;
desiredHistoryItem->URLString(frameURL.GetAddress());
::SendMessage(m_hURLBarWnd, (UINT)WM_SETTEXT, 0, (LPARAM)frameURL.GetBSTR());
}
bool MiniBrowser::goBack()
{
BOOL wentBack = FALSE;
m_webView->goBack(&wentBack);
return wentBack;
}
bool MiniBrowser::goForward()
{
BOOL wentForward = FALSE;
m_webView->goForward(&wentForward);
return wentForward;
}
HRESULT MiniBrowser::loadURL(const BSTR& passedURL)
{
_bstr_t urlBStr(passedURL);
if (!!urlBStr && (::PathFileExists(urlBStr) || ::PathIsUNC(urlBStr))) {
TCHAR fileURL[INTERNET_MAX_URL_LENGTH];
DWORD fileURLLength = sizeof(fileURL) / sizeof(fileURL[0]);
if (SUCCEEDED(::UrlCreateFromPath(urlBStr, fileURL, &fileURLLength, 0)))
urlBStr = fileURL;
}
IWebFramePtr frame;
HRESULT hr = m_webView->mainFrame(&frame.GetInterfacePtr());
if (FAILED(hr))
return hr;
if (!passedURL)
return frame->loadHTMLString(_bstr_t(defaultHTML).GetBSTR(), 0);
IWebMutableURLRequestPtr request;
hr = WebKitCreateInstance(CLSID_WebMutableURLRequest, 0, IID_IWebMutableURLRequest, (void**)&request);
if (FAILED(hr))
return hr;
hr = request->initWithURL(wcsstr(static_cast<wchar_t*>(urlBStr), L"://") ? urlBStr : _bstr_t(L"http://") + urlBStr, WebURLRequestUseProtocolCachePolicy, 60);
if (FAILED(hr))
return hr;
_bstr_t methodBStr(L"GET");
hr = request->setHTTPMethod(methodBStr);
if (FAILED(hr))
return hr;
hr = frame->loadRequest(request);
return hr;
}
void MiniBrowser::exitProgram()
{
::PostMessage(m_hMainWnd, static_cast<UINT>(WM_COMMAND), MAKELPARAM(IDM_EXIT, 0), 0);
}
void MiniBrowser::setUserAgent(UINT menuID)
{
if (!webView())
return;
_bstr_t customUserAgent;
switch (menuID) {
case IDM_UA_DEFAULT:
// Set to null user agent
break;
case IDM_UA_SAFARI_8_0:
customUserAgent = L"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25";
break;
case IDM_UA_SAFARI_IOS_8_IPHONE:
customUserAgent = L"Mozilla/5.0 (iPhone; CPU OS 8_1 like Mac OS X) AppleWebKit/601.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B403 Safari/600.1.4";
break;
case IDM_UA_SAFARI_IOS_8_IPAD:
customUserAgent = L"Mozilla/5.0 (iPad; CPU OS 8_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B403 Safari/600.1.4";
break;
case IDM_UA_IE_11:
customUserAgent = L"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko";
break;
case IDM_UA_CHROME_MAC:
customUserAgent = L"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31";
break;
case IDM_UA_CHROME_WIN:
customUserAgent = L"Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31";
break;
case IDM_UA_FIREFOX_MAC:
customUserAgent = L"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20100101 Firefox/20.0";
break;
case IDM_UA_FIREFOX_WIN:
customUserAgent = L"Mozilla/5.0 (Windows NT 6.2; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0";
break;
case IDM_UA_OTHER:
default:
ASSERT(0); // We should never hit this case
return;
}
setUserAgent(customUserAgent);
}
void MiniBrowser::setUserAgent(_bstr_t& customUserAgent)
{
webView()->setCustomUserAgent(customUserAgent.GetBSTR());
}
_bstr_t MiniBrowser::userAgent()
{
_bstr_t userAgent;
if (FAILED(webView()->customUserAgent(&userAgent.GetBSTR())))
return _bstr_t(L"- Unknown -: Call failed.");
return userAgent;
}
typedef _com_ptr_t<_com_IIID<IWebIBActions, &__uuidof(IWebIBActions)>> IWebIBActionsPtr;
void MiniBrowser::resetZoom()
{
IWebIBActionsPtr webActions;
if (FAILED(m_webView->QueryInterface(IID_IWebIBActions, reinterpret_cast<void**>(&webActions.GetInterfacePtr()))))
return;
webActions->resetPageZoom(nullptr);
}
void MiniBrowser::zoomIn()
{
IWebIBActionsPtr webActions;
if (FAILED(m_webView->QueryInterface(IID_IWebIBActions, reinterpret_cast<void**>(&webActions.GetInterfacePtr()))))
return;
webActions->zoomPageIn(nullptr);
}
void MiniBrowser::zoomOut()
{
IWebIBActionsPtr webActions;
if (FAILED(m_webView->QueryInterface(IID_IWebIBActions, reinterpret_cast<void**>(&webActions.GetInterfacePtr()))))
return;
webActions->zoomPageOut(nullptr);
}
typedef _com_ptr_t<_com_IIID<IWebViewPrivate3, &__uuidof(IWebViewPrivate3)>> IWebViewPrivate3Ptr;
void MiniBrowser::showLayerTree()
{
IWebViewPrivate3Ptr webViewPrivate;
if (FAILED(m_webView->QueryInterface(IID_IWebViewPrivate3, reinterpret_cast<void**>(&webViewPrivate.GetInterfacePtr()))))
return;
OutputDebugString(L"CURRENT TREE:\n");
_bstr_t layerTreeBstr;
if (FAILED(webViewPrivate->layerTreeAsString(layerTreeBstr.GetAddress())))
OutputDebugString(L" Failed to retrieve the layer tree.\n");
else
OutputDebugString(layerTreeBstr);
OutputDebugString(L"\n\n");
}
void MiniBrowser::generateFontForScaleFactor(float scaleFactor)
{
if (m_hURLBarFont)
::DeleteObject(m_hURLBarFont);
m_hURLBarFont = ::CreateFont(scaleFactor * 18, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
OUT_TT_ONLY_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY, FF_DONTCARE, L"Times New Roman");
}
void MiniBrowser::updateDeviceScaleFactor()
{
m_deviceScaleFactor = WebCore::deviceScaleFactorForWindow(m_hMainWnd);
generateFontForScaleFactor(m_deviceScaleFactor);
}
| [
"daewoong.jang@navercorp.com"
] | daewoong.jang@navercorp.com |
963ae986f552882b65cdc7cbb32564c4adcfc40f | 38932ef8f77756b633e9410bd78a4d75fa4fbed2 | /controller.cpp | 08fe4075bdfa59daae4df28788f19aede57144f4 | [
"MIT"
] | permissive | ERUIHNIYHBKBNF/qt-mini_maze | 0c95304c240bf25fa9bf34fd001ff2e9c44b4a3f | 0a1971ac3e49a6993e9858456dc0d8f7a196c14d | refs/heads/master | 2023-06-22T05:36:09.523423 | 2021-07-15T02:25:59 | 2021-07-15T02:25:59 | 388,089,452 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,336 | cpp | #include "controller.h"
Controller::Controller(MazeMap *map)
{
playerX = 1, playerY = 0;
//qDebug() << "qwq";
status = 0;
this -> map = map;
this -> maze = map -> getMap();
this -> maze[map -> getHeight() - 2][map -> getWidth() - 1] = 3;
}
bool Controller::isOver()
{
return status;
}
bool Controller::makeMove(int direction)
{
if (direction == 1)
{
if (playerX - 1 >= 0 && maze[playerX - 1][playerY] == 0)
{
playerX--;
return 1;
}
else
return 0;
}
else if (direction == 2)
{
if (maze[playerX][playerY + 1] == 3)
{
status = 1;
return 1;
}
if (playerY + 1 < map -> getWidth() && maze[playerX][playerY + 1] == 0)
{
playerY++;
return 1;
}
else
return 0;
}
else if (direction == 4)
{
if (playerX + 1 < map -> getHeight() && maze[playerX + 1][playerY] == 0)
{
playerX++;
return 1;
}
else
return 0;
}
else if (direction == 8)
{
if (playerY - 1 >= 0 && maze[playerX][playerY - 1] == 0)
{
playerY--;
return 1;
}
else
return 0;
}
return 0;
}
| [
"69080784+ERUIHNIYHBKBNF@users.noreply.github.com"
] | 69080784+ERUIHNIYHBKBNF@users.noreply.github.com |
b530de17e03409fe33d9db7cf670663ff6087265 | 4e46e885575946a3f573b527711e2346b42f12fd | /asterix_and_the_chariot_race/asterix_and_the_chariot_race.cpp | a5c4860a3aa5493645d364aafbba2d1481803a4e | [] | no_license | simoneriedi/ETH-AlgoLab2020 | be62b15c723496be7223ba21fcfff1d860e85e96 | bc19f4b94f8d4c1e8809fe4db5741d676620db1e | refs/heads/main | 2023-07-24T02:00:55.887331 | 2021-09-10T10:45:57 | 2021-09-10T10:45:57 | 405,042,873 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,710 | cpp | #include<iostream>
#include<vector>
#include<limits.h>
using namespace std;
vector<vector<int>> edges;
vector<int> cost;
vector<vector<int>> memo;
// Case 0: Current node is safe
// Case 1: Current node is not safe but father is safe, because another node was forced to save it
// Case 2: Father is not safe and the current node is forced to save it
int dp(int curr, int curr_case) {
if (memo[curr][curr_case] != -1) return memo[curr][curr_case];
int out_going = edges[curr].size();
if (!out_going) return (curr_case==0) ? 0 : cost[curr];
// Should always consider the case where the current node is repaired
int res = cost[curr];
for (int i=0; i<out_going; i++) res += dp(edges[curr][i], 0);
if (curr_case == 1) {
int min_diff = INT_MAX;
int index = -1;
for (int i=0; i<out_going; i++) {
int diff = dp(edges[curr][i], 2) - dp(edges[curr][i], 1);
if (diff < min_diff) { min_diff = diff; index = i;}
}
int res1 = 0;
for (int i=0; i<out_going; i++) res1 += dp(edges[curr][i], 1 + (i==index));
res = min(res1, res);
}
if (curr_case == 0) {
int res1 = 0;
for (int i=0; i<out_going; i++) res1 += dp(edges[curr][i], 1);
res = min(res1, res);
}
memo[curr][curr_case] = res;
return res;
}
void testcase() {
int n; cin >> n;
edges = vector<vector<int>>(n, vector<int>());
cost = vector<int>(n);
memo = vector<vector<int>>(n, vector<int>(3, -1));
for (int i=0; i<n-1; i++) {
int from, to; cin >> from >> to;
edges[from].push_back(to);
}
for (int i=0; i<n; i++) cin >> cost[i];
cout << dp(0, 1) << '\n';
}
int main() {
ios_base::sync_with_stdio(false);
int t; cin >> t;
for (int i=0; i<t; i++) testcase();
} | [
"riedisi@student.ethz.ch"
] | riedisi@student.ethz.ch |
c863b7dc8b75f7ad6e9073648a2d3c41fe1ce47a | 0afa23db7c7f1287364885bbb4f80000b3da96c0 | /Main/packages/CefSharp.Common.69.0.0/src/CefSharp.Core/AbstractCefSettings.h | 51c0502dc41ff52f71f6dc11ca19bdb146550759 | [
"MIT"
] | permissive | ReckoningHero/.NET--Private-Browser | 6a31715e0076d63c6f08bad8ec194a3b61fe86be | 569ebe4c60b3a64d2c550fbcf6556e7ae70510d0 | refs/heads/master | 2022-03-08T02:07:18.064125 | 2020-01-11T17:53:14 | 2020-01-11T17:53:14 | 145,083,785 | 3 | 0 | MIT | 2022-02-26T01:22:03 | 2018-08-17T06:55:13 | HTML | UTF-8 | C++ | false | false | 20,455 | h | // Copyright © 2010 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
using namespace System::Collections::Generic;
namespace CefSharp
{
/// <summary>
/// Initialization settings. Many of these and other settings can also configured
/// using command-line switches.
/// </summary>
public ref class AbstractCefSettings abstract
{
private:
List<CefExtension^>^ _cefExtensions;
IDictionary<String^, String^>^ _cefCommandLineArgs;
internal:
::CefSettings* _cefSettings;
List<CefCustomScheme^>^ _cefCustomSchemes;
public:
/// <summary>
/// Default Constructor
/// </summary>
AbstractCefSettings() : _cefSettings(new ::CefSettings())
{
_cefSettings->multi_threaded_message_loop = true;
_cefSettings->no_sandbox = true;
BrowserSubprocessPath = "CefSharp.BrowserSubprocess.exe";
_cefCustomSchemes = gcnew List<CefCustomScheme^>();
_cefExtensions = gcnew List<CefExtension^>();
_cefCommandLineArgs = gcnew Dictionary<String^, String^>();
//Automatically discovered and load a system-wide installation of Pepper Flash.
_cefCommandLineArgs->Add("enable-system-flash", "1");
}
!AbstractCefSettings()
{
delete _cefSettings;
}
~AbstractCefSettings()
{
this->!AbstractCefSettings();
}
/// <summary>
/// Add Customs schemes to this collection
/// </summary>
property IEnumerable<CefCustomScheme^>^ CefCustomSchemes
{
IEnumerable<CefCustomScheme^>^ get() { return _cefCustomSchemes; }
}
/// <summary>
/// Add CefExtensions to be registered
/// </summary>
virtual property IEnumerable<CefExtension^>^ Extensions
{
IEnumerable<CefExtension^>^ get() { return _cefExtensions; }
}
/// <summary>
/// Add custom command line argumens to this collection, they will be
/// added in OnBeforeCommandLineProcessing.
// The CefSettings.command_line_args_disabled value can be used to start with an empty command-line object. Any values specified in CefSettings that equate to command-line arguments will be set before this method is called.
/// </summary>
virtual property IDictionary<String^, String^>^ CefCommandLineArgs
{
IDictionary<String^, String^>^ get() { return _cefCommandLineArgs; }
}
/// <summary>
/// Set to true to disable configuration of browser process features using
/// standard CEF and Chromium command-line arguments. Configuration can still
/// be specified using CEF data structures or by adding to CefCommandLineArgs
/// </summary>
property bool CommandLineArgsDisabled
{
bool get() { return _cefSettings->command_line_args_disabled == 1; }
void set(bool value) { _cefSettings->command_line_args_disabled = value; }
}
/// <summary>
/// Set to true to control browser process main (UI) thread message pump
/// scheduling via the IBrowserProcessHandler.OnScheduleMessagePumpWork
/// callback. This option is recommended for use in combination with the
/// Cef.DoMessageLoopWork() function in cases where the CEF message loop must be
/// integrated into an existing application message loop (see additional
/// comments and warnings on Cef.DoMessageLoopWork). Enabling this option is not
/// recommended for most users; leave this option disabled and use either
/// MultiThreadedMessageLoop (the default) if possible.
/// </summary>
property bool ExternalMessagePump
{
bool get() { return _cefSettings->external_message_pump == 1; }
void set(bool value) { _cefSettings->external_message_pump = value; }
}
/// <summary>
//// Set to true to have the browser process message loop run in a separate
/// thread. If false than the CefDoMessageLoopWork() function must be
/// called from your application message loop. This option is only supported on
/// Windows. The default value is true
/// </summary>
property bool MultiThreadedMessageLoop
{
bool get() { return _cefSettings->multi_threaded_message_loop == 1; }
void set(bool value) { _cefSettings->multi_threaded_message_loop = value; }
}
/// <summary>
/// The path to a separate executable that will be launched for sub-processes.
/// By default the browser process executable is used. See the comments on
/// Cef.ExecuteProcess() for details. Also configurable using the
/// "browser-subprocess-path" command-line switch. Default is CefSharp.BrowserSubprocess.exe
/// </summary>
property String^ BrowserSubprocessPath
{
String^ get() { return StringUtils::ToClr(_cefSettings->browser_subprocess_path); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->browser_subprocess_path, value); }
}
/// <summary>
/// The location where cache data will be stored on disk. If empty then
/// browsers will be created in "incognito mode" where in-memory caches are
/// used for storage and no data is persisted to disk. HTML5 databases such as
/// localStorage will only persist across sessions if a cache path is
/// specified. Can be overridden for individual CefRequestContext instances via
/// the RequestContextSettings.CachePath value.
/// </summary>
property String^ CachePath
{
String^ get() { return StringUtils::ToClr(_cefSettings->cache_path); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->cache_path, value); }
}
/// <summary>
/// The location where user data such as spell checking dictionary files will
/// be stored on disk. If empty then the default platform-specific user data
/// directory will be used ("~/.cef_user_data" directory on Linux,
/// "~/Library/Application Support/CEF/User Data" directory on Mac OS X,
/// "Local Settings\Application Data\CEF\User Data" directory under the user
/// profile directory on Windows).
/// </summary>
property String^ UserDataPath
{
String^ get() { return StringUtils::ToClr(_cefSettings->user_data_path); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->user_data_path, value); }
}
/// <summary>
/// Set to true in order to completely ignore SSL certificate errors.
/// This is NOT recommended.
/// </summary>
property bool IgnoreCertificateErrors
{
bool get() { return _cefSettings->ignore_certificate_errors == 1; }
void set(bool value) { _cefSettings->ignore_certificate_errors = value; }
}
/// <summary>
/// The locale string that will be passed to WebKit. If empty the default
/// locale of "en-US" will be used. Also configurable using the "lang"
/// command-line switch.
/// </summary>
property String^ Locale
{
String^ get() { return StringUtils::ToClr(_cefSettings->locale); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->locale, value); }
}
/// <summary>
/// The fully qualified path for the locales directory. If this value is empty
/// the locales directory must be located in the module directory.
/// Also configurable using the "locales-dir-path" command-line switch.
/// </summary>
property String^ LocalesDirPath
{
String^ get() { return StringUtils::ToClr(_cefSettings->locales_dir_path); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->locales_dir_path, value); }
}
/// <summary>
/// The fully qualified path for the resources directory. If this value is
/// empty the cef.pak and/or devtools_resources.pak files must be located in
/// the module directory. Also configurable using the "resources-dir-path" command-line
/// switch.
/// </summary>
property String^ ResourcesDirPath
{
String^ get() { return StringUtils::ToClr(_cefSettings->resources_dir_path); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->resources_dir_path, value); }
}
/// <summary>
/// The directory and file name to use for the debug log. If empty a default
/// log file name and location will be used. On Windows and Linux a "debug.log"
/// file will be written in the main executable directory.
/// Also configurable using the"log-file" command-line switch.
/// </summary>
property String^ LogFile
{
String^ get() { return StringUtils::ToClr(_cefSettings->log_file); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->log_file, value); }
}
/// <summary>
/// The log severity. Only messages of this severity level or higher will be
/// logged. Also configurable using the "log-severity" command-line switch with
/// a value of "verbose", "info", "warning", "error", "error-report" or
/// "disable".
/// </summary>
property CefSharp::LogSeverity LogSeverity
{
CefSharp::LogSeverity get() { return (CefSharp::LogSeverity)_cefSettings->log_severity; }
void set(CefSharp::LogSeverity value) { _cefSettings->log_severity = (cef_log_severity_t)value; }
}
/// <summary>
/// Custom flags that will be used when initializing the V8 JavaScript engine.
/// The consequences of using custom flags may not be well tested. Also
/// configurable using the "js-flags" command-line switch.
/// </summary>
property String^ JavascriptFlags
{
String^ get() { return StringUtils::ToClr(_cefSettings->javascript_flags); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->javascript_flags, value); }
}
/// <summary>
/// Set to true to disable loading of pack files for resources and locales.
/// A resource bundle handler must be provided for the browser and render
/// processes via CefApp::GetResourceBundleHandler() if loading of pack files
/// is disabled. Also configurable using the "disable-pack-loading" command-
/// line switch.
/// </summary>
property bool PackLoadingDisabled
{
bool get() { return _cefSettings->pack_loading_disabled == 1; }
void set(bool value) { _cefSettings->pack_loading_disabled = value; }
}
/// <summary>
/// Value that will be inserted as the product portion of the default
/// User-Agent string. If empty the Chromium product version will be used. If
/// |userAgent| is specified this value will be ignored. Also configurable
/// using the "product-version" command-line switch.
/// </summary>
property String^ ProductVersion
{
String^ get() { return StringUtils::ToClr(_cefSettings->product_version); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->product_version, value); }
}
/// <summary>
/// Set to a value between 1024 and 65535 to enable remote debugging on the
/// specified port. For example, if 8080 is specified the remote debugging URL
/// will be http://localhost:8080. CEF can be remotely debugged from any CEF or
/// Chrome browser window. Also configurable using the "remote-debugging-port"
/// command-line switch.
/// </summary>
property int RemoteDebuggingPort
{
int get() { return _cefSettings->remote_debugging_port; }
void set(int value) { _cefSettings->remote_debugging_port = value; }
}
/// <summary>
/// The number of stack trace frames to capture for uncaught exceptions.
/// Specify a positive value to enable the CefRenderProcessHandler::
/// OnUncaughtException() callback. Specify 0 (default value) and
/// OnUncaughtException() will not be called. Also configurable using the
/// "uncaught-exception-stack-size" command-line switch.
/// </summary>
property int UncaughtExceptionStackSize
{
int get() { return _cefSettings->uncaught_exception_stack_size; }
void set(int value) { _cefSettings->uncaught_exception_stack_size = value; }
}
/// <summary>
/// Value that will be returned as the User-Agent HTTP header. If empty the
/// default User-Agent string will be used. Also configurable using the
/// "user-agent" command-line switch.
/// </summary>
property String^ UserAgent
{
String^ get() { return StringUtils::ToClr(_cefSettings->user_agent); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->user_agent, value); }
}
/// <summary>
/// Set to true (1) to enable windowless (off-screen) rendering support. Do not
/// enable this value if the application does not use windowless rendering as
/// it may reduce rendering performance on some systems.
/// </summary>
property bool WindowlessRenderingEnabled
{
bool get() { return _cefSettings->windowless_rendering_enabled == 1; }
void set(bool value) { _cefSettings->windowless_rendering_enabled = value; }
}
/// <summary>
/// To persist session cookies (cookies without an expiry date or validity
/// interval) by default when using the global cookie manager set this value to
/// true. Session cookies are generally intended to be transient and most
/// Web browsers do not persist them. A CachePath value must also be
/// specified to enable this feature. Also configurable using the
/// "persist-session-cookies" command-line switch. Can be overridden for
/// individual RequestContext instances via the
/// RequestContextSettings.PersistSessionCookies value.
/// </summary>
property bool PersistSessionCookies
{
bool get() { return _cefSettings->persist_session_cookies == 1; }
void set(bool value) { _cefSettings->persist_session_cookies = value; }
}
/// <summary>
/// To persist user preferences as a JSON file in the cache path directory set
/// this value to true. A CachePath value must also be specified
/// to enable this feature. Also configurable using the
/// "persist-user-preferences" command-line switch. Can be overridden for
/// individual RequestContext instances via the
/// RequestContextSettings.PersistUserPreferences value.
/// </summary>
property bool PersistUserPreferences
{
bool get() { return _cefSettings->persist_user_preferences == 1; }
void set(bool value) { _cefSettings->persist_user_preferences = value; }
}
/// <summary>
/// Comma delimited ordered list of language codes without any whitespace that
/// will be used in the "Accept-Language" HTTP header. May be set globally
/// using the CefSettings.AcceptLanguageList value. If both values are
/// empty then "en-US,en" will be used.
/// </summary>
property String^ AcceptLanguageList
{
String^ get() { return StringUtils::ToClr(_cefSettings->accept_language_list); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->accept_language_list, value); }
}
/// <summary>
/// Background color used for the browser before a document is loaded and when no document color is
/// specified. The alpha component must be either fully opaque (0xFF) or fully transparent (0x00).
/// If the alpha component is fully opaque then the RGB components will be used as the background
/// color. If the alpha component is fully transparent for a WinForms browser then the default value
/// of opaque white be used. If the alpha component is fully transparent for a windowless
/// (WPF/OffScreen) browser then transparent painting will be enabled.
/// </summary>
virtual property uint32 BackgroundColor
{
uint32 get() { return _cefSettings->background_color; }
void set(uint32 value) { _cefSettings->background_color = value; }
}
/// <summary>
/// Registers a custom scheme using the provided settings.
/// </summary>
/// <param name="cefCustomScheme">The CefCustomScheme which provides the details about the scheme.</param>
void RegisterScheme(CefCustomScheme^ cefCustomScheme)
{
//Scheme names are converted to lowercase
cefCustomScheme->SchemeName = cefCustomScheme->SchemeName->ToLower();
_cefCustomSchemes->Add(cefCustomScheme);
}
/// <summary>
/// Registers an extension with the provided settings.
/// </summary>
/// <param name="extension">The CefExtension that contains the extension code.</param>
void RegisterExtension(CefExtension^ extension)
{
if (_cefExtensions->Contains(extension))
{
throw gcnew ArgumentException("An extension with the same name is already registered.", "extension");
}
_cefExtensions->Add(extension);
}
/// <summary>
/// Set command line argument to disable GPU Acceleration, this will disable WebGL.
/// </summary>
void DisableGpuAcceleration()
{
if (!_cefCommandLineArgs->ContainsKey("disable-gpu"))
{
_cefCommandLineArgs->Add("disable-gpu", "1");
}
}
/// <summary>
/// Set command line arguments for best OSR (Offscreen and WPF) Rendering performance
/// This will disable WebGL, look at the source to determine which flags best suite
/// your requirements.
/// </summary>
void SetOffScreenRenderingBestPerformanceArgs()
{
// Use software rendering and compositing (disable GPU) for increased FPS
// and decreased CPU usage. This will also disable WebGL so remove these
// switches if you need that capability.
// See https://bitbucket.org/chromiumembedded/cef/issues/1257 for details.
if (!_cefCommandLineArgs->ContainsKey("disable-gpu"))
{
_cefCommandLineArgs->Add("disable-gpu", "1");
}
if (!_cefCommandLineArgs->ContainsKey("disable-gpu-compositing"))
{
_cefCommandLineArgs->Add("disable-gpu-compositing", "1");
}
// Synchronize the frame rate between all processes. This results in
// decreased CPU usage by avoiding the generation of extra frames that
// would otherwise be discarded. The frame rate can be set at browser
// creation time via CefBrowserSettings.windowless_frame_rate or changed
// dynamically using CefBrowserHost::SetWindowlessFrameRate. In cefclient
// it can be set via the command-line using `--off-screen-frame-rate=XX`.
// See https://bitbucket.org/chromiumembedded/cef/issues/1368 for details.
if (!_cefCommandLineArgs->ContainsKey("enable-begin-frame-scheduling"))
{
_cefCommandLineArgs->Add("enable-begin-frame-scheduling", "1");
}
}
};
}
| [
"twinb0rn@github.com"
] | twinb0rn@github.com |
03b92edbe80a08d5d51a24406282dfaf1b639f43 | b0ad60a80e8e37be50ce0108c6528c3ae68eb50c | /boost_thread/src/ofApp.cpp | 371f297ecb09283b03d25ab85df6e51a25d35df2 | [] | no_license | toolbits/of_plus_boost_2014seminar | 4b576ec74107a2a0871d9e7434a2bafe091aa45b | 3c94dee9f52c63b26ca4ddecac7dbc45f653abdb | refs/heads/master | 2021-01-18T14:38:15.070029 | 2014-10-22T11:22:31 | 2014-10-22T11:22:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,396 | cpp | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(void)
{
// 新しいスレッドを作成して実行
try {
_thread = boost::thread(boost::bind(&ofApp::thread, this));
}
catch (std::exception& e) {
std::cout << "an exception occurred : " << e.what() << std::endl;
}
return;
}
void ofApp::exit(void)
{
// スレッドを中断し、終了するまで待機
_thread.interrupt();
try {
_thread.join();
}
catch (...) {
}
return;
}
void ofApp::thread(void)
{
int count;
std::cout << "thread start" << std::endl;
count = 0;
while (!boost::this_thread::interruption_requested()) {
// カウント値を表示
std::cout << count++ << std::endl;
// スレッドを1秒間スリープ
// スリープ中に外部スレッドから中断されたらループを抜ける
try {
boost::this_thread::sleep(boost::posix_time::milliseconds(1000));
}
catch (boost::thread_interrupted& e) {
break;
}
}
std::cout << "thread stop" << std::endl;
return;
}
//--------------------------------------------------------------
void ofApp::update(){
}
//--------------------------------------------------------------
void ofApp::draw(){
}
//--------------------------------------------------------------
void ofApp::keyPressed(int key){
}
//--------------------------------------------------------------
void ofApp::keyReleased(int key){
}
//--------------------------------------------------------------
void ofApp::mouseMoved(int x, int y){
}
//--------------------------------------------------------------
void ofApp::mouseDragged(int x, int y, int button){
}
//--------------------------------------------------------------
void ofApp::mousePressed(int x, int y, int button){
}
//--------------------------------------------------------------
void ofApp::mouseReleased(int x, int y, int button){
}
//--------------------------------------------------------------
void ofApp::windowResized(int w, int h){
}
//--------------------------------------------------------------
void ofApp::gotMessage(ofMessage msg){
}
//--------------------------------------------------------------
void ofApp::dragEvent(ofDragInfo dragInfo){
} | [
"zap00365@nifty.com"
] | zap00365@nifty.com |
4fcbf3727ba1f6598251213e379f077789e31695 | aab60f423c04515fae6bf95228fd91746de7e840 | /src/myaction.cpp | 7b269819c99891754195a8df9e3269dbbde1d750 | [] | no_license | Lynsher/CS585 | aa3aa0898f4a139184e4b87ce2cb877dce7cb6d9 | de1cd683c465309f0ef59c80f63cb5bc61746c9d | refs/heads/master | 2020-04-06T06:55:00.055327 | 2015-09-07T18:25:50 | 2015-09-07T18:25:50 | 42,049,774 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38 | cpp | // myaction.cpp
#include "myaction.h"
| [
"a.lynsher@outlook.com"
] | a.lynsher@outlook.com |
25f820705659ac82744392f64ebad7e9d4333a1a | 33d359ef8935fe1e89c2b2f54cd8b8fc4127c706 | /Code/PanelShortcuts.h | e6f0e0aa487a7c4d332a496db1a844e535d50cdb | [
"MIT"
] | permissive | YessicaSD/CITM_3_GameEngine | 8f8eaf551be96dd60f4ac1dc4cc1d3f2329e6ed3 | 57a85b89a72723ce555a4eec3830e6bf00499de9 | refs/heads/master | 2020-07-28T00:38:58.135227 | 2020-06-21T13:41:46 | 2020-06-21T13:41:46 | 209,255,586 | 1 | 0 | MIT | 2020-03-21T23:43:32 | 2019-09-18T08:17:55 | C++ | UTF-8 | C++ | false | false | 674 | h | #ifndef __PANEL_SHORTCUTS_H__
#define __PANEL_SHORTCUTS_H__
#include "Panel.h"
#include "Globals.h"
#define KEYS_BUFFER_SIZE 128u
class PanelShortcuts : public Panel
{
public:
PanelShortcuts(std::string name, bool active = false, std::vector<SDL_Scancode> shortcuts = {});
void Draw() override;
void ModifyShortcut(SDL_Scancode key);
private:
void ShowModifyShortcutPanel();
const char * GetKeysCharPtr(std::vector<SDL_Scancode> keys, char * buffer, const uint buffer_size);
private:
//Modify shortcut
bool modifying_shortcut = false;
Shortcut * shortcut_to_modify = nullptr;
std::vector<SDL_Scancode> new_key_combination;
friend class ModuleGui;
};
#endif | [
"jaume.montagut.i.guix@gmail.com"
] | jaume.montagut.i.guix@gmail.com |
847e3b34f3c7efa795261e8b775869bc559445c6 | 7ed641452ef59f901984af16832e3be69972e37f | /include/hermes/Support/JenkinsHash.h | 293379298672e50447b0c94b0e1bc79d650e033c | [
"MIT"
] | permissive | mrousavy/hermes | 6e8e80b7f8fff30caf408c6b3b0a03251fd34d35 | 6e5868763b08eb80f4164a926abb92fa5c71117f | refs/heads/master | 2023-08-07T20:35:27.370384 | 2021-09-02T20:09:21 | 2021-09-02T20:10:36 | 355,471,392 | 2 | 0 | MIT | 2021-04-07T08:54:03 | 2021-04-07T08:36:20 | null | UTF-8 | C++ | false | false | 1,167 | h | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifndef HERMES_SUPPORT_JENKINSHASH_H
#define HERMES_SUPPORT_JENKINSHASH_H
#include <cstdint>
namespace hermes {
using JenkinsHash = uint32_t;
namespace jenkins_details {
template <typename CharT>
constexpr JenkinsHash jenkinsAdd(JenkinsHash hash, CharT c) {
return hash + static_cast<JenkinsHash>(c);
}
constexpr JenkinsHash jenkinsMix1(JenkinsHash hash) {
return hash + (hash << 10);
}
constexpr JenkinsHash jenkinsMix2(JenkinsHash hash) {
return hash ^ (hash >> 6);
}
} // namespace jenkins_details
/// Incorporates the character \p c to the given \p hash, using the classic
/// Jenkins algorithm.
/// \return the new hash value.
template <typename CharT>
constexpr JenkinsHash updateJenkinsHash(JenkinsHash hash, CharT c) {
using namespace jenkins_details;
static_assert(
sizeof(CharT) <= sizeof(char16_t),
"Jenkins hash algorithm only hashes characters");
return jenkinsMix2(jenkinsMix1(jenkinsAdd(hash, c)));
}
} // namespace hermes
#endif
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4da03d578187726fa8d3b8620a79d859dab6081a | 81f4dbea538e610e2d061a690ad797555119ec65 | /src/.svn/pristine/4d/4da03d578187726fa8d3b8620a79d859dab6081a.svn-base | 58d1609576e381ea9b37756fe0bd90768bebd7c5 | [] | no_license | TakashiSasaki/MozcForLowVision | 87f4671e2d1f2d7c554d0081201a9069fe40b62f | b4b3a7431a7d5e0e004a604962970699321c1151 | refs/heads/master | 2020-05-30T13:09:42.429636 | 2013-12-18T08:14:15 | 2013-12-18T08:14:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,126 | // Copyright 2010-2013, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <iostream>
#include "base/base.h"
#include "base/logging.h"
#include "client/client.h"
DEFINE_bool(shutdown, false,
"shutdown server if mozc_server is running");
// simple command line tool to launch mozc server
int main(int argc, char **argv) {
InitGoogle(argv[0], &argc, &argv, false);
mozc::client::Client client;
if (FLAGS_shutdown) {
client.Shutdown();
}
if (client.EnsureConnection()) {
LOG(INFO) << "mozc_server starts successfully";
} else {
LOG(ERROR) << "failed to launch mozc_server";
}
return 0;
}
| [
"watanabe-3@ONO-PC.ICTDESIGN"
] | watanabe-3@ONO-PC.ICTDESIGN | |
508a20a92ae9f6e383b8d8ed0b3e40bedbbbea8d | de4f73c51b1fb5af0bddf3cd35b1a7aafafe12e1 | /Cobertura.cpp | 3567433bfc6d131fa9f719ff32a4a0d5a5204aa3 | [] | no_license | hgdfvo/2021-1-exercicio-revisao-refatoracao | 35c606dd27083f7ddcb993a5eb7b94d6ac49d7dc | 2a0b4a36a06d619b3935f02f0d70e8f51905ad96 | refs/heads/main | 2023-07-07T11:22:33.462541 | 2021-08-17T18:51:38 | 2021-08-17T18:51:38 | 397,030,368 | 0 | 0 | null | 2021-08-17T00:38:06 | 2021-08-17T00:38:05 | null | UTF-8 | C++ | false | false | 840 | cpp | #include "Cobertura.hpp"
double Cobertura::valor(){
double v = AREA * VALOR_m2;
return v;
}
double Cobertura::comissao(){
double c = AREA * VALOR_m2;
return c * COMISSAO_COBERTURA_TAXA;
}
void Cobertura::print() {
std::cout << "[Cobertura]" << endl;
Imovel::print();
std::cout << "Area: " << AREA << endl
<< " Quartos: " << Q << endl
<< " Banheiros: " << B << endl
<< " Vagas: " << V << endl
<< "Taxa de Comissão: " << (int)COMISSAO_COBERTURA_PERCENT << "%" << endl
<< "Valor Comissão: R$ " << fixed << setprecision(2) << C << endl
<< "Valor de Venda: R$ " << fixed << setprecision(2) << VALOR << endl;
}
Cobertura::Cobertura(string corret,double a, int q, int b, int v, double valorm2,Cliente vended) : Imovel(corret,a,q,b,v,valorm2,vended){
C=this->comissao();
VALOR = this->valor()+this->comissao();
} | [
"89052017+hgdfvo@users.noreply.github.com"
] | 89052017+hgdfvo@users.noreply.github.com |
5e914ace56359d316f5cc89242f179c65b413764 | b37651a0663a283d36b1efc000efe1116f644986 | /Strassen_version_1_counting_time.cpp | 4603c9f55cf2699278a5258679461d52e09fa4a0 | [] | no_license | 13439797368/Cpp-program-1 | 85e1b035ff45aa28f8ca4787069d3fe39f5593d4 | fc0f99dd864661a2e90aa2a792af7a1828a75dac | refs/heads/main | 2023-01-15T02:47:43.204460 | 2020-11-16T07:26:55 | 2020-11-16T07:26:55 | 311,191,669 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 11,969 | cpp | #include<iostream>
#include<algorithm>
#include<chrono>
using namespace std;
struct Matrix {
float* matrix;
int column;
int row;
};
Matrix* Build_Ones(Matrix* A) {
//128 450ms
//256 3071ms
//512 ÄÚ´æ²»¹»
A->column = 512;
A->row = 512;
A->matrix = new float[A->column * A->row];
for (int i = 0; i < A->column * A->row; i++) {
A->matrix[i] = 1;
}
cout << "build complete" << endl;
return A;
}
Matrix* Matrix_Multiplication(Matrix* a, Matrix* b) {
if (a->column != b->row) {
cout << "Their column and row do not match." << endl;
return NULL;
}
Matrix* temp = new Matrix;
temp->column = b->column;
temp->row = a->row;
temp->matrix = new float[temp->column * temp->row];
//cout << sizeof(temp->matrix) << endl;
//cout << 4 * sizeof(float) << endl;
memset(temp->matrix, 0, temp->column * temp->row * sizeof(temp->matrix));
//Print_Matrix(temp);
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
int flag = 0;
while (flag < a->column) {
temp->matrix[i * temp->column + j] += a->matrix[i * a->column + flag] * b->matrix[j + flag * b->column];
flag++;
}
}
}
return temp;
}
Matrix* Build_Matrix(int row, int col) {
Matrix* temp = new Matrix;
temp->column = col;
temp->row = row;
temp->matrix = new float[col * row];
for (int i = 0; i < row; i++) {
for (int j = 0; j < col; j++) {
cin >> temp->matrix[i * col + j];
}
}
return temp;
}
//this function can pick out part of a matrix
Matrix* Build_Matrix_s(Matrix* a, int row_begin, int row_end, int column_begin, int column_end) {
Matrix* temp = new Matrix;
temp->column = column_end - column_begin + 1;
temp->row = row_end - row_begin + 1;
temp->matrix = new float[temp->column * temp->row];
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] = a->matrix[(i + row_begin - 1) * a->column + j + column_begin - 1];
}
}
return temp;
}
//this is no use in this code
float Dot_product(int len, float* vector_1, float* vector_2) {
float sum = 0;
for (int i = 0; i < len; i++) {
sum += vector_1[i] * vector_2[i];
}
return sum;
}
//this function can make C11,C12,C21,C22 into C
Matrix* Rebuild_BlockMatrix(Matrix* c11, Matrix* c12, Matrix* c21, Matrix* c22) {
Matrix* temp = new Matrix;
temp->column = c11->column + c12->column;
temp->row = c12->row + c21->row;
temp->matrix = new float[temp->column * temp->row];
for (int i = 0; i < c11->row; i++) {
for (int j = 0; j < c11->column; j++) {
temp->matrix[i * temp->column + j] = c11->matrix[i * c11->column + j];
}
for (int j = 0; j < c12->column; j++) {
temp->matrix[i * temp->column + j + c11->column] = c12->matrix[i * c12->column + j];
}
}
for (int i = 0; i < c21->row; i++) {
for (int j = 0; j < c21->column; j++) {
temp->matrix[(i + c11->row) * temp->column + j] = c21->matrix[i * c21->column + j];
}
for (int j = 0; j < c22->column; j++) {
temp->matrix[(i + c11->row) * temp->column + j + c21->column] = c22->matrix[i * c22->column + j];
}
}
return temp;
}
void Print_Matrix(Matrix* a) {
for (int i = 0; i < a->row; i++) {
for (int j = 0; j < a->column; j++) {
cout << a->matrix[i * a->column + j] << " ";
}
cout << endl;
}
return;
}
//----------------------------those plus or minus function below is designed especially for strassen-----------------------
//C11 = M5 + M4 - M2 + M6
Matrix* Matrix_Plus_s_for_C11(Matrix* a, Matrix* b, Matrix* c, Matrix* d) {
if (a->row != b->row || a->column != b->column) {
cout << "These two matrix can not add together" << endl;
return NULL;
}
Matrix* temp = new Matrix;
temp->column = a->column;
temp->row = a->row;
temp->matrix = new float[temp->column * temp->row];
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] = a->matrix[i * a->column + j]+ b->matrix[i * b->column + j];
}
}
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] += d->matrix[i * a->column + j];
}
}
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] -= c->matrix[i * a->column + j];
}
}
return temp;
}
//C12 = M1 + M2
//this is normal plus
Matrix* Matrix_Plus_s_forC12C21(Matrix* a, Matrix* b) {
if (a->row != b->row || a->column != b->column) {
cout << "These two matrix can not add together" << endl;
return NULL;
}
Matrix* temp = new Matrix;
temp->column = a->column;
temp->row = a->row;
temp->matrix = new float[temp->column * temp->row];
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] = a->matrix[i * a->column + j] + b->matrix[i * b->column + j];
}
}
return temp;
}
//C22 = M5 + M1 - M3 - M7
Matrix* Matrix_Plus_s_for_C22(Matrix* a, Matrix* b, Matrix* c, Matrix* d) {
if (a->row != b->row || a->column != b->column) {
cout << "These two matrix can not add together" << endl;
return NULL;
}
Matrix* temp = new Matrix;
temp->column = a->column;
temp->row = a->row;
temp->matrix = new float[temp->column * temp->row];
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] = a->matrix[i * a->column + j] + b->matrix[i * b->column + j];
}
}
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] -= d->matrix[i * a->column + j];
}
}
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] -= c->matrix[i * a->column + j];
}
}
return temp;
}
//this is normal minus, just for pattern
Matrix* Matrix_Minus(Matrix* a, Matrix* b) {
if (a->row != b->row || a->column != b->column) {
cout << "These two matrix can not add together" << endl;
return NULL;
}
Matrix* temp = new Matrix;
temp->column = a->column;
temp->row = a->row;
temp->matrix = new float[temp->column * temp->row];
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] = a->matrix[i * a->column + j] - b->matrix[i * b->column + j];
}
}
return temp;
}
//realize matrix plus whitch can add part of two matrix to save the space and time creating new submatrix
//folding my code to avoid too long to read
Matrix* Matrix_Plus_s(Matrix* a, int a_row_begin, int a_row_end, int a_column_begin, \
int a_column_end, Matrix* b, int b_row_begin, int b_row_end, int b_column_begin, int b_column_end) {
if ((a_column_end - a_column_begin + 1) != (b_column_end - b_column_begin + 1) || \
(a_row_end - a_row_begin + 1) != (b_row_end - b_row_begin + 1)) {
cout << "These two matrix can not add together" << endl;
return NULL;
}
Matrix* temp = new Matrix;
temp->column = a_column_end - a_column_begin + 1;
temp->row = a_row_end - a_row_begin + 1;
temp->matrix = new float[temp->column * temp->row];
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] = a->matrix[(i + a_row_begin - 1) * a->column + j + a_column_begin - 1] \
+ b->matrix[(i + b_row_begin - 1) * b->column + j + b_column_begin - 1];
}
}
return temp;
}
Matrix* Matrix_Minus_s(Matrix* a, int a_row_begin, int a_row_end, int a_column_begin, int a_column_end, \
Matrix* b, int b_row_begin, int b_row_end, int b_column_begin, int b_column_end) {
if ((a_column_end - a_column_begin + 1) != (b_column_end - b_column_begin + 1) || \
(a_row_end - a_row_begin + 1) != (b_row_end - b_row_begin + 1)) {
cout << "These two matrix can not add together" << endl;
return NULL;
}
Matrix* temp = new Matrix;
temp->column = a_column_end - a_column_begin + 1;
temp->row = a_row_end - a_row_begin + 1;
temp->matrix = new float[temp->column * temp->row];
for (int i = 0; i < temp->row; i++) {
for (int j = 0; j < temp->column; j++) {
temp->matrix[i * temp->column + j] = a->matrix[(i + a_row_begin - 1) * a->column + j + a_column_begin - 1] \
- b->matrix[(i + b_row_begin - 1) * b->column + j + b_column_begin - 1];
}
}
return temp;
}
Matrix* Matrix_Strassen(Matrix* a, Matrix* b) {
//divide matrix apart and build new matrix cost so much.
/*-----------------------------
C11 = M5 + M4 - M2 + M6
C12 = M1 + M2
C21 = M3 + M4
C22 = M5 + M1 - M3 - M7
------------------------------*/
//Matrix* A_1_1 = Build_Matrix_s(a, 1, a->row / 2, 1, a->column / 2);
//Matrix* A_1_2 = Build_Matrix_s(a, 1, a->row / 2, a->column / 2 + 1, a->column);
//Matrix* A_2_1 = Build_Matrix_s(a, a->row / 2 + 1, a->row, 1, a->column / 2);
//Matrix* A_2_2 = Build_Matrix_s(a, a->row / 2 + 1, a->row, a->column / 2 + 1, a->column);
//Matrix* B_1_1 = Build_Matrix_s(b, 1, b->row / 2, 1, b->column / 2);
//Matrix* B_1_2 = Build_Matrix_s(b, 1, b->row / 2, b->column / 2 + 1, b->column);
//Matrix* B_2_1 = Build_Matrix_s(b, b->row / 2 + 1, b->row, 1, b->column / 2);
//Matrix* B_2_2 = Build_Matrix_s(b, b->row / 2 + 1, b->row, b->column / 2 + 1, b->column);
/*
M1=A11(B12-B22)
M2=(A11+A12)B22
M3=(A21+A22)B11
M4=A22(B21-B11)
M5=(A11+A22)(B11+B22)
M6=(A12-A22)(B21+B22)
M7=(A11-A21)(B11+B12)
*/
if (a->row == 1 && b->column == 1) {
// Print_Matrix(a);
// Print_Matrix(b);
return Matrix_Multiplication(a, b);
}
Matrix* M1 = Matrix_Strassen(Build_Matrix_s(a, 1, a->row / 2, 1, a->column / 2), Matrix_Minus_s(b, 1, b->row / 2, b->column / 2 + 1, b->column, b, b->row / 2 + 1, b->row, b->column / 2 + 1, b->column));
Matrix* M2 = Matrix_Strassen(Matrix_Plus_s(a, 1, a->row / 2, 1, a->column / 2, a, 1, a->row / 2, a->column / 2 + 1, a->column), Build_Matrix_s(b, b->row / 2 + 1, b->row, b->column / 2 + 1, b->column));
Matrix* M3 = Matrix_Strassen(Matrix_Plus_s(a, a->row / 2 + 1, a->row, 1, a->column / 2, a, a->row / 2 + 1, a->row, a->column / 2 + 1, a->column), Build_Matrix_s(b, 1, b->row / 2, 1, b->column / 2));
Matrix* M4 = Matrix_Strassen(Build_Matrix_s(a, a->row / 2 + 1, a->row, a->column / 2 + 1, a->column), Matrix_Minus_s(b, b->row / 2 + 1, b->row, 1, b->column / 2, b, 1, b->row / 2, 1, b->column / 2));
Matrix* M5 = Matrix_Strassen(Matrix_Plus_s(a, 1, a->row / 2, 1, a->column / 2, a, a->row / 2 + 1, a->row, a->column / 2 + 1, a->column), Matrix_Plus_s(b, 1, b->row / 2, 1, b->column / 2, b, b->row / 2 + 1, b->row, b->column / 2 + 1, b->column));
Matrix* M6 = Matrix_Strassen(Matrix_Minus_s(a, 1, a->row / 2, a->column / 2 + 1, a->column, a, a->row / 2 + 1, a->row, 1, a->column / 2), Matrix_Plus_s(b, b->row / 2 + 1, b->row, 1, b->column / 2, b, b->row / 2 + 1, b->row, b->column / 2 + 1, b->column));
Matrix* M7 = Matrix_Strassen(Matrix_Minus_s(a, 1, a->row / 2, 1, a->column / 2, a, a->row / 2 + 1, a->row, 1, a->column / 2), Matrix_Plus_s(b, 1, b->row / 2, 1, b->column / 2, b, 1, b->row / 2, b->column / 2 + 1, b->column));
return Rebuild_BlockMatrix(Matrix_Plus_s_for_C11(M5, M4, M2, M6), Matrix_Plus_s_forC12C21(M1, M2), Matrix_Plus_s_forC12C21(M3, M4), Matrix_Plus_s_for_C22(M5, M1, M3, M7));
}
int main() {
Matrix* a = new Matrix;
//a->column = 4;
//a->row = 4;
//a->matrix = new float[a->column * a->row];
//for (int i = 0; i < a->column * a->row; i++) {
// a->matrix[i] = 1;
//}
Build_Ones(a);
//Print_Matrix(Rebuild_BlockMatrix(A,A,A,A));
//Print_Matrix(Matrix_Plus_s(a, 1, a->row / 2, 1, a->column / 2, a, 1, a->row / 2, a->column / 2 + 1, a->column));
//Print_Matrix(Matrix_Multiplication(a, a));
using namespace literals;
auto now = chrono::system_clock::now();
auto t_c = chrono::system_clock::to_time_t(now - 24h);
auto start = std::chrono::steady_clock::now();
//Print_Matrix(Matrix_Strassen(a, a));
Matrix_Strassen(a, a);
auto end = std::chrono::steady_clock::now();
//Print_Matrix(ans);
std::cout << "ms ?? " << std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count() << endl;
return 0;
}
| [
"11912306@mail.sustech.edu.cn"
] | 11912306@mail.sustech.edu.cn |
6ca20496db17648ef1153179040a616c63e67b58 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /media/audio/win/core_audio_util_win_unittest.cc | 57e09c7ce71824ec824b68583ee35863b640d9e3 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,819 | cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/audio/win/core_audio_util_win.h"
#include <stddef.h>
#include <stdint.h>
#include "base/macros.h"
#include "base/strings/utf_string_conversions.h"
#include "base/synchronization/waitable_event.h"
#include "base/win/scoped_co_mem.h"
#include "base/win/scoped_com_initializer.h"
#include "base/win/scoped_handle.h"
#include "media/audio/audio_device_description.h"
#include "media/audio/audio_unittest_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
using base::win::ScopedCOMInitializer;
namespace media {
class CoreAudioUtilWinTest : public ::testing::Test {
protected:
// The tests must run on a COM thread.
// If we don't initialize the COM library on a thread before using COM,
// all function calls will return CO_E_NOTINITIALIZED.
CoreAudioUtilWinTest() {
DCHECK(com_init_.succeeded());
}
~CoreAudioUtilWinTest() override {}
bool DevicesAvailable() {
return CoreAudioUtil::IsSupported() &&
CoreAudioUtil::NumberOfActiveDevices(eCapture) > 0 &&
CoreAudioUtil::NumberOfActiveDevices(eRender) > 0;
}
ScopedCOMInitializer com_init_;
};
TEST_F(CoreAudioUtilWinTest, GetDxDiagDetails) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
std::string name, version;
ASSERT_TRUE(CoreAudioUtil::GetDxDiagDetails(&name, &version));
EXPECT_TRUE(!name.empty());
EXPECT_TRUE(!version.empty());
}
TEST_F(CoreAudioUtilWinTest, NumberOfActiveDevices) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
int render_devices = CoreAudioUtil::NumberOfActiveDevices(eRender);
EXPECT_GT(render_devices, 0);
int capture_devices = CoreAudioUtil::NumberOfActiveDevices(eCapture);
EXPECT_GT(capture_devices, 0);
int total_devices = CoreAudioUtil::NumberOfActiveDevices(eAll);
EXPECT_EQ(total_devices, render_devices + capture_devices);
}
TEST_F(CoreAudioUtilWinTest, CreateDeviceEnumerator) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
ScopedComPtr<IMMDeviceEnumerator> enumerator =
CoreAudioUtil::CreateDeviceEnumerator();
EXPECT_TRUE(enumerator.get());
}
TEST_F(CoreAudioUtilWinTest, CreateDefaultDevice) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
struct {
EDataFlow flow;
ERole role;
} data[] = {
{eRender, eConsole},
{eRender, eCommunications},
{eRender, eMultimedia},
{eCapture, eConsole},
{eCapture, eCommunications},
{eCapture, eMultimedia}
};
// Create default devices for all flow/role combinations above.
ScopedComPtr<IMMDevice> audio_device;
for (size_t i = 0; i < arraysize(data); ++i) {
audio_device =
CoreAudioUtil::CreateDefaultDevice(data[i].flow, data[i].role);
EXPECT_TRUE(audio_device.get());
EXPECT_EQ(data[i].flow, CoreAudioUtil::GetDataFlow(audio_device.get()));
}
// Only eRender and eCapture are allowed as flow parameter.
audio_device = CoreAudioUtil::CreateDefaultDevice(eAll, eConsole);
EXPECT_FALSE(audio_device.get());
}
TEST_F(CoreAudioUtilWinTest, CreateDevice) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
// Get name and ID of default device used for playback.
ScopedComPtr<IMMDevice> default_render_device =
CoreAudioUtil::CreateDefaultDevice(eRender, eConsole);
AudioDeviceName default_render_name;
EXPECT_TRUE(SUCCEEDED(CoreAudioUtil::GetDeviceName(
default_render_device.get(), &default_render_name)));
// Use the uniqe ID as input to CreateDevice() and create a corresponding
// IMMDevice.
ScopedComPtr<IMMDevice> audio_device =
CoreAudioUtil::CreateDevice(default_render_name.unique_id);
EXPECT_TRUE(audio_device.get());
// Verify that the two IMMDevice interfaces represents the same endpoint
// by comparing their unique IDs.
AudioDeviceName device_name;
EXPECT_TRUE(SUCCEEDED(
CoreAudioUtil::GetDeviceName(audio_device.get(), &device_name)));
EXPECT_EQ(default_render_name.unique_id, device_name.unique_id);
}
TEST_F(CoreAudioUtilWinTest, GetDefaultDeviceName) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
struct {
EDataFlow flow;
ERole role;
} data[] = {
{eRender, eConsole},
{eRender, eCommunications},
{eCapture, eConsole},
{eCapture, eCommunications}
};
// Get name and ID of default devices for all flow/role combinations above.
ScopedComPtr<IMMDevice> audio_device;
AudioDeviceName device_name;
for (size_t i = 0; i < arraysize(data); ++i) {
audio_device =
CoreAudioUtil::CreateDefaultDevice(data[i].flow, data[i].role);
EXPECT_TRUE(SUCCEEDED(
CoreAudioUtil::GetDeviceName(audio_device.get(), &device_name)));
EXPECT_FALSE(device_name.device_name.empty());
EXPECT_FALSE(device_name.unique_id.empty());
}
}
TEST_F(CoreAudioUtilWinTest, GetAudioControllerID) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
ScopedComPtr<IMMDeviceEnumerator> enumerator(
CoreAudioUtil::CreateDeviceEnumerator());
ASSERT_TRUE(enumerator.get());
// Enumerate all active input and output devices and fetch the ID of
// the associated device.
EDataFlow flows[] = { eRender , eCapture };
for (size_t i = 0; i < arraysize(flows); ++i) {
ScopedComPtr<IMMDeviceCollection> collection;
ASSERT_TRUE(SUCCEEDED(enumerator->EnumAudioEndpoints(flows[i],
DEVICE_STATE_ACTIVE, collection.Receive())));
UINT count = 0;
collection->GetCount(&count);
for (UINT j = 0; j < count; ++j) {
ScopedComPtr<IMMDevice> device;
collection->Item(j, device.Receive());
std::string controller_id(
CoreAudioUtil::GetAudioControllerID(device.get(), enumerator.get()));
EXPECT_FALSE(controller_id.empty());
}
}
}
TEST_F(CoreAudioUtilWinTest, GetFriendlyName) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
// Get name and ID of default device used for recording.
ScopedComPtr<IMMDevice> audio_device =
CoreAudioUtil::CreateDefaultDevice(eCapture, eConsole);
AudioDeviceName device_name;
HRESULT hr = CoreAudioUtil::GetDeviceName(audio_device.get(), &device_name);
EXPECT_TRUE(SUCCEEDED(hr));
// Use unique ID as input to GetFriendlyName() and compare the result
// with the already obtained friendly name for the default capture device.
std::string friendly_name = CoreAudioUtil::GetFriendlyName(
device_name.unique_id);
EXPECT_EQ(friendly_name, device_name.device_name);
// Same test as above but for playback.
audio_device = CoreAudioUtil::CreateDefaultDevice(eRender, eConsole);
hr = CoreAudioUtil::GetDeviceName(audio_device.get(), &device_name);
EXPECT_TRUE(SUCCEEDED(hr));
friendly_name = CoreAudioUtil::GetFriendlyName(device_name.unique_id);
EXPECT_EQ(friendly_name, device_name.device_name);
}
TEST_F(CoreAudioUtilWinTest, DeviceIsDefault) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
// Verify that the default render device is correctly identified as a
// default device.
ScopedComPtr<IMMDevice> audio_device =
CoreAudioUtil::CreateDefaultDevice(eRender, eConsole);
AudioDeviceName name;
EXPECT_TRUE(
SUCCEEDED(CoreAudioUtil::GetDeviceName(audio_device.get(), &name)));
const std::string id = name.unique_id;
EXPECT_TRUE(CoreAudioUtil::DeviceIsDefault(eRender, eConsole, id));
EXPECT_FALSE(CoreAudioUtil::DeviceIsDefault(eCapture, eConsole, id));
}
TEST_F(CoreAudioUtilWinTest, CreateDefaultClient) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
EDataFlow data[] = {eRender, eCapture};
for (size_t i = 0; i < arraysize(data); ++i) {
ScopedComPtr<IAudioClient> client;
client = CoreAudioUtil::CreateDefaultClient(data[i], eConsole);
EXPECT_TRUE(client.get());
}
}
TEST_F(CoreAudioUtilWinTest, CreateClient) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
EDataFlow data[] = {eRender, eCapture};
for (size_t i = 0; i < arraysize(data); ++i) {
ScopedComPtr<IMMDevice> device;
ScopedComPtr<IAudioClient> client;
device = CoreAudioUtil::CreateDefaultDevice(data[i], eConsole);
EXPECT_TRUE(device.get());
EXPECT_EQ(data[i], CoreAudioUtil::GetDataFlow(device.get()));
client = CoreAudioUtil::CreateClient(device.get());
EXPECT_TRUE(client.get());
}
}
TEST_F(CoreAudioUtilWinTest, GetSharedModeMixFormat) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
ScopedComPtr<IMMDevice> device;
ScopedComPtr<IAudioClient> client;
device = CoreAudioUtil::CreateDefaultDevice(eRender, eConsole);
EXPECT_TRUE(device.get());
client = CoreAudioUtil::CreateClient(device.get());
EXPECT_TRUE(client.get());
// Perform a simple sanity test of the aquired format structure.
WAVEFORMATPCMEX format;
EXPECT_TRUE(
SUCCEEDED(CoreAudioUtil::GetSharedModeMixFormat(client.get(), &format)));
EXPECT_GE(format.Format.nChannels, 1);
EXPECT_GE(format.Format.nSamplesPerSec, 8000u);
EXPECT_GE(format.Format.wBitsPerSample, 16);
EXPECT_GE(format.Samples.wValidBitsPerSample, 16);
EXPECT_EQ(format.Format.wFormatTag, WAVE_FORMAT_EXTENSIBLE);
}
TEST_F(CoreAudioUtilWinTest, IsChannelLayoutSupported) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
// The preferred channel layout should always be supported. Being supported
// means that it is possible to initialize a shared mode stream with the
// particular channel layout.
AudioParameters mix_params;
HRESULT hr = CoreAudioUtil::GetPreferredAudioParameters(
AudioDeviceDescription::kDefaultDeviceId, true, &mix_params);
EXPECT_TRUE(SUCCEEDED(hr));
EXPECT_TRUE(mix_params.IsValid());
EXPECT_TRUE(CoreAudioUtil::IsChannelLayoutSupported(
std::string(), eRender, eConsole, mix_params.channel_layout()));
// Check if it is possible to modify the channel layout to stereo for a
// device which reports that it prefers to be openen up in an other
// channel configuration.
if (mix_params.channel_layout() != CHANNEL_LAYOUT_STEREO) {
ChannelLayout channel_layout = CHANNEL_LAYOUT_STEREO;
// TODO(henrika): it might be too pessimistic to assume false as return
// value here.
EXPECT_FALSE(CoreAudioUtil::IsChannelLayoutSupported(
std::string(), eRender, eConsole, channel_layout));
}
}
TEST_F(CoreAudioUtilWinTest, GetDevicePeriod) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
EDataFlow data[] = {eRender, eCapture};
// Verify that the device periods are valid for the default render and
// capture devices.
for (size_t i = 0; i < arraysize(data); ++i) {
ScopedComPtr<IAudioClient> client;
REFERENCE_TIME shared_time_period = 0;
REFERENCE_TIME exclusive_time_period = 0;
client = CoreAudioUtil::CreateDefaultClient(data[i], eConsole);
EXPECT_TRUE(client.get());
EXPECT_TRUE(SUCCEEDED(CoreAudioUtil::GetDevicePeriod(
client.get(), AUDCLNT_SHAREMODE_SHARED, &shared_time_period)));
EXPECT_GT(shared_time_period, 0);
EXPECT_TRUE(SUCCEEDED(CoreAudioUtil::GetDevicePeriod(
client.get(), AUDCLNT_SHAREMODE_EXCLUSIVE, &exclusive_time_period)));
EXPECT_GT(exclusive_time_period, 0);
EXPECT_LE(exclusive_time_period, shared_time_period);
}
}
TEST_F(CoreAudioUtilWinTest, GetPreferredAudioParameters) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
EDataFlow data[] = {eRender, eCapture};
// Verify that the preferred audio parameters are OK for the default render
// and capture devices.
for (size_t i = 0; i < arraysize(data); ++i) {
ScopedComPtr<IAudioClient> client;
AudioParameters params;
client = CoreAudioUtil::CreateDefaultClient(data[i], eConsole);
EXPECT_TRUE(client.get());
EXPECT_TRUE(SUCCEEDED(
CoreAudioUtil::GetPreferredAudioParameters(client.get(), ¶ms)));
EXPECT_TRUE(params.IsValid());
}
}
TEST_F(CoreAudioUtilWinTest, SharedModeInitialize) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
ScopedComPtr<IAudioClient> client;
client = CoreAudioUtil::CreateDefaultClient(eRender, eConsole);
EXPECT_TRUE(client.get());
WAVEFORMATPCMEX format;
EXPECT_TRUE(
SUCCEEDED(CoreAudioUtil::GetSharedModeMixFormat(client.get(), &format)));
// Perform a shared-mode initialization without event-driven buffer handling.
uint32_t endpoint_buffer_size = 0;
HRESULT hr = CoreAudioUtil::SharedModeInitialize(client.get(), &format, NULL,
&endpoint_buffer_size, NULL);
EXPECT_TRUE(SUCCEEDED(hr));
EXPECT_GT(endpoint_buffer_size, 0u);
// It is only possible to create a client once.
hr = CoreAudioUtil::SharedModeInitialize(client.get(), &format, NULL,
&endpoint_buffer_size, NULL);
EXPECT_FALSE(SUCCEEDED(hr));
EXPECT_EQ(hr, AUDCLNT_E_ALREADY_INITIALIZED);
// Verify that it is possible to reinitialize the client after releasing it.
client = CoreAudioUtil::CreateDefaultClient(eRender, eConsole);
EXPECT_TRUE(client.get());
hr = CoreAudioUtil::SharedModeInitialize(client.get(), &format, NULL,
&endpoint_buffer_size, NULL);
EXPECT_TRUE(SUCCEEDED(hr));
EXPECT_GT(endpoint_buffer_size, 0u);
// Use a non-supported format and verify that initialization fails.
// A simple way to emulate an invalid format is to use the shared-mode
// mixing format and modify the preferred sample.
client = CoreAudioUtil::CreateDefaultClient(eRender, eConsole);
EXPECT_TRUE(client.get());
format.Format.nSamplesPerSec = format.Format.nSamplesPerSec + 1;
EXPECT_FALSE(CoreAudioUtil::IsFormatSupported(
client.get(), AUDCLNT_SHAREMODE_SHARED, &format));
hr = CoreAudioUtil::SharedModeInitialize(client.get(), &format, NULL,
&endpoint_buffer_size, NULL);
EXPECT_TRUE(FAILED(hr));
EXPECT_EQ(hr, E_INVALIDARG);
// Finally, perform a shared-mode initialization using event-driven buffer
// handling. The event handle will be signaled when an audio buffer is ready
// to be processed by the client (not verified here).
// The event handle should be in the nonsignaled state.
base::win::ScopedHandle event_handle(::CreateEvent(NULL, TRUE, FALSE, NULL));
client = CoreAudioUtil::CreateDefaultClient(eRender, eConsole);
EXPECT_TRUE(client.get());
EXPECT_TRUE(
SUCCEEDED(CoreAudioUtil::GetSharedModeMixFormat(client.get(), &format)));
EXPECT_TRUE(CoreAudioUtil::IsFormatSupported(
client.get(), AUDCLNT_SHAREMODE_SHARED, &format));
hr = CoreAudioUtil::SharedModeInitialize(
client.get(), &format, event_handle.Get(), &endpoint_buffer_size, NULL);
EXPECT_TRUE(SUCCEEDED(hr));
EXPECT_GT(endpoint_buffer_size, 0u);
}
TEST_F(CoreAudioUtilWinTest, CreateRenderAndCaptureClients) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
EDataFlow data[] = {eRender, eCapture};
WAVEFORMATPCMEX format;
uint32_t endpoint_buffer_size = 0;
for (size_t i = 0; i < arraysize(data); ++i) {
ScopedComPtr<IAudioClient> client;
ScopedComPtr<IAudioRenderClient> render_client;
ScopedComPtr<IAudioCaptureClient> capture_client;
client = CoreAudioUtil::CreateDefaultClient(data[i], eConsole);
EXPECT_TRUE(client.get());
EXPECT_TRUE(SUCCEEDED(
CoreAudioUtil::GetSharedModeMixFormat(client.get(), &format)));
if (data[i] == eRender) {
// It is not possible to create a render client using an unitialized
// client interface.
render_client = CoreAudioUtil::CreateRenderClient(client.get());
EXPECT_FALSE(render_client.get());
// Do a proper initialization and verify that it works this time.
CoreAudioUtil::SharedModeInitialize(client.get(), &format, NULL,
&endpoint_buffer_size, NULL);
render_client = CoreAudioUtil::CreateRenderClient(client.get());
EXPECT_TRUE(render_client.get());
EXPECT_GT(endpoint_buffer_size, 0u);
} else if (data[i] == eCapture) {
// It is not possible to create a capture client using an unitialized
// client interface.
capture_client = CoreAudioUtil::CreateCaptureClient(client.get());
EXPECT_FALSE(capture_client.get());
// Do a proper initialization and verify that it works this time.
CoreAudioUtil::SharedModeInitialize(client.get(), &format, NULL,
&endpoint_buffer_size, NULL);
capture_client = CoreAudioUtil::CreateCaptureClient(client.get());
EXPECT_TRUE(capture_client.get());
EXPECT_GT(endpoint_buffer_size, 0u);
}
}
}
TEST_F(CoreAudioUtilWinTest, FillRenderEndpointBufferWithSilence) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
// Create default clients using the default mixing format for shared mode.
ScopedComPtr<IAudioClient> client(
CoreAudioUtil::CreateDefaultClient(eRender, eConsole));
EXPECT_TRUE(client.get());
WAVEFORMATPCMEX format;
uint32_t endpoint_buffer_size = 0;
EXPECT_TRUE(
SUCCEEDED(CoreAudioUtil::GetSharedModeMixFormat(client.get(), &format)));
CoreAudioUtil::SharedModeInitialize(client.get(), &format, NULL,
&endpoint_buffer_size, NULL);
EXPECT_GT(endpoint_buffer_size, 0u);
ScopedComPtr<IAudioRenderClient> render_client(
CoreAudioUtil::CreateRenderClient(client.get()));
EXPECT_TRUE(render_client.get());
// The endpoint audio buffer should not be filled up by default after being
// created.
UINT32 num_queued_frames = 0;
client->GetCurrentPadding(&num_queued_frames);
EXPECT_EQ(num_queued_frames, 0u);
// Fill it up with zeros and verify that the buffer is full.
// It is not possible to verify that the actual data consists of zeros
// since we can't access data that has already been sent to the endpoint
// buffer.
EXPECT_TRUE(CoreAudioUtil::FillRenderEndpointBufferWithSilence(
client.get(), render_client.get()));
client->GetCurrentPadding(&num_queued_frames);
EXPECT_EQ(num_queued_frames, endpoint_buffer_size);
}
// This test can only run on a machine that has audio hardware
// that has both input and output devices.
TEST_F(CoreAudioUtilWinTest, GetMatchingOutputDeviceID) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
bool found_a_pair = false;
ScopedComPtr<IMMDeviceEnumerator> enumerator(
CoreAudioUtil::CreateDeviceEnumerator());
ASSERT_TRUE(enumerator.get());
// Enumerate all active input and output devices and fetch the ID of
// the associated device.
ScopedComPtr<IMMDeviceCollection> collection;
ASSERT_TRUE(SUCCEEDED(enumerator->EnumAudioEndpoints(eCapture,
DEVICE_STATE_ACTIVE, collection.Receive())));
UINT count = 0;
collection->GetCount(&count);
for (UINT i = 0; i < count && !found_a_pair; ++i) {
ScopedComPtr<IMMDevice> device;
collection->Item(i, device.Receive());
base::win::ScopedCoMem<WCHAR> wide_id;
device->GetId(&wide_id);
std::string id;
base::WideToUTF8(wide_id, wcslen(wide_id), &id);
found_a_pair = !CoreAudioUtil::GetMatchingOutputDeviceID(id).empty();
}
EXPECT_TRUE(found_a_pair);
}
TEST_F(CoreAudioUtilWinTest, GetDefaultOutputDeviceID) {
ABORT_AUDIO_TEST_IF_NOT(DevicesAvailable());
std::string default_device_id(CoreAudioUtil::GetDefaultOutputDeviceID());
EXPECT_FALSE(default_device_id.empty());
}
} // namespace media
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com |
6c2ab477eed3b6c8ac6390a462a3eaf748f695c4 | 444a7de897a71b6d65102371a7034d4cd58bc565 | /BwInf_Kassiopeia_B/Kassiopeia.cpp | 046f20bcbb0cd3c5392b8edb800aedcbab9191d1 | [] | no_license | tobinatore/BwInf_Kassiopeias_Weg | 698d798dbb327b1238124f38638d7cb2ba4984b1 | c92ac0f6bf388a117150a23db2f2ee1ebe59f1ca | refs/heads/master | 2021-01-11T14:52:05.686872 | 2017-01-27T19:03:43 | 2017-01-27T19:03:43 | 80,237,211 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,482 | cpp | #include <iostream> //Ein-/Ausgabe
#include <cstdlib> //system("...")
#include <vector>
#include <string>
std::string Weg;
struct vek //struct für alle wichtigen Operationen im Vektor
{
int x, y;
};
using feld_typ = std::vector<std::string>; //Alias für std::vector<std::string>
/*ADDITION VON VEK'S*/
vek operator+(vek a, vek b)
{
return{ a.x + b.x, a.y + b.y };
}
vek Richtung[] = { { 0, -1 }, { 0, 1 }, { -1, 0 }, { 1, 0 } }; //Die Richtungen
/*ZEICHEN AN BESTIMMTER STELLE*/
char& at(feld_typ& feld, vek pos)
{
return feld[pos.y][pos.x];
}
/*AUSGABE DES VECTORS*/
void zeige(int höhe, int breite, const feld_typ& feld)
{
for (int i = 0; i < höhe; i++)
{
for (int j = 0; j < breite; j++)
{
std::cout << feld[i][j];
}
std::cout << std::endl;
}
std::cout << std::endl;
}
/*ERMITTELSN DES WEGES*/
void finde_weg(feld_typ& feld, vek pos, unsigned knoten = 0)
{
int leeresFeld = 0;
int Breite = feld[0].length();
int Höhe = feld.size();
if (at(feld, pos) != ' ')
{
return;
}
std::cout << "Reihe: " << pos.y << ", Spalte: " << pos.x << '\n';
at(feld, pos) = '0' + knoten;
zeige(Höhe, Breite, feld);
for (int i = 0; i < Höhe; i++)
{
for (int j = 0; j < Breite; j++)
{
if (feld[i][j] == ' ')
{
leeresFeld++;
}
}
}
if (leeresFeld == 0)
{
std::cout << Weg << std::endl << Weg.length() << " Felder besucht." << std::endl;
system("Pause");
exit(0);
}
for (auto richt_vek : Richtung){
if (richt_vek.y == -1)
{
Weg.append("N");
}
if (richt_vek.y == 1)
{
Weg.append("S");
}
if (richt_vek.x == 1)
{
Weg.append("O");
}
if (richt_vek.x == -1)
{
Weg.append("W");
}
finde_weg(feld, pos + richt_vek, knoten + 1);
Weg.pop_back();
}
std::cout << "Backtracking..\n";
at(feld, pos) = ' ';
}
int main()
{
/*VARIABLENDEKLARATION*/
std::vector<std::string> feld =
{ //0123456789
"#########", //0
"# #", //1
"# ### #", //2
"# #", //3
"#########", //4
//5
};
int Breite = feld[0].length();
int Höhe = feld.size();
int leeresFeld = 0;
vek start_pos = { 3, 1 }; //Startpunkt, erst x dann y
/*BEGINN DER ANWEISUNGEN*/
finde_weg(feld, start_pos); //Aufru
for (int i = 0; i < Höhe; i++)
{
for (int j = 0; j < Breite; j++)
{
if (feld[i][j] == ' ')
{
leeresFeld++;
}
}
}
if (leeresFeld != 0)
{
std::cout << std::endl << "Kein Weg gefunden!" << std::endl;
}
system("Pause");
return 0;
}
| [
"germanicalp@gmail.com"
] | germanicalp@gmail.com |
8771687abef3ddb72f32b42dd1c84e431cb0b0af | 329524483e292fde2587e9b8d3070247ec1e5848 | /Ch7/rssi/rssiBeacon/rssiBeacon.ino | f94874b1931bdf6144634a8c95d80418a0ce980e | [] | no_license | equijano/ME544-Group-6 | 5741915ab33d0432ecdbe1bbed7d2b88cd89e161 | b1f131a6c639862267fe2d441e85b808c1890b21 | refs/heads/master | 2016-09-10T15:04:37.113876 | 2015-12-12T21:26:50 | 2015-12-12T21:27:09 | 42,325,043 | 0 | 3 | null | 2015-10-09T19:07:51 | 2015-09-11T18:19:39 | HTML | UTF-8 | C++ | false | false | 6,828 | ino | #include <Printers.h>
#include <XBee.h>
/**
* Copyright (c) 2009 Andrew Rapp. All rights reserved.
*
* This file is part of XBee-Arduino.
*
* XBee-Arduino is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XBee-Arduino is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XBee-Arduino. If not, see <http://www.gnu.org/licenses/>.
*/
/**
*
* This file has been modified by Aaron Heuckroth for use in EC544: Networking the Physical World at Boston University, Fall 2015.
*/
#include <XBee.h>
#include <SoftwareSerial.h>
/*
This example is for Series 2 XBee
*/
// Should be a unique ID between 0 and 255.
uint8_t BEACON_ID = 4;
int location = 0;
XBee xbee = XBee();
XBeeResponse response = XBeeResponse();
// create reusable response objects for responses we expect to handle
ZBRxResponse rx = ZBRxResponse();
ModemStatusResponse msr = ModemStatusResponse();
uint8_t dbCommand[] = {'D','B'};
AtCommandRequest atRequest = AtCommandRequest(dbCommand);
ZBTxStatusResponse txStatus = ZBTxStatusResponse();
AtCommandResponse atResponse = AtCommandResponse();
SoftwareSerial xbeeSerial(2,3);
void setup() {
// start serial
Serial.begin(9600);
xbeeSerial.begin(9600);
xbee.setSerial(xbeeSerial);
Serial.println("Initializing beacon...");
}
int sendATCommand(AtCommandRequest atRequest) {
int value = -1;
Serial.println("Sending command to the XBee");
// send the command
xbee.send(atRequest);
// wait up to 5 seconds for the status response
if (xbee.readPacket(5000)) {
// got a response!
// should be an AT command responses
if (xbee.getResponse().getApiId() == AT_COMMAND_RESPONSE) {
xbee.getResponse().getAtCommandResponse(atResponse);
if (atResponse.isOk()) {
Serial.print("Command [");
Serial.print(atResponse.getCommand()[0]);
Serial.print(atResponse.getCommand()[1]);
Serial.println("] was successful!");
if (atResponse.getValueLength() > 0) {
Serial.print("Command value length is ");
Serial.println(atResponse.getValueLength(), DEC);
Serial.print("Command value: ");
for (int i = 0; i < atResponse.getValueLength(); i++) {
value = atResponse.getValue()[i];
Serial.print(atResponse.getValue()[i]);
Serial.print(" ");
}
Serial.println("");
}
}
else {
Serial.print("Command return error code: ");
Serial.println(atResponse.getStatus(), HEX);
}
} else {
Serial.print("Expected AT response but got ");
Serial.print(xbee.getResponse().getApiId(), HEX);
}
} else {
// at command failed
if (xbee.getResponse().isError()) {
Serial.print("Error reading packet. Error code: ");
Serial.println(xbee.getResponse().getErrorCode());
}
else {
Serial.print("No response from radio");
}
}
return value;
}
void sendRSSIValue(XBeeAddress64 targetAddress, int rssiValue){
uint8_t value = (uint8_t) rssiValue;
uint8_t values[] = {value};
//uint8_t values[] = {value, BEACON_ID};
ZBTxRequest zbTx = ZBTxRequest(targetAddress, values, sizeof(values));
sendTx(zbTx);
}
void sendTx(ZBTxRequest zbTx){
xbee.send(zbTx);
if (xbee.readPacket(500)) {
Serial.println("Got a response!");
// got a response!
// should be a znet tx status
if (xbee.getResponse().getApiId() == ZB_TX_STATUS_RESPONSE) {
xbee.getResponse().getZBTxStatusResponse(txStatus);
// get the delivery status, the fifth byte
if (txStatus.getDeliveryStatus() == SUCCESS) {
// success. time to celebrate
Serial.println("SUCCESS!");
} else {
Serial.println("FAILURE!");
// the remote XBee did not receive our packet. is it powered on?
}
}
} else if (xbee.getResponse().isError()) {
Serial.print("Error reading packet. Error code: ");
Serial.println(xbee.getResponse().getErrorCode());
} else {
// local XBee did not provide a timely TX Status Response -- should not happen
Serial.println("This should never happen...");
}
}
int processResponse(int data){
int clocation;
if (xbee.getResponse().isAvailable()) {
// got something
if (xbee.getResponse().getApiId() == ZB_RX_RESPONSE) {
// got a zb rx packet
// now fill our zb rx class
xbee.getResponse().getZBRxResponse(rx);
Serial.println("Got an rx packet!");
if (rx.getOption() == ZB_PACKET_ACKNOWLEDGED) {
// the sender got an ACK
Serial.println("packet acknowledged");
} else {
Serial.println("packet not acknowledged");
}
/*Serial.print("checksum is ");
Serial.println(rx.getChecksum(), HEX);
Serial.print("packet length is ");
Serial.println(rx.getPacketLength(), DEC);*/
for (int i = 0; i < rx.getDataLength(); i++) {
clocation += rx.getData()[i];
/*Serial.print("payload [");
Serial.print(i, DEC);
Serial.print("] is ");
Serial.println(rx.getData()[i], HEX);*/
}
/** IMPORTANT **/
/*Serial.print("Location: ");
Serial.println(location);
location = 0;*/
/*for (int i = 0; i < xbee.getResponse().getFrameDataLength(); i++) {
Serial.print("frame data [");
Serial.print(i, DEC);
Serial.print("] is ");
Serial.println(xbee.getResponse().getFrameData()[i], HEX);
}*/
XBeeAddress64 replyAddress = rx.getRemoteAddress64();
int rssi;
if(data == 1){
rssi = sendATCommand(dbCommand);
} else {
/** IMPORTANT **/
rssi = data;
}
sendRSSIValue(replyAddress, rssi);
Serial.println("");
}
} else if (xbee.getResponse().isError()) {
Serial.print("error code:");
Serial.println(xbee.getResponse().getErrorCode());
}
return clocation;
}
// continuously reads packets, looking for ZB Receive or Modem Status
void loop() {
xbee.readPacket();
//If parameter equals to 1, send rssi; else send parameter value
location = processResponse(12);
if(location != 0){
Serial.print("location");
Serial.println(location);
location = 0;
}
}
| [
"xmh@bu.edu"
] | xmh@bu.edu |
37d85671650291a928bb185b181905bc498cc5dc | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/sync/util/cryptographer_unittest.cc | c045064674cc0b2db67c714f4f6501f1e61ce7ef | [
"BSD-3-Clause",
"MIT"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | C++ | false | false | 6,609 | cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sync/util/cryptographer.h"
#include <string>
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_util.h"
#include "sync/protocol/password_specifics.pb.h"
#include "sync/test/fake_encryptor.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
namespace {
using ::testing::_;
} // namespace
class CryptographerTest : public ::testing::Test {
protected:
CryptographerTest() : cryptographer_(&encryptor_) {}
FakeEncryptor encryptor_;
Cryptographer cryptographer_;
};
TEST_F(CryptographerTest, EmptyCantDecrypt) {
EXPECT_FALSE(cryptographer_.is_ready());
sync_pb::EncryptedData encrypted;
encrypted.set_key_name("foo");
encrypted.set_blob("bar");
EXPECT_FALSE(cryptographer_.CanDecrypt(encrypted));
}
TEST_F(CryptographerTest, EmptyCantEncrypt) {
EXPECT_FALSE(cryptographer_.is_ready());
sync_pb::EncryptedData encrypted;
sync_pb::PasswordSpecificsData original;
EXPECT_FALSE(cryptographer_.Encrypt(original, &encrypted));
}
TEST_F(CryptographerTest, MissingCantDecrypt) {
KeyParams params = {"localhost", "dummy", "dummy"};
cryptographer_.AddKey(params);
EXPECT_TRUE(cryptographer_.is_ready());
sync_pb::EncryptedData encrypted;
encrypted.set_key_name("foo");
encrypted.set_blob("bar");
EXPECT_FALSE(cryptographer_.CanDecrypt(encrypted));
}
TEST_F(CryptographerTest, CanEncryptAndDecrypt) {
KeyParams params = {"localhost", "dummy", "dummy"};
EXPECT_TRUE(cryptographer_.AddKey(params));
EXPECT_TRUE(cryptographer_.is_ready());
sync_pb::PasswordSpecificsData original;
original.set_origin("http://example.com");
original.set_username_value("azure");
original.set_password_value("hunter2");
sync_pb::EncryptedData encrypted;
EXPECT_TRUE(cryptographer_.Encrypt(original, &encrypted));
sync_pb::PasswordSpecificsData decrypted;
EXPECT_TRUE(cryptographer_.Decrypt(encrypted, &decrypted));
EXPECT_EQ(original.SerializeAsString(), decrypted.SerializeAsString());
}
TEST_F(CryptographerTest, EncryptOnlyIfDifferent) {
KeyParams params = {"localhost", "dummy", "dummy"};
EXPECT_TRUE(cryptographer_.AddKey(params));
EXPECT_TRUE(cryptographer_.is_ready());
sync_pb::PasswordSpecificsData original;
original.set_origin("http://example.com");
original.set_username_value("azure");
original.set_password_value("hunter2");
sync_pb::EncryptedData encrypted;
EXPECT_TRUE(cryptographer_.Encrypt(original, &encrypted));
sync_pb::EncryptedData encrypted2, encrypted3;
encrypted2.CopyFrom(encrypted);
encrypted3.CopyFrom(encrypted);
EXPECT_TRUE(cryptographer_.Encrypt(original, &encrypted2));
// Now encrypt with a new default key. Should overwrite the old data.
KeyParams params_new = {"localhost", "dummy", "dummy2"};
cryptographer_.AddKey(params_new);
EXPECT_TRUE(cryptographer_.Encrypt(original, &encrypted3));
sync_pb::PasswordSpecificsData decrypted;
EXPECT_TRUE(cryptographer_.Decrypt(encrypted2, &decrypted));
// encrypted2 should match encrypted, encrypted3 should not (due to salting).
EXPECT_EQ(encrypted.SerializeAsString(), encrypted2.SerializeAsString());
EXPECT_NE(encrypted.SerializeAsString(), encrypted3.SerializeAsString());
EXPECT_EQ(original.SerializeAsString(), decrypted.SerializeAsString());
}
TEST_F(CryptographerTest, AddKeySetsDefault) {
KeyParams params1 = {"localhost", "dummy", "dummy1"};
EXPECT_TRUE(cryptographer_.AddKey(params1));
EXPECT_TRUE(cryptographer_.is_ready());
sync_pb::PasswordSpecificsData original;
original.set_origin("http://example.com");
original.set_username_value("azure");
original.set_password_value("hunter2");
sync_pb::EncryptedData encrypted1;
EXPECT_TRUE(cryptographer_.Encrypt(original, &encrypted1));
sync_pb::EncryptedData encrypted2;
EXPECT_TRUE(cryptographer_.Encrypt(original, &encrypted2));
KeyParams params2 = {"localhost", "dummy", "dummy2"};
EXPECT_TRUE(cryptographer_.AddKey(params2));
EXPECT_TRUE(cryptographer_.is_ready());
sync_pb::EncryptedData encrypted3;
EXPECT_TRUE(cryptographer_.Encrypt(original, &encrypted3));
sync_pb::EncryptedData encrypted4;
EXPECT_TRUE(cryptographer_.Encrypt(original, &encrypted4));
EXPECT_EQ(encrypted1.key_name(), encrypted2.key_name());
EXPECT_NE(encrypted1.key_name(), encrypted3.key_name());
EXPECT_EQ(encrypted3.key_name(), encrypted4.key_name());
}
// Crashes, Bug 55178.
#if defined(OS_WIN)
#define MAYBE_EncryptExportDecrypt DISABLED_EncryptExportDecrypt
#else
#define MAYBE_EncryptExportDecrypt EncryptExportDecrypt
#endif
TEST_F(CryptographerTest, MAYBE_EncryptExportDecrypt) {
sync_pb::EncryptedData nigori;
sync_pb::EncryptedData encrypted;
sync_pb::PasswordSpecificsData original;
original.set_origin("http://example.com");
original.set_username_value("azure");
original.set_password_value("hunter2");
{
Cryptographer cryptographer(&encryptor_);
KeyParams params = {"localhost", "dummy", "dummy"};
cryptographer.AddKey(params);
EXPECT_TRUE(cryptographer.is_ready());
EXPECT_TRUE(cryptographer.Encrypt(original, &encrypted));
EXPECT_TRUE(cryptographer.GetKeys(&nigori));
}
{
Cryptographer cryptographer(&encryptor_);
EXPECT_FALSE(cryptographer.CanDecrypt(nigori));
cryptographer.SetPendingKeys(nigori);
EXPECT_FALSE(cryptographer.is_ready());
EXPECT_TRUE(cryptographer.has_pending_keys());
KeyParams params = {"localhost", "dummy", "dummy"};
EXPECT_TRUE(cryptographer.DecryptPendingKeys(params));
EXPECT_TRUE(cryptographer.is_ready());
EXPECT_FALSE(cryptographer.has_pending_keys());
sync_pb::PasswordSpecificsData decrypted;
EXPECT_TRUE(cryptographer.Decrypt(encrypted, &decrypted));
EXPECT_EQ(original.SerializeAsString(), decrypted.SerializeAsString());
}
}
TEST_F(CryptographerTest, Bootstrap) {
KeyParams params = {"localhost", "dummy", "dummy"};
cryptographer_.AddKey(params);
std::string token;
EXPECT_TRUE(cryptographer_.GetBootstrapToken(&token));
EXPECT_TRUE(IsStringUTF8(token));
Cryptographer other_cryptographer(&encryptor_);
other_cryptographer.Bootstrap(token);
EXPECT_TRUE(other_cryptographer.is_ready());
const char secret[] = "secret";
sync_pb::EncryptedData encrypted;
EXPECT_TRUE(other_cryptographer.EncryptString(secret, &encrypted));
EXPECT_TRUE(cryptographer_.CanDecryptUsingDefaultKey(encrypted));
}
} // namespace syncer
| [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
fc3c5ec3ed14cb798db7b3655a863203303995f2 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_3410.cpp | a230b01d0814cfac264df68387713ef3ec10336a | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | cpp | {
minLen = 32;
maxLen = 0;
for (i = 0; i < alphaSize; i++) {
if (s->len[t][i] > maxLen) maxLen = s->len[t][i];
if (s->len[t][i] < minLen) minLen = s->len[t][i];
}
AssertH ( !(maxLen > 17 /*20*/ ), 3004 );
AssertH ( !(minLen < 1), 3005 );
BZ2_hbAssignCodes ( &(s->code[t][0]), &(s->len[t][0]),
minLen, maxLen, alphaSize );
} | [
"993273596@qq.com"
] | 993273596@qq.com |
14c8def445f82281f8ad452d392be5a411e998ff | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/d2/d460c21a517b7d/main.cpp | 4662d7f1b1001cc29c42ad4a5aafece1d229bfb9 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 617 | cpp | // regex/regex1.cpp
#include <regex>
#include <iostream>
using namespace std;
void out (bool b)
{
cout << ( b ? "found" : "not found") << endl;
}
int main()
{
// find XML/HTML-tagged value (using defaultsyntax):
regex reg1("<.*>.*</.*>");
bool found = regex_match ("<tag>value</tag>", // data
reg1); //regular expression
out(found);
// find XML/HTML-tagged value (tags before and afterthe value must match):
regex reg2("<\\(.*\\)>.*</\\1>",regex_constants::grep);
found = regex_match ("<tag>value</tag>", reg2); //regular expression
out(found);
} | [
"francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df"
] | francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df |
4c7a4e29e404869979e718956dfbc8013d4479dc | 805639de9784c49ce728b37928f43c12e13a993d | /MFCApplication6/MFCApplication6Dlg.h | 1440ce09f7cfbb5b1a3e45ebc15182850f751d7c | [] | no_license | arter97/mfc_calc | 09fd0c0736dde296a34ca47fbdae3eac9eecd664 | 10a3f298b40a148ad65312bbe7555f960a9e0641 | refs/heads/master | 2020-03-21T09:12:47.114160 | 2018-06-24T12:19:13 | 2018-06-24T12:19:16 | 138,388,207 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,134 | h |
// MFCApplication6Dlg.h : 헤더 파일
//
#pragma once
// CMFCApplication6Dlg 대화 상자
class CMFCApplication6Dlg : public CDialogEx
{
// 생성입니다.
public:
CMFCApplication6Dlg(CWnd* pParent = NULL); // 표준 생성자입니다.
// 대화 상자 데이터입니다.
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_MFCAPPLICATION6_DIALOG };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
// 구현입니다.
protected:
HICON m_hIcon;
// 생성된 메시지 맵 함수
virtual BOOL OnInitDialog();
virtual BOOL PreTranslateMessage(MSG* pMsg);
void __UpdateData(BOOL val);
int returnLineCount(int font_size);
void setFontSize(int font_size);
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
CString m_input;
afx_msg void OnEnChangeEdit1();
afx_msg void OnBnClickedButton1();
afx_msg void OnBnClickedButton2();
afx_msg void OnBnClickedButton3();
afx_msg void OnBnClickedButton4();
afx_msg void OnBnClickedButton5();
afx_msg void OnBnClickedButton6();
afx_msg void OnBnClickedButton7();
afx_msg void OnBnClickedButton8();
afx_msg void OnBnClickedButton9();
afx_msg void OnBnClickedButton0();
afx_msg void OnBnClickedButtonAdd();
CString m_temp;
afx_msg void OnBnClickedButtonEqu();
CString m_op;
afx_msg void OnBnClickedButtonDot();
afx_msg void OnBnClickedButtonC();
afx_msg void OnBnClickedButtonDel();
afx_msg void OnBnClickedButtonLp();
afx_msg void OnBnClickedButtonRp();
afx_msg void OnBnClickedButtonFac();
afx_msg void OnBnClickedButtonTen();
afx_msg void OnBnClickedButtonRoot();
afx_msg void OnBnClickedButtonSqu();
afx_msg void OnBnClickedButtonPow();
afx_msg void OnBnClickedButtonSub();
afx_msg void OnBnClickedButtonMul();
afx_msg void OnBnClickedButtonDiv();
afx_msg void OnBnClickedButtonMod();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
double calc();
};
| [
"qkrwngud825@gmail.com"
] | qkrwngud825@gmail.com |
a60be28c446de2d976a55d19715b8e5116133ca8 | 706c324a4c7ba0a6682c1cfd99c9be488cb83562 | /libraries/blockchain/include/bts/blockchain/market_engine_v5.hpp | c3e6a7cb5f4a205b14c838c21ac965a10d170639 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | hubertFE/bitshares | 98d73767e452cbb30142defb266d83a4f40e9453 | 8c908f81510e7103b41323bcf5a5731047c59994 | refs/heads/master | 2021-05-29T00:14:39.687599 | 2015-01-22T22:07:45 | 2015-01-22T22:07:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,380 | hpp | #include <bts/blockchain/chain_database_impl.hpp>
namespace bts { namespace blockchain { namespace detail {
class market_engine_v5
{
public:
market_engine_v5( pending_chain_state_ptr ps, chain_database_impl& cdi );
bool execute( asset_id_type quote_id, asset_id_type base_id, const fc::time_point_sec timestamp );
private:
void cancel_all_shorts();
void push_market_transaction( const market_transaction& mtrx );
void cancel_current_short( market_transaction& mtrx, const asset_id_type quote_asset_id );
void pay_current_short( const market_transaction& mtrx, asset_record& quote_asset );
void pay_current_bid( const market_transaction& mtrx, asset_record& quote_asset );
void pay_current_cover( market_transaction& mtrx, asset_record& quote_asset );
void pay_current_ask( const market_transaction& mtrx, asset_record& base_asset );
bool get_next_short();
bool get_next_bid();
bool get_next_ask();
bool get_next_ask_v1();
/**
* This method should not affect market execution or validation and
* is for historical purposes only.
*/
void update_market_history( const asset& trading_volume,
const price& opening_price,
const price& closing_price,
const fc::time_point_sec timestamp );
pending_chain_state_ptr _pending_state;
pending_chain_state_ptr _prior_state;
chain_database_impl& _db_impl;
optional<market_order> _current_bid;
optional<market_order> _current_ask;
share_type _current_payoff_balance = 0;
asset_id_type _quote_id;
asset_id_type _base_id;
market_status _market_stat;
int _orders_filled = 0;
public:
vector<market_transaction> _market_transactions;
private:
bts::db::cached_level_map< market_index_key, order_record >::iterator _bid_itr;
bts::db::cached_level_map< market_index_key, order_record >::iterator _ask_itr;
bts::db::cached_level_map< market_index_key, order_record >::iterator _short_itr;
bts::db::cached_level_map< market_index_key, collateral_record >::iterator _collateral_itr;
};
} } } // end namespace bts::blockchain::detail
| [
"vikram@bitshares.org"
] | vikram@bitshares.org |
2d23c948b839d422a2f2a973ff3853a75dcb68f6 | 8e5837534b410735db1240446e01270414deaea3 | /Cards/Cards/Card.h | 9dc7bcaf009b8421474c12fa90677e7a187ac1be | [] | no_license | Ahmed-Mohamed7/Jungle_Game- | 203350f6223bd365c15de0186202fe514e47f45d | 5f58a5e36b0b8bc825a5af8c68b80d6280012de6 | refs/heads/master | 2023-02-11T17:18:01.565237 | 2021-01-16T22:54:51 | 2021-01-16T22:54:51 | 308,757,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,675 | h | #pragma once
#include "GameObject.h"
#include "Player.h"
// Base Class of All Types of Cards (CardOne, CardTwo, CardThree, ...etc.)
// Note: We will make each type of Card in a separate class because:
// it may have additional data members and functions like: Apply(), ...etc. which have different implementation depending on Card Number
class Card : public GameObject
{
protected:
int cardNumber; // an integer representing the card number
bool editAction;
public:
Card(const CellPosition & pos); // A Constructor for card that takes the cell position of it
void SetCardNumber(int cnum); // The setter of card number
int GetCardNumber() const; // The getter of card number //I addded word const ...
void setEditAction(bool state);
bool getEditAction() const;
void Draw(Output* pOut) const; // Draws the card number in the cell position of the card
// It has the same implementation for all Card Types (Non-Virtual)
virtual void ReadCardParameters(Grid * pGrid); // It reads the parameters specific for each Card Type
// It is a virtual function (implementation depends on Card Type)
virtual void Apply(Grid* pGrid, Player* pPlayer); // It applies the effect of the Card Type on the passed player
// It is a virtual function (implementation depends on Card Type)
virtual void Save(ofstream& OutFile, int type) override;
virtual void Load(ifstream& Infile, Grid* pGrid) override;
virtual void Read(ifstream& Infile) override;
virtual Card* Clone() const;
virtual ~Card(); // A Virtual Destructor
};
| [
"you@example.com"
] | you@example.com |
92a462be0c49e02ec0e8e8a369b499d5c73da895 | 3de35f177d0300ec8a70a4232d2326f533c3a978 | /Snake/Snake.cpp | 05b3bb3321dfa3b676a3da3d655d1445d0740e9c | [] | no_license | Sed1234/SnakeGame | 23082162a949cf5b9c4c44fbc4cecac6b4aa1037 | 9246ecf61fb259f078dbfc7bd399d0ee5d79da3f | refs/heads/master | 2020-03-19T06:40:34.878257 | 2018-06-20T14:00:44 | 2018-06-20T14:00:44 | 136,044,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | cpp | #include "Snake.h"
Snake::Snake()
{
sign = '*';
body.push_back(Pixel(5, 5));
direction = Default;
}
void Snake::move()
{
int x = 0, y = 0;
switch (direction) {
case Up:
y = -1;
break;
case Down:
y = 1;
break;
case Left:
x = -1;
break;
case Right:
x = 1;
break;
case Default:
return;
default:
break;
}
for (int i = body.size() - 1; i > 0; i--) {
body[i].x = body[i - 1].x;
body[i].y = body[i - 1].y;
}
body[0].x += x;
body[0].y += y;
}
void Snake::eat(Pixel pixel)
{
body.push_back(pixel);
}
bool Snake::willEatItself()
{
for (int i = 1; i < body.size(); ++i)
{
if (body[0] == body[i])
{
return true;
}
}
return false;
}
void Snake::clear()
{
for (Pixel pixel : body)
{
pixel.draw(' ');
}
}
Snake::~Snake()
{
} | [
"КимС@224_5"
] | КимС@224_5 |
932e8f56cf895cde48966a5f8a41e2fdabed57d5 | 7a4deab27b8247075f666bde3483247745daffc0 | /Tests/CxxTest/PalmCxxTests/src/cxxtest/TestRunner.h | 0852b424e898df3cef6a66d4e7fc24b612f0a26a | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | liuzhiping/libpalmsocket | 7f0c2114cb9285bd5898e00890248b41df8a5fec | 7ce5f4567cf1c2a75a45be9d800b1699e16a694c | refs/heads/master | 2021-01-18T09:15:13.891386 | 2012-08-31T01:09:09 | 2012-08-31T01:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,958 | h | /* @@@LICENSE
*
* Copyright (c) 2009-2011 Hewlett-Packard Development Company, L.P.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* LICENSE@@@ */
#ifndef __cxxtest_TestRunner_h__
#define __cxxtest_TestRunner_h__
//
// TestRunner is the class that runs all the tests.
// To use it, create an object that implements the TestListener
// interface and call TestRunner::runAllTests( myListener );
//
#include <cxxtest/TestListener.h>
#include <cxxtest/RealDescriptions.h>
#include <cxxtest/TestSuite.h>
#include <cxxtest/TestTracker.h>
namespace CxxTest
{
class TestRunner
{
public:
static void runAllTests( TestListener &listener )
{
tracker().setListener( &listener );
_TS_TRY { TestRunner().runWorld(); }
_TS_LAST_CATCH( { tracker().failedTest( __FILE__, __LINE__, "Exception thrown from world" ); } );
tracker().setListener( 0 );
}
static void runAllTests( TestListener *listener )
{
if ( listener ) {
listener->warning( __FILE__, __LINE__, "Deprecated; Use runAllTests( TestListener & )" );
runAllTests( *listener );
}
}
private:
void runWorld()
{
RealWorldDescription wd;
WorldGuard sg;
tracker().enterWorld( wd );
if ( wd.setUp() ) {
for ( SuiteDescription *sd = wd.firstSuite(); sd; sd = sd->next() )
if ( sd->active() )
runSuite( *sd );
wd.tearDown();
}
tracker().leaveWorld( wd );
}
void runSuite( SuiteDescription &sd )
{
StateGuard sg;
tracker().enterSuite( sd );
if ( sd.setUp() ) {
for ( TestDescription *td = sd.firstTest(); td; td = td->next() )
if ( td->active() )
runTest( *td );
sd.tearDown();
}
tracker().leaveSuite( sd );
}
void runTest( TestDescription &td )
{
StateGuard sg;
tracker().enterTest( td );
if ( td.setUp() ) {
td.run();
td.tearDown();
}
tracker().leaveTest( td );
}
class StateGuard
{
#ifdef _CXXTEST_HAVE_EH
bool _abortTestOnFail;
#endif // _CXXTEST_HAVE_EH
unsigned _maxDumpSize;
public:
StateGuard()
{
#ifdef _CXXTEST_HAVE_EH
_abortTestOnFail = abortTestOnFail();
#endif // _CXXTEST_HAVE_EH
_maxDumpSize = maxDumpSize();
}
~StateGuard()
{
#ifdef _CXXTEST_HAVE_EH
setAbortTestOnFail( _abortTestOnFail );
#endif // _CXXTEST_HAVE_EH
setMaxDumpSize( _maxDumpSize );
}
};
class WorldGuard : public StateGuard
{
public:
WorldGuard() : StateGuard()
{
#ifdef _CXXTEST_HAVE_EH
setAbortTestOnFail( CXXTEST_DEFAULT_ABORT );
#endif // _CXXTEST_HAVE_EH
setMaxDumpSize( CXXTEST_MAX_DUMP_SIZE );
}
};
};
//
// For --no-static-init
//
void initialize();
};
#endif // __cxxtest_TestRunner_h__
| [
"sapna.todwal@palm.com"
] | sapna.todwal@palm.com |
380a30180c5bd17286f3cdcd8b1342e85d4f1b59 | 5b14dac27d397c2ac27d844803125057933588ac | /구현/순열의순서_1722.cpp | c25425db32494b48d2d98c2ecd82c655055f7d06 | [] | no_license | 201311113/BaekjoonCode | f00aafa98c057f0eeed409e512852165b1865846 | 7ed7eb4cc09bd91d79e71ac270b1bd555c965e22 | refs/heads/master | 2020-06-23T11:21:41.299124 | 2020-05-06T10:24:05 | 2020-05-06T10:24:05 | 198,607,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,122 | cpp | #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstring>
#include<string>
#include<cstdio>
#include<stack>
#include<algorithm>
#include<cmath>
#include<vector>
#include<queue>
#include<ctime>
#include<set>
#include<sstream>
using namespace std;
typedef long long ll;
bool chk[22];
int arr2[22];
int main() {
ll n,num;
cin >> n >> num;
if (num == 1) {
cin >> num;
num--;
for (int i = n - 1; i >= 0; i--) {
ll tmp = 1;
for (int j = i; j >= 1; j--) {
tmp *= j;
}
ll ttmp = num / tmp;
for (int j = 1; j <= n; j++) {
if (!chk[j]) {
if (ttmp == 0) {
cout << j << " ";
chk[j] = 1;
break;
}
ttmp--;
}
}
num %= tmp;
}
}
else {
ll ans = 1;
for (int i = 1; i <= n; i++) {
cin >> arr2[i];
}
for (int i = 1; i <= n; i++) {
ll tmp = 1;
ll pivot = 1;
for (int j = n - i; j > 0; j--) {
pivot *= j;
}
ll ord = 0;
for (int j = 1; j <= n; j++) {
if (!chk[j]) {
if (arr2[i] == j) {
chk[j] = 1;
break;
}
else ord++;
}
}
tmp *= ord * pivot;
ans += tmp;
}
cout << ans;
}
} | [
"antjdlekd123@naver.com"
] | antjdlekd123@naver.com |
a7b49061158ac2c7d26d8a4ea600150d9e6ad32b | 40da2190aca6e5ab3f27bb650a798d94000497ba | /klinSource/Core/Object.h | 1bd43b3302180b2664af94d4ef0e8edbcc60174a | [] | no_license | LiuYiZhou95/CoolRender | e47a7deb501e82a6b7ca9a103acea0ba309c6dc5 | 8069e6f5d06eae7042d0f5544164bae1c1aec649 | refs/heads/master | 2020-08-07T16:55:38.770353 | 2019-10-08T02:34:50 | 2019-10-08T02:34:50 | 213,531,163 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,653 | h | //
//
#pragma once
#include <cassert>
#include "Common.h"
#include <vector>
#include <memory>
class Context;
//
class TypeInfo
{
public:
//typeName 是常量指针, 指向常量,能改变指向,不能改变指向的对象,只能通过原来的声明来改变
TypeInfo(const char* typeName , const TypeInfo* baseTypeInfo);
~TypeInfo();
// 检查当前类型是否是指定类型
bool isTypeOf(const TypeInfo* typeInfo) const;//不管对象是不是用const限定的都可以调用,但是函数内部不允许修改对象的成员(用mutable限定的成员除外)
//模板方法
template <typename T> bool isTypeOf() const
{
return isTypeOf(T::getTypeInfoStatic());
}
string getType() const
{
return type_;
}
const string& getTypeName() const
{
return typeName_;
}
const TypeInfo* getBaseTypeInfo() const
{
return baseTypeInfo_;
}
private:
string type_;
string typeName_;
const TypeInfo* baseTypeInfo_;
};
//宏定义函数,避免了重复在子类中写这些虚函数方法
#define ENGINE_OBJECT(typeName,baseTypeName)\
public:\
typedef typeName ClassName;\
typedef baseTypeName BaseClassName;\
virtual string getType() const{ return getTypeInfoStatic()->getType();}\
virtual const string& getTypeName() const { return getTypeInfoStatic()->getTypeName(); }\
virtual const TypeInfo* getTypeInfo() const { return getTypeInfoStatic(); }\
static string getTypeStatic() { return getTypeInfoStatic()->getType(); }\
static const string& getTypeNameStatic() { return getTypeInfoStatic()->getTypeName(); }\
static const TypeInfo* getTypeInfoStatic(){static const TypeInfo typeInfoStatic(#typeName,BaseClassName::getTypeInfoStatic()); return &typeInfoStatic;};
class Object
{
friend class Context;
public:
Object(Context* context);
virtual ~Object();
/// Return type hash.
virtual string getType() const = 0;
/// Return type name.
virtual const string& getTypeName() const = 0;
/// Return type info.
virtual const TypeInfo* getTypeInfo() const = 0;
/// Return type info static.
static const TypeInfo* getTypeInfoStatic() { return 0; }
Object* getSubsystem(string typeName) const;
Context* getContext() const
{
return context_;
}
template <class T> T* getSubsystem() const;
protected:
Context* context_;
private:
};
template <class T> T* Object::getSubsystem() const
{
return static_cast<T*>(getSubsystem(T::getTypeNameStatic()));
}
| [
"liuyizhou_action@163.com"
] | liuyizhou_action@163.com |
f7bb0f426545814d27e9a43ef858bcc1b67df9b1 | 791eedd78b9fe753f998020efb9ff9d0270cd8d3 | /CPP/STROUSTRUP/Stroustrup11/Stroustrup11/2. strings_and_getline.cpp | 2804082be85e41e150ce8eb5f306ced7deb6da8d | [] | no_license | pavel-prykhodko96/source | 6214c212356ffa420bbc489adce104268f5efa12 | 77219b672bb14df93abd7b8203f486d0620533d8 | refs/heads/master | 2023-03-07T21:43:17.422232 | 2023-02-23T12:06:52 | 2023-02-23T12:06:52 | 248,736,899 | 0 | 0 | null | 2023-02-23T12:06:54 | 2020-03-20T11:16:45 | C | UTF-8 | C++ | false | false | 475 | cpp |
#include "pch.h"
#include "../../../std_lib_facilities.h"
//out the strings with certain word
//with number of string
int main()
{
string iname;
cin >> iname;
fstream ifs(iname, ios_base::in);
int counter(0);
string word;
cin >> word;
string data, cur_word;
while (getline(ifs, data))
{
stringstream buffer(data);
while (buffer >> cur_word)
{
if (cur_word == word)
{
cout << counter << ". " << data << endl;
break;
}
}
++counter;
}
} | [
"47929311+pavel-prykhodko96@users.noreply.github.com"
] | 47929311+pavel-prykhodko96@users.noreply.github.com |
0d9086d88266ac569d0ca758d9ea346810167adf | b28305dab0be0e03765c62b97bcd7f49a4f8073d | /gpu/ipc/command_buffer_task_executor.h | 0e593ae78e81862ba9c6992c4723f96646f56058 | [
"BSD-3-Clause"
] | permissive | svarvel/browser-android-tabs | 9e5e27e0a6e302a12fe784ca06123e5ce090ced5 | bd198b4c7a1aca2f3e91f33005d881f42a8d0c3f | refs/heads/base-72.0.3626.105 | 2020-04-24T12:16:31.442851 | 2019-08-02T19:15:36 | 2019-08-02T19:15:36 | 171,950,555 | 1 | 2 | NOASSERTION | 2019-08-02T19:15:37 | 2019-02-21T21:47:44 | null | UTF-8 | C++ | false | false | 6,330 | h | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GPU_IPC_COMMAND_BUFFER_TASK_EXECUTOR_H_
#define GPU_IPC_COMMAND_BUFFER_TASK_EXECUTOR_H_
#include <memory>
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "gpu/command_buffer/common/activity_flags.h"
#include "gpu/command_buffer/common/sync_token.h"
#include "gpu/command_buffer/service/framebuffer_completeness_cache.h"
#include "gpu/command_buffer/service/image_manager.h"
#include "gpu/command_buffer/service/passthrough_discardable_manager.h"
#include "gpu/command_buffer/service/sequence_id.h"
#include "gpu/command_buffer/service/service_discardable_manager.h"
#include "gpu/command_buffer/service/shader_translator_cache.h"
#include "gpu/command_buffer/service/shared_image_manager.h"
#include "gpu/config/gpu_feature_info.h"
#include "gpu/config/gpu_preferences.h"
#include "gpu/ipc/gl_in_process_context_export.h"
#include "ui/gl/gl_surface_format.h"
namespace gl {
class GLShareGroup;
}
namespace gpu {
class MailboxManager;
class SyncPointManager;
namespace gles2 {
class Outputter;
class ProgramCache;
} // namespace gles2
// Provides accessors for GPU service objects and the serializer interface to
// the GPU thread used by InProcessCommandBuffer.
class GL_IN_PROCESS_CONTEXT_EXPORT CommandBufferTaskExecutor
: public base::RefCountedThreadSafe<CommandBufferTaskExecutor> {
public:
// Represents a single task execution sequence. Tasks posted to a sequence are
// run in order. Tasks across sequences should be synchronized using sync
// tokens. Destroying the sequence will drop tasks which haven't been executed
// yet.
class GL_IN_PROCESS_CONTEXT_EXPORT Sequence {
public:
virtual ~Sequence() {}
// Returns identifier used for identifying sync tokens with this sequence,
// and for scheduling.
virtual SequenceId GetSequenceId() = 0;
// Returns true if sequence should yield while running its current task.
virtual bool ShouldYield() = 0;
// Enables or disables further execution of tasks in this sequence.
virtual void SetEnabled(bool enabled) = 0;
// Schedule a task with provided sync token dependencies. The dependencies
// are hints for sync token waits within the task, and can be ignored by the
// implementation.
virtual void ScheduleTask(base::OnceClosure task,
std::vector<SyncToken> sync_token_fences) = 0;
// Continue running the current task after yielding execution.
virtual void ContinueTask(base::OnceClosure task) = 0;
};
CommandBufferTaskExecutor(const GpuPreferences& gpu_preferences,
const GpuFeatureInfo& gpu_feature_info,
SyncPointManager* sync_point_manager,
MailboxManager* mailbox_manager,
scoped_refptr<gl::GLShareGroup> share_group,
gl::GLSurfaceFormat share_group_surface_format);
// Always use virtualized GL contexts if this returns true.
virtual bool ForceVirtualizedGLContexts() const = 0;
// Creates a memory tracker for the context group if this returns true.
virtual bool ShouldCreateMemoryTracker() const = 0;
// Block thread when a WaitSyncToken command is encountered instead of calling
// OnWaitSyncToken().
virtual bool BlockThreadOnWaitSyncToken() const = 0;
// Schedules |task| to run out of order with respect to other sequenced tasks.
virtual void ScheduleOutOfOrderTask(base::OnceClosure task) = 0;
// Schedules |task| to run at an appropriate time for performing delayed work.
virtual void ScheduleDelayedWork(base::OnceClosure task) = 0;
// Returns a new task execution sequence. Sequences should not outlive the
// task executor.
virtual std::unique_ptr<Sequence> CreateSequence() = 0;
const GpuPreferences& gpu_preferences() const { return gpu_preferences_; }
const GpuFeatureInfo& gpu_feature_info() const { return gpu_feature_info_; }
gl::GLSurfaceFormat share_group_surface_format() const {
return share_group_surface_format_;
}
SyncPointManager* sync_point_manager() const { return sync_point_manager_; }
MailboxManager* mailbox_manager() const { return mailbox_manager_; }
// Not const because these return inner pointers.
gles2::ImageManager* image_manager() { return &image_manager_; }
ServiceDiscardableManager* discardable_manager() {
return &discardable_manager_;
}
PassthroughDiscardableManager* passthrough_discardable_manager() {
return &passthrough_discardable_manager_;
}
gles2::ShaderTranslatorCache* shader_translator_cache() {
return &shader_translator_cache_;
}
gles2::FramebufferCompletenessCache* framebuffer_completeness_cache() {
return &framebuffer_completeness_cache_;
}
SharedImageManager* shared_image_manager() { return &shared_image_manager_; }
// These methods construct accessed fields if not already initialized.
scoped_refptr<gl::GLShareGroup> share_group();
gles2::Outputter* outputter();
gles2::ProgramCache* program_cache();
protected:
friend class base::RefCountedThreadSafe<CommandBufferTaskExecutor>;
virtual ~CommandBufferTaskExecutor();
private:
const GpuPreferences gpu_preferences_;
const GpuFeatureInfo gpu_feature_info_;
std::unique_ptr<MailboxManager> owned_mailbox_manager_;
SyncPointManager* sync_point_manager_;
MailboxManager* mailbox_manager_;
std::unique_ptr<gles2::Outputter> outputter_;
scoped_refptr<gl::GLShareGroup> share_group_;
gl::GLSurfaceFormat share_group_surface_format_;
std::unique_ptr<gles2::ProgramCache> program_cache_;
gles2::ImageManager image_manager_;
ServiceDiscardableManager discardable_manager_;
PassthroughDiscardableManager passthrough_discardable_manager_;
gles2::ShaderTranslatorCache shader_translator_cache_;
gles2::FramebufferCompletenessCache framebuffer_completeness_cache_;
SharedImageManager shared_image_manager_;
// No-op default initialization is used in in-process mode.
GpuProcessActivityFlags activity_flags_;
DISALLOW_COPY_AND_ASSIGN(CommandBufferTaskExecutor);
};
} // namespace gpu
#endif // GPU_IPC_COMMAND_BUFFER_TASK_EXECUTOR_H_
| [
"artem@brave.com"
] | artem@brave.com |
08068fa5dd55dba24c18ca3fe3c4791df2a935d1 | d017b807b3753800feef6b8077d084b460027e46 | /cpp/Segmentation/HoleFillTool.h | f3a803b6011fd26c8cd01b35a27e537abdfe1c65 | [] | no_license | awturner/awturner-phd | de64cc0c23e1195df59ea9ac6ebfa8e24ee55f88 | d8280b5602476565d97586854566c93fefe1d431 | refs/heads/master | 2016-09-06T04:47:14.802338 | 2011-06-02T22:33:27 | 2011-06-02T22:33:27 | 32,140,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,169 | h | /*
* ################################################################################
* ### MIT License
* ################################################################################
*
* Copyright (c) 2006-2011 Andy Turner
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef __HOLEFILLTOOL_H__
#define __HOLEFILLTOOL_H__
#include "DrawingTool.h"
#include <vector>
namespace AWT
{
template <class T, class ScanT, unsigned int V>
class HoleFillTool : public DrawingTool<T,ScanT,V>
{
public:
HoleFillTool(CommandManager* m);
virtual char* getName() const;
virtual bool onMouseButton(const int x, const int y, const int z, const int button);
protected:
};
}
using namespace AWT;
using namespace cimg_library;
template <class T, class ScanT, unsigned int V>
AWT::HoleFillTool<T,ScanT,V>::HoleFillTool(AWT::CommandManager* m)
: AWT::DrawingTool<T,ScanT,V>::DrawingTool(m)
{
}
template <class T, class ScanT, unsigned int V>
char* AWT::HoleFillTool<T,ScanT,V>::getName() const
{
return "Hole Fill";
}
template <class T, class ScanT, unsigned int V>
bool AWT::HoleFillTool<T,ScanT,V>::onMouseButton(const int mx, const int my, const int mz, const int button)
{
//DEBUGMACRO("onMouseButton");
if (m_CurrentImage != 0 && !button)
{
CImg<T> im = m_CurrentImage->get_shared_plane(mz);
CImg<T> tmp (im.dimx(), im.dimy(), im.dimz());
CImg<T> region(im.dimx(), im.dimy(), im.dimz());
tmp.fill(0);
T fg[V], bg[V];
getForegroundColour(fg);
getBackgroundColour(bg);
bool isSame;
cimg_forXY(tmp, x, y)
{
isSame = true;
cimg_forV(im, v)
{
if (im(x, y, 0, v) != bg[v])
{
isSame = false;
break;
}
}
if (isSame)
tmp(x, y) = 1;
}
T fill[] = { 0 };
tmp.draw_fill(mx, my, 0, fill, region);
cimg_forXY(tmp, x, y)
{
if (tmp(x, y))
cimg_forV(im, v)
im(x, y, 0, v) = fg[v];
}
return true;
}
return false;
}
#endif // __HOLEFILLTOOL_H__ | [
"andy.w.turner@gmail.com@8ccf9804-531a-5bdb-f4a8-09d094668cd7"
] | andy.w.turner@gmail.com@8ccf9804-531a-5bdb-f4a8-09d094668cd7 |
f3b775e75cda3c0a23f863bc9040f6418874aa6b | 6c77cf237697f252d48b287ae60ccf61b3220044 | /aws-cpp-sdk-rds/source/model/SourceType.cpp | 51d10d4075d7aa0a04fa9842efae1dc2efd520f8 | [
"MIT",
"Apache-2.0",
"JSON"
] | permissive | Gohan/aws-sdk-cpp | 9a9672de05a96b89d82180a217ccb280537b9e8e | 51aa785289d9a76ac27f026d169ddf71ec2d0686 | refs/heads/master | 2020-03-26T18:48:43.043121 | 2018-11-09T08:44:41 | 2018-11-09T08:44:41 | 145,232,234 | 1 | 0 | Apache-2.0 | 2018-08-30T13:42:27 | 2018-08-18T15:42:39 | C++ | UTF-8 | C++ | false | false | 3,625 | cpp | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#include <aws/rds/model/SourceType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace RDS
{
namespace Model
{
namespace SourceTypeMapper
{
static const int db_instance_HASH = HashingUtils::HashString("db-instance");
static const int db_parameter_group_HASH = HashingUtils::HashString("db-parameter-group");
static const int db_security_group_HASH = HashingUtils::HashString("db-security-group");
static const int db_snapshot_HASH = HashingUtils::HashString("db-snapshot");
static const int db_cluster_HASH = HashingUtils::HashString("db-cluster");
static const int db_cluster_snapshot_HASH = HashingUtils::HashString("db-cluster-snapshot");
SourceType GetSourceTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == db_instance_HASH)
{
return SourceType::db_instance;
}
else if (hashCode == db_parameter_group_HASH)
{
return SourceType::db_parameter_group;
}
else if (hashCode == db_security_group_HASH)
{
return SourceType::db_security_group;
}
else if (hashCode == db_snapshot_HASH)
{
return SourceType::db_snapshot;
}
else if (hashCode == db_cluster_HASH)
{
return SourceType::db_cluster;
}
else if (hashCode == db_cluster_snapshot_HASH)
{
return SourceType::db_cluster_snapshot;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<SourceType>(hashCode);
}
return SourceType::NOT_SET;
}
Aws::String GetNameForSourceType(SourceType enumValue)
{
switch(enumValue)
{
case SourceType::db_instance:
return "db-instance";
case SourceType::db_parameter_group:
return "db-parameter-group";
case SourceType::db_security_group:
return "db-security-group";
case SourceType::db_snapshot:
return "db-snapshot";
case SourceType::db_cluster:
return "db-cluster";
case SourceType::db_cluster_snapshot:
return "db-cluster-snapshot";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return "";
}
}
} // namespace SourceTypeMapper
} // namespace Model
} // namespace RDS
} // namespace Aws
| [
"henso@amazon.com"
] | henso@amazon.com |
eb04e8d08d11b58c66cfa13563db711ee16b2cd0 | 2d46a63b9949ddf6efc6755c3a07ca1427ec1275 | /firmware/old stuff/MyApplication1/generated/gui_generated/src/screen1_screen/Screen1ViewBase.cpp | 9c75b9fcdd95b084abf0ef476c90c04aa03bd942 | [] | no_license | xinghuaman/Klanghabitat_Quantum | 6f02ce60afb7a0a4d0a6a53d42c8e034611c407e | b5aa9261b4ad98d911953cb40bfdadb0b7932d0d | refs/heads/master | 2023-04-15T01:05:42.732026 | 2021-04-21T14:35:20 | 2021-04-21T14:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,872 | cpp | /*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/screen1_screen/Screen1ViewBase.hpp>
#include <touchgfx/Color.hpp>
#include "BitmapDatabase.hpp"
#include <texts/TextKeysAndLanguages.hpp>
Screen1ViewBase::Screen1ViewBase() :
radioButtonSelectedCallback(this, &Screen1ViewBase::radioButtonSelectedCallbackHandler),
updateItemCallback(this, &Screen1ViewBase::updateItemCallbackHandler)
{
boxBackground.setPosition(0, 0, 800, 480);
boxBackground.setVisible(false);
boxBackground.setColor(touchgfx::Color::getColorFrom24BitRGB(0, 0, 0));
background.setXY(0, 0);
background.setBitmap(Bitmap(BITMAP_BLUE_BACKGROUNDS_MAIN_BG_TEXTURE_800X480PX_ID));
scrollBg.setXY(400, 375);
scrollBg.setBitmap(Bitmap(BITMAP_SCROLLBG_ID));
scrollList.setPosition(0, 0, 100, 480);
scrollList.setHorizontal(false);
scrollList.setCircular(true);
scrollList.setEasingEquation(EasingEquations::cubicEaseOut);
scrollList.setSwipeAcceleration(10);
scrollList.setDragAcceleration(10);
scrollList.setNumberOfItems(14);
scrollList.setPadding(0, 0);
scrollList.setSnapping(false);
scrollList.setDrawableSize(75, 0);
scrollList.setDrawables(scrollListListItems, updateItemCallback);
scrollWheel.setPosition(42, 35, 396, 75);
scrollWheel.setHorizontal(true);
scrollWheel.setCircular(false);
scrollWheel.setEasingEquation(EasingEquations::cubicEaseOut);
scrollWheel.setSwipeAcceleration(40);
scrollWheel.setDragAcceleration(10);
scrollWheel.setNumberOfItems(61);
scrollWheel.setSelectedItemOffset(153);
scrollWheel.setSelectedItemExtraSize(0, 0);
scrollWheel.setSelectedItemMargin(0, 0);
scrollWheel.setDrawableSize(90, 0);
scrollWheel.setDrawables(scrollWheelListItems, updateItemCallback,
scrollWheelSelectedListItems, updateItemCallback);
scrollWheel.animateToItem(0, 0);
scrollWheel.setVisible(false);
selectedIcon.setXY(400, 129);
selectedIcon.setBitmap(Bitmap(BITMAP_ALERT_ID));
selectedVal.setPosition(208, 150, 64, 60);
selectedVal.setVisible(false);
selectedVal.setColor(touchgfx::Color::getColorFrom24BitRGB(213, 115, 0));
selectedVal.setLinespacing(0);
Unicode::snprintf(selectedValBuffer, SELECTEDVAL_SIZE, "%s", TypedText(T_SINGLEUSEID6).getText());
selectedVal.setWildcard(selectedValBuffer);
selectedVal.setTypedText(TypedText(T_SINGLEUSEID1));
selectText.setPosition(40, 129, 400, 25);
selectText.setColor(touchgfx::Color::getColorFrom24BitRGB(255, 138, 0));
selectText.setLinespacing(0);
selectText.setTypedText(TypedText(T_HEADLINE_SCROLLLIST));
scrollWheelFrame.setXY(192, 31);
scrollWheelFrame.setVisible(false);
scrollWheelFrame.setBitmap(Bitmap(BITMAP_SCROLL_WHEEL_FRAME_ID));
changeScrollListText.setXY(300, 227);
changeScrollListText.setColor(touchgfx::Color::getColorFrom24BitRGB(255, 138, 0));
changeScrollListText.setLinespacing(0);
changeScrollListText.setTypedText(TypedText(T_SINGLEUSEID7));
mask.setXY(400, 276);
mask.setBitmap(Bitmap(BITMAP_MASK_ID));
radioButtonScrollWheel.setXY(189, 217);
radioButtonScrollWheel.setBitmaps(Bitmap(BITMAP_RADIO_BUTTON_UNSELECTED_ID), Bitmap(BITMAP_RADIO_BUTTON_UNSELECTED_PRESSED_ID), Bitmap(BITMAP_RADIO_BUTTON_SELECTED_ID), Bitmap(BITMAP_RADIO_BUTTON_SELECTED_PRESSED_ID));
radioButtonScrollWheel.setSelected(false);
radioButtonScrollWheel.setDeselectionEnabled(false);
radioButtonScrollList.setXY(253, 217);
radioButtonScrollList.setBitmaps(Bitmap(BITMAP_RADIO_BUTTON_UNSELECTED_ID), Bitmap(BITMAP_RADIO_BUTTON_UNSELECTED_PRESSED_ID), Bitmap(BITMAP_RADIO_BUTTON_SELECTED_ID), Bitmap(BITMAP_RADIO_BUTTON_SELECTED_PRESSED_ID));
radioButtonScrollList.setSelected(true);
radioButtonScrollList.setDeselectionEnabled(false);
changeScrollWheelText.setXY(86, 228);
changeScrollWheelText.setColor(touchgfx::Color::getColorFrom24BitRGB(255, 138, 0));
changeScrollWheelText.setLinespacing(0);
changeScrollWheelText.setTypedText(TypedText(T_SINGLEUSEID8));
add(boxBackground);
add(background);
add(scrollBg);
add(scrollList);
add(scrollWheel);
add(selectedIcon);
add(selectedVal);
add(selectText);
add(scrollWheelFrame);
add(changeScrollListText);
add(mask);
add(radioButtonScrollWheel);
add(radioButtonScrollList);
add(changeScrollWheelText);
radioButtonGroup.add(radioButtonScrollWheel);
radioButtonGroup.add(radioButtonScrollList);
radioButtonGroup.setRadioButtonSelectedHandler(radioButtonSelectedCallback);
}
void Screen1ViewBase::setupScreen()
{
scrollList.initialize();
for (int i = 0; i < scrollListListItems.getNumberOfDrawables(); i++)
{
scrollListListItems[i].initialize();
}
scrollWheel.initialize();
for (int i = 0; i < scrollWheelListItems.getNumberOfDrawables(); i++)
{
scrollWheelListItems[i].initialize();
}
for (int i = 0; i < scrollWheelSelectedListItems.getNumberOfDrawables(); i++)
{
scrollWheelSelectedListItems[i].initialize();
}
}
void Screen1ViewBase::radioButtonSelectedCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &radioButtonScrollWheel)
{
//scrollWheelSelectedInteractionInteraction1
//When radioButtonScrollWheel selected call virtual function
//Call scrollWheelSelected
scrollWheelSelected();
}
else if (&src == &radioButtonScrollList)
{
//scrollListSelectedInteraction
//When radioButtonScrollList selected call virtual function
//Call scrollListSelected
scrollListSelected();
}
}
void Screen1ViewBase::updateItemCallbackHandler(DrawableListItemsInterface* items, int16_t containerIndex, int16_t itemIndex)
{
if (items == &scrollListListItems)
{
Drawable* d = items->getDrawable(containerIndex);
imageContainer* cc = (imageContainer*)d;
scrollListUpdateItem(*cc, itemIndex);
}
else if (items == &scrollWheelListItems)
{
Drawable* d = items->getDrawable(containerIndex);
textContainer* cc = (textContainer*)d;
scrollWheelUpdateItem(*cc, itemIndex);
}
else if (items == &scrollWheelSelectedListItems)
{
Drawable* d = items->getDrawable(containerIndex);
textCenterContainer* cc = (textCenterContainer*)d;
scrollWheelUpdateCenterItem(*cc, itemIndex);
}
}
| [
"sagerchr@googlemail.com"
] | sagerchr@googlemail.com |
5048d6b6de1132c7a1f7fddbab49c1290780a139 | 108c2b4b662962786d1f727831251790d8d38162 | /src/libcartobase/object/lexicon.h | c676bcb7d6a6704bd901ffd7c7a9593779ee58dd | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | brainvisa/soma-io | 105adbaccc5f06d6773ee894f30baec35c48a403 | d22e9d27f6e0696e234a6e33f7fbd9fa4620adc1 | refs/heads/master | 2023-08-04T18:46:57.728163 | 2023-07-28T16:53:08 | 2023-07-28T16:53:08 | 155,413,952 | 3 | 4 | NOASSERTION | 2023-07-28T16:53:09 | 2018-10-30T15:55:17 | C++ | UTF-8 | C++ | false | false | 2,724 | h | /* This software and supporting documentation are distributed by
* Institut Federatif de Recherche 49
* CEA/NeuroSpin, Batiment 145,
* 91191 Gif-sur-Yvette cedex
* France
*
* This software is governed by the CeCILL-B license under
* French law and abiding by the rules of distribution of free software.
* You can use, modify and/or redistribute the software under the
* terms of the CeCILL-B license as circulated by CEA, CNRS
* and INRIA at the following URL "http://www.cecill.info".
*
* As a counterpart to the access to the source code and rights to copy,
* modify and redistribute granted by the license, users are provided only
* with a limited warranty and the software's author, the holder of the
* economic rights, and the successive licensors have only limited
* liability.
*
* In this respect, the user's attention is drawn to the risks associated
* with loading, using, modifying and/or developing or reproducing the
* software by the user in light of its specific status of free software,
* that may mean that it is complicated to manipulate, and that also
* therefore means that it is reserved for developers and experienced
* professionals having in-depth computer knowledge. Users are therefore
* encouraged to load and test the software's suitability as regards their
* requirements in conditions enabling the security of their systems and/or
* data to be ensured and, more generally, to use and operate it in the
* same conditions as regards security.
*
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-B license and that you accept its terms.
*/
#ifndef CARTOBASE_OBJECT_LEXICON_H
#define CARTOBASE_OBJECT_LEXICON_H
//--- header files ------------------------------------------------------------
#include <string>
namespace carto
{
//--- class declarations ----------------------------------------------------
class CARTOBASE_API Lexicon
{
public:
static const std::string begin() { return "*BEGIN"; };
static const std::string end() { return "*END"; };
static const std::string syntax() { return "SYNTAX"; };
static const std::string properties() { return "ATTRIBUTES_TABLE"; };
static const std::string rules() { return "RULES_TABLE"; };
static const std::string rule() { return "RULE"; };
static const std::string graph() { return "GRAPH"; };
static const std::string vertex() { return "NODE"; };
static const std::string uedge() { return "UEDGE"; };
static const std::string dedge() { return "DEDGE"; };
static const std::string tree() { return "TREE"; }
static const std::string version() { return "1.0"; };
};
}
#endif
| [
"yann@cointepas.net"
] | yann@cointepas.net |
47a529958a659aa79955b23b52e455cbaee6a443 | 8db51c683ffd64483126dd18b5ec3ecb8845b25d | /RunningADcMotorAtDifferentSpeeds.ino | 073f5fd6a94716f06f796ddd31d7fdb7297cc7da | [] | no_license | gittcoder/ARDUINO-BASICS | a34baa0732988e19940decbfa522b379809ec6d9 | bd4718c37f7f818bbdd8c5ad9bf946075df3fd58 | refs/heads/master | 2023-03-12T18:53:10.673127 | 2021-02-23T14:42:49 | 2021-02-23T14:42:49 | 334,716,374 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373 | ino | int motorPin=9;
void setup()
{
pinMode(motorPin, OUTPUT);
}
void loop()
{
//Accelerate motor from 0 to 255
for( int i =0;i<=255;i++)
{
analogWrite(motorPin,i);
delay(10);
}
//Hold at top speed
delay(500);
//decrease from 255 to 0
for( int i =255;i>=0;i--)
{
analogWrite(motorPin,i);
delay(10);
}
//hold at zero
delay(500);
} | [
"adityaavinash.n2020@vitstudent.ac.in"
] | adityaavinash.n2020@vitstudent.ac.in |
b5feaf93689c9c2fce1ac6c05aa5e6fb6cebb007 | bd498cbbb28e33370298a84b693f93a3058d3138 | /Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/mkldnn/src/common/inner_product_pd.hpp | c9df5c0264945eeb64a8dd90a378bfede848de43 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Zlib",
"BSD-2-Clause-Views",
"NCSA",
"OFL-1.0",
"Unlicense",
"BSL-1.0",
"BSD-2-Clause",
"MIT",
"Intel"
] | permissive | piyushghai/training_results_v0.7 | afb303446e75e3e9789b0f6c40ce330b6b83a70c | e017c9359f66e2d814c6990d1ffa56654a73f5b0 | refs/heads/master | 2022-12-19T16:50:17.372320 | 2020-09-24T01:02:00 | 2020-09-24T18:01:01 | 298,127,245 | 0 | 1 | Apache-2.0 | 2020-09-24T00:27:21 | 2020-09-24T00:27:21 | null | UTF-8 | C++ | false | false | 10,221 | hpp | /*******************************************************************************
* Copyright 2016-2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
#ifndef INNER_PRODUCT_PD_HPP
#define INNER_PRODUCT_PD_HPP
#include "mkldnn.h"
#include "c_types_map.hpp"
#include "primitive_desc.hpp"
#include "utils.hpp"
namespace mkldnn {
namespace impl {
memory_desc_t *ip_prop_invariant_src_d(inner_product_desc_t *desc);
memory_desc_t *ip_prop_invariant_wei_d(inner_product_desc_t *desc);
memory_desc_t *ip_prop_invariant_bia_d(inner_product_desc_t *desc);
memory_desc_t *ip_prop_invariant_dst_d(inner_product_desc_t *desc);
const memory_desc_t *ip_prop_invariant_src_d(const inner_product_desc_t *desc);
const memory_desc_t *ip_prop_invariant_wei_d(const inner_product_desc_t *desc);
const memory_desc_t *ip_prop_invariant_bia_d(const inner_product_desc_t *desc);
const memory_desc_t *ip_prop_invariant_dst_d(const inner_product_desc_t *desc);
struct inner_product_fwd_pd_t;
struct inner_product_pd_t: public primitive_desc_t {
static constexpr auto base_pkind = primitive_kind::inner_product;
inner_product_pd_t(engine_t *engine,
const inner_product_desc_t *adesc,
const primitive_attr_t *attr,
const inner_product_fwd_pd_t *hint_fwd_pd)
: primitive_desc_t(engine, attr, base_pkind)
, desc_(*adesc)
, hint_fwd_pd_(hint_fwd_pd)
{}
const inner_product_desc_t *desc() const { return &desc_; }
virtual const op_desc_t *op_desc() const override
{ return reinterpret_cast<const op_desc_t *>(this->desc()); }
virtual void init_info() override { impl::init_info(this, this->info_); }
virtual status_t query(query_t what, int idx, void *result) const override {
switch (what) {
case query::inner_product_d:
*(const inner_product_desc_t**)result = desc(); break;
default: return primitive_desc_t::query(what, idx, result);
}
return status::success;
}
/* common inner_product aux functions */
dim_t MB() const { return ip_prop_invariant_src_d(&desc_)->dims[0]; }
dim_t IC() const { return ip_prop_invariant_src_d(&desc_)->dims[1]; }
dim_t OC() const { return ip_prop_invariant_dst_d(&desc_)->dims[1]; }
dim_t ID() const {
return ndims() >= 5
? ip_prop_invariant_src_d(&desc_)->dims[ndims() - 3] : 1;
}
dim_t IH() const {
return ndims() >= 4
? ip_prop_invariant_src_d(&desc_)->dims[ndims() - 2] : 1;
}
dim_t IW() const {
return ndims() >= 3
? ip_prop_invariant_src_d(&desc_)->dims[ndims() - 1] : 1;
}
dim_t OD() const {
return ndims() >= 5
? ip_prop_invariant_dst_d(&desc_)->dims[ndims() - 3] : 1;
}
dim_t OH() const {
return ndims() >= 4
? ip_prop_invariant_dst_d(&desc_)->dims[ndims() - 2] : 1;
}
dim_t OW() const {
return ndims() >= 3
? ip_prop_invariant_dst_d(&desc_)->dims[ndims() - 1] : 1;
}
dim_t KD() const {
return ndims() >= 5
? ip_prop_invariant_wei_d(&desc_)->dims[ndims() - 3] : 1;
}
dim_t KH() const {
return ndims() >= 4
? ip_prop_invariant_wei_d(&desc_)->dims[ndims() - 2] : 1;
}
dim_t KW() const {
return ndims() >= 3
? ip_prop_invariant_wei_d(&desc_)->dims[ndims() - 1] : 1;
}
dim_t IC_total() const {
return utils::array_product(&ip_prop_invariant_src_d(&desc_)->dims[1],
ndims() - 1);
}
dim_t IC_total_padded() const {
auto src_d = desc()->prop_kind == prop_kind::backward_data
? memory_desc_wrapper(diff_src_md())
: memory_desc_wrapper(src_md());
assert(src_d.is_blocking_desc());
if (!src_d.is_blocking_desc()) return -1;
return utils::array_product(src_d.padded_dims() + 1, ndims() - 1);
}
int ndims() const { return ip_prop_invariant_src_d(&desc_)->ndims; }
bool with_bias() const
{ return !memory_desc_wrapper(*ip_prop_invariant_bia_d(&desc_)).is_zero(); }
bool has_zero_dim_memory() const {
const auto s_d = memory_desc_wrapper(*ip_prop_invariant_src_d(&desc_));
const auto d_d = memory_desc_wrapper(*ip_prop_invariant_dst_d(&desc_));
return s_d.has_zero_dim() || d_d.has_zero_dim();
}
bool is_fwd() const {
return utils::one_of(desc_.prop_kind, prop_kind::forward_training,
prop_kind::forward_inference);
}
protected:
inner_product_desc_t desc_;
const inner_product_fwd_pd_t *hint_fwd_pd_;
};
struct inner_product_fwd_pd_t: public inner_product_pd_t {
typedef inner_product_fwd_pd_t base_class;
typedef inner_product_fwd_pd_t hint_class;
inner_product_fwd_pd_t(engine_t *engine,
const inner_product_desc_t *adesc,
const primitive_attr_t *attr,
const inner_product_fwd_pd_t *hint_fwd_pd)
: inner_product_pd_t(engine, adesc, attr, hint_fwd_pd)
, src_md_(desc_.src_desc)
, weights_md_(desc_.weights_desc)
, bias_md_(desc_.bias_desc)
, dst_md_(desc_.dst_desc)
{}
virtual arg_usage_t arg_usage(int arg) const override {
if (utils::one_of(arg, MKLDNN_ARG_SRC, MKLDNN_ARG_WEIGHTS))
return arg_usage_t::input;
if (arg == MKLDNN_ARG_BIAS && with_bias())
return arg_usage_t::input;
if (arg == MKLDNN_ARG_DST)
return arg_usage_t::output;
return primitive_desc_t::arg_usage(arg);
}
virtual const memory_desc_t *src_md(int index = 0) const override
{ return index == 0 ? &src_md_ : &glob_zero_md; }
virtual const memory_desc_t *dst_md(int index = 0) const override
{ return index == 0 ? &dst_md_ : &glob_zero_md; }
virtual const memory_desc_t *weights_md(int index = 0) const override {
if (index == 0) return &weights_md_;
if (index == 1 && with_bias()) return &bias_md_;
return &glob_zero_md;
}
virtual int n_inputs() const override { return 2 + with_bias(); }
virtual int n_outputs() const override { return 1; }
protected:
memory_desc_t src_md_;
memory_desc_t weights_md_;
memory_desc_t bias_md_;
memory_desc_t dst_md_;
};
struct inner_product_bwd_data_pd_t: public inner_product_pd_t {
typedef inner_product_bwd_data_pd_t base_class;
typedef inner_product_fwd_pd_t hint_class;
inner_product_bwd_data_pd_t(engine_t *engine,
const inner_product_desc_t *adesc,
const primitive_attr_t *attr,
const inner_product_fwd_pd_t *hint_fwd_pd)
: inner_product_pd_t(engine, adesc, attr, hint_fwd_pd)
, diff_src_md_(desc_.diff_src_desc)
, weights_md_(desc_.weights_desc)
, diff_dst_md_(desc_.diff_dst_desc)
{}
virtual arg_usage_t arg_usage(int arg) const override {
if (utils::one_of(arg, MKLDNN_ARG_WEIGHTS, MKLDNN_ARG_DIFF_DST))
return arg_usage_t::input;
if (arg == MKLDNN_ARG_DIFF_SRC)
return arg_usage_t::output;
return primitive_desc_t::arg_usage(arg);
}
virtual const memory_desc_t *diff_src_md(int index = 0) const override
{ return index == 0 ? &diff_src_md_ : &glob_zero_md; }
virtual const memory_desc_t *diff_dst_md(int index = 0) const override
{ return index == 0 ? &diff_dst_md_ : &glob_zero_md; }
virtual const memory_desc_t *weights_md(int index = 0) const override
{ return index == 0 ? &weights_md_ : &glob_zero_md; }
virtual int n_inputs() const override { return 2; }
virtual int n_outputs() const override { return 1; }
protected:
memory_desc_t diff_src_md_;
memory_desc_t weights_md_;
memory_desc_t diff_dst_md_;
};
struct inner_product_bwd_weights_pd_t: public inner_product_pd_t {
typedef inner_product_bwd_weights_pd_t base_class;
typedef inner_product_fwd_pd_t hint_class;
inner_product_bwd_weights_pd_t(engine_t *engine,
const inner_product_desc_t *adesc,
const primitive_attr_t *attr,
const inner_product_fwd_pd_t *hint_fwd_pd)
: inner_product_pd_t(engine, adesc, attr, hint_fwd_pd)
, src_md_(desc_.src_desc)
, diff_weights_md_(desc_.diff_weights_desc)
, diff_bias_md_(desc_.diff_bias_desc)
, diff_dst_md_(desc_.diff_dst_desc)
{}
virtual arg_usage_t arg_usage(int arg) const override {
if (utils::one_of(arg, MKLDNN_ARG_SRC, MKLDNN_ARG_DIFF_DST))
return arg_usage_t::input;
if (arg == MKLDNN_ARG_DIFF_WEIGHTS)
return arg_usage_t::output;
if (arg == MKLDNN_ARG_DIFF_BIAS && with_bias())
return arg_usage_t::output;
return primitive_desc_t::arg_usage(arg);
}
virtual const memory_desc_t *src_md(int index = 0) const override
{ return index == 0 ? &src_md_ : &glob_zero_md; }
virtual const memory_desc_t *diff_dst_md(int index = 0) const override
{ return index == 0 ? &diff_dst_md_ : &glob_zero_md; }
virtual const memory_desc_t *diff_weights_md(int index = 0) const override {
if (index == 0) return &diff_weights_md_;
if (index == 1 && with_bias()) return &diff_bias_md_;
return &glob_zero_md;
}
virtual int n_inputs() const override { return 2; }
virtual int n_outputs() const override { return 1 + with_bias(); }
protected:
memory_desc_t src_md_;
memory_desc_t diff_weights_md_;
memory_desc_t diff_bias_md_;
memory_desc_t diff_dst_md_;
};
}
}
#endif
// vim: et ts=4 sw=4 cindent cino^=l0,\:0,N-s
| [
"vbittorf@google.com"
] | vbittorf@google.com |
798c084529eeca25281d549d2808e2eeb53d4cef | c465ecbb983c4e01f07c0a609e7b2df9590e22e2 | /header/meshLoader.h | 505b74110d139d1fa1fdd33fba1a1e7a1987fca9 | [] | no_license | manishbista/Image-Segmentation | dc615d71489a05a47f83c709436e72eb7d701d72 | 37bae3dcf81135bd6398143d848a02ff690824d8 | refs/heads/master | 2021-07-03T22:45:13.449179 | 2017-09-26T05:37:14 | 2017-09-26T05:37:14 | 104,840,627 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | h | #ifndef MESHLOADER_H
#define MESHLOADER_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "mesh.h"
class meshLoader
{
private:
mesh* g_Mesh;
std::vector<vertexData>g_VertexData;
std::vector<unsigned int>g_Index;
std::vector<textureData>g_TexData;
public:
meshLoader();
~meshLoader();
void draw(unsigned int programId);
unsigned int loadTexture(std::string file_name);
void loadImage(std::string file_name);
};
#endif
| [
"manishbista28@yahoo.com"
] | manishbista28@yahoo.com |
12d8661fca3a278c4ed4ef6d6b2b178eb5eae320 | f92396fa3b01a0ae2450abba856a8e3c586972ff | /benchmarks/matrix/matrix_dynamic_memory/llvm/llvm/Transforms/IPO/SCCP.h | 7082006f14a6f99529d59ded9387fca67775ba0b | [
"MIT",
"GPL-3.0-only"
] | permissive | derrickgreenspan/LLAMA | e3ad9d8f9b595e844b766d79877434447a590367 | c00e0f1fbaa70c9b241bfcf33729e626002dc146 | refs/heads/master | 2023-04-06T10:31:06.708020 | 2023-04-04T00:09:11 | 2023-04-04T00:09:11 | 200,301,975 | 4 | 1 | MIT | 2019-10-03T16:57:52 | 2019-08-02T21:52:01 | C++ | UTF-8 | C++ | false | false | 1,171 | h | //===- SCCP.h - Sparse Conditional Constant Propagation ---------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This pass implements interprocedural sparse conditional constant
// propagation and merging.
//
// Specifically, this:
// * Assumes values are constant unless proven otherwise
// * Assumes BasicBlocks are dead unless proven otherwise
// * Proves values to be constant, and replaces them with constants
// * Proves conditional branches to be unconditional
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TRANSFORMS_IPO_SCCP_H
#define LLVM_TRANSFORMS_IPO_SCCP_H
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
namespace llvm {
/// Pass to perform interprocedural constant propagation.
class IPSCCPPass : public PassInfoMixin<IPSCCPPass> {
public:
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
};
}
#endif // LLVM_TRANSFORMS_IPO_SCCP_H
| [
"derrick.greenspan@knights.ucf.edu"
] | derrick.greenspan@knights.ucf.edu |
414c45a2d247a2fb3b155e7e5e2093d58ad56a8c | 9c4803ea374e459d63a256248edbe41c7820dbfe | /src/ode/ode.h | f2b293a2cdb7cd568510baae6e235ea1b8c2d9bc | [] | no_license | tomgrad/magfaz | fd4497cf3f2fcf2e538511b75dd73584b76ff7da | 27fe62d2beb330593711cec4d30609491dc8c16d | refs/heads/master | 2021-04-28T22:00:31.911023 | 2017-01-09T22:05:10 | 2017-01-09T22:05:10 | 77,758,347 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | h | #ifndef ODE_H
#define ODE_H
// no members initialization in c++03 :(
class ODE {
public:
ODE();
virtual ~ODE(){};
void RK4(double *);
double t;
void set_dt(double);
double getStep() { return dt; }
protected:
double dt;
virtual double *dx(double *);
private:
};
#endif // ODE_H
| [
"tomgrad@if.pw.edu.pl"
] | tomgrad@if.pw.edu.pl |
47979bae2189a39820769e6ea76c570ddf54f461 | 032ceb96c84d2b2a88c15b5e1b8e90fc492776c7 | /Engine/VSlider.hpp | e4f3f933a6526ea82f7d6c3ff3ee32fd7c3b532d | [] | no_license | antiqe/RType | ae8859cfe589cfcfbd5ba8c0fc82480bfcd759d5 | 6165ad1dd11c179c82946d8be07c862db82483b4 | refs/heads/master | 2016-09-06T09:31:13.177842 | 2013-12-04T09:59:40 | 2013-12-04T09:59:40 | 14,722,487 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 639 | hpp | #ifndef _V_SLIDER_H_
# define _V_SLIDER_H_
#include <string>
#include "ASlider.hpp"
namespace Engine
{
class VSlider : public ASlider
{
public:
VSlider(std::string const &name, std::string const &normalFile, std::string const &clickedFile,
std::string const &hoverFile, std::string const &barFile, int min = 0, int max = 100, int defaultValue = 0);
virtual ~VSlider();
void initialize();
void unload();
void moveCursor(int pos);
void setValue(int value);
void setWidth(size_t w);
void setHeight(size_t h);
void setX(int x);
void setY(int y);
void setLocalX(int x);
void setLocalY(int y);
};
}
#endif | [
"alexis.leprovost@epitech.eu"
] | alexis.leprovost@epitech.eu |
f30eb5460d23372af7274dabdbb59325f62c1025 | 78f146be549cde6303d983c8bf1e8eb97c8c16d1 | /simulator/common/simulator/src/Event.cpp | 5665ceef4878cefd04374a075205c5a2b91e1ee8 | [] | no_license | rafutek/simulogic | a19b8b2809f1f7fe6b774c2aee27a3026226d493 | 2eceb728a66a49019f28ddd69d0ab90ccdef620a | refs/heads/master | 2023-03-15T14:45:22.727902 | 2020-12-02T11:08:04 | 2020-12-02T11:08:04 | 262,929,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | cpp | //
// Created by Luc on 22/05/2019.
//
#include "Event.h"
using namespace std;
Event::Event(Wire *wire,State state, int time) : m_state(state), m_wire(wire), m_time(time) {
}
Event::Event(int time) : m_time(time){
}
State Event::getState() const {
return m_state;
}
string Event::getStateStr() const {
string out;
if( m_state == F){
out = "F";
} else if(m_state == T){
out = "T";
} else if(m_state == X){
out = "X";
} else {
out = "Z";
}
return out;
}
Wire *Event::getWire() const{
return m_wire;
}
int Event::getTime() const {
return m_time;
}
// Opérateur de comparaison, les Event sont classé enfonction de leur temps (utile pour la timeline)
bool Event::operator<(const Event &rhs) const {
return m_time < rhs.m_time;
}
| [
"rafutek@protonmail.com"
] | rafutek@protonmail.com |
79514e2093724e867589ee659134efef7f284121 | 9de4f540b2b861c5bf50737658985ede6c73dfac | /src/gazebo_odometry_plugin.cpp | c32a541191e6ff586efb4e97c98bf2e81267b9d3 | [] | no_license | JJRnumrous/sitl_gazebo | 04a07d1174ed4bf4dbf02f17ad928a2f7089f941 | 75aba47f12d45d16c8288ce9764230e25cf9b2b3 | refs/heads/master | 2020-08-17T20:02:19.717038 | 2019-11-29T06:39:20 | 2019-11-29T06:39:20 | 215,705,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,307 | cpp | #include "gazebo_odometry_plugin.h"
namespace gazebo {
GazeboOdometryPlugin::~GazeboOdometryPlugin() {
update_connection_->~Connection();
}
void GazeboOdometryPlugin::Load(physics::ModelPtr _model, sdf::ElementPtr _sdf) {
// Store the pointer to the model and world.
model_ = _model;
world_ = model_->GetWorld();
namespace_.clear();
// Get parameters.
if (_sdf->HasElement("robotNamespace"))
namespace_ = _sdf->GetElement("robotNamespace")->Get<std::string>();
else
gzerr << "[gazebo_imu_plugin] Please specify a robotNamespace.\n";
if (_sdf->HasElement("linkName"))
link_name_ = _sdf->GetElement("linkName")->Get<std::string>();
else
gzerr << "[gazebo_imu_plugin] Please specify a linkName.\n";
// Initialize the node_handle.
node_handle_ = transport::NodePtr(new transport::Node());
node_handle_->Init(namespace_);
// Pointer to the link, to be able to apply forces and torques on it.
link_ = model_->GetLink(link_name_);
if (link_ == NULL)
gzthrow("[gazebo_odometry_plugin] Couldn't find specified link \"" << link_name_ << "\".");
// Listen to the update event. This event is broadcast every simulation iteration.
update_connection_ = event::Events::ConnectWorldUpdateBegin(boost::bind(&GazeboOdometryPlugin::OnUpdate, this, _1));
}
// This gets called by the world update start event.
void GazeboOdometryPlugin::OnUpdate(const common::UpdateInfo& _info) {
// Connect to ROS
if(!pubs_and_subs_created_) {
CreatePubsAndSubs();
pubs_and_subs_created_ = true;
}
// Obtain current state
#if GAZEBO_MAJOR_VERSION >= 9
common::Time current_time = world_->SimTime();
#else
common::Time current_time = world_->GetSimTime();
#endif
ignition::math::Pose3d w_pose = link_->WorldPose();
ignition::math::Vector3d w_vel = link_->WorldLinearVel();
ignition::math::Vector3d w_ang_vel = link_->RelativeAngularVel();
// Prepare values
gazebo::msgs::Vector3d* pos = new gazebo::msgs::Vector3d();
pos->set_x(w_pose.Pos().X());
pos->set_y(w_pose.Pos().Y());
pos->set_z(w_pose.Pos().Z());
gazebo::msgs::Quaternion* orientation = new gazebo::msgs::Quaternion();
orientation->set_w(w_pose.Rot().W());
orientation->set_x(w_pose.Rot().X());
orientation->set_y(w_pose.Rot().Y());
orientation->set_z(w_pose.Rot().Z());
gazebo::msgs::Vector3d* lin_vel = new gazebo::msgs::Vector3d();
lin_vel->set_x(w_vel.X());
lin_vel->set_y(w_vel.Y());
lin_vel->set_z(w_vel.Z());
gazebo::msgs::Vector3d* ang_vel = new gazebo::msgs::Vector3d();
ang_vel->set_x(w_ang_vel.X());
ang_vel->set_y(w_ang_vel.Y());
ang_vel->set_z(w_ang_vel.Z());
// Publish odometry
nav_msgs::msgs::Odometry odom;
odom.set_time_usec(current_time.Double() * 1000000.0);
odom.set_allocated_position(pos);
odom.set_allocated_linear_velocity(lin_vel);
odom.set_allocated_angular_velocity(ang_vel);
odom.set_allocated_orientation(orientation);
for(int i = 0 ; i < 6 ; i++)
odom.add_pose_covariance(1.0);
for(int i = 0 ; i < 6 ; i++)
odom.add_velocity_covariance(1.0);
odometry_pub_->Publish(odom, true);
}
void GazeboOdometryPlugin::CreatePubsAndSubs() {
// Advertise
odometry_pub_ = node_handle_->Advertise<nav_msgs::msgs::Odometry>("~/" + model_->GetName() + odom_pub_topic_, 10);
// Create temporary "ConnectGazeboToRosTopic" publisher and message
gazebo::transport::PublisherPtr gz_connect_gazebo_to_ros_topic_pub = node_handle_->Advertise<std_msgs::msgs::ConnectGazeboToRosTopic>("~/" + kConnectGazeboToRosSubtopic, 1);
// Connect to ROS
std_msgs::msgs::ConnectGazeboToRosTopic connect_gazebo_to_ros_topic_msg;
connect_gazebo_to_ros_topic_msg.set_ros_topic(odom_pub_topic_);
connect_gazebo_to_ros_topic_msg.set_gazebo_topic("~/" + model_->GetName() + odom_pub_topic_);
connect_gazebo_to_ros_topic_msg.set_msgtype(std_msgs::msgs::ConnectGazeboToRosTopic::ODOMETRY);
gz_connect_gazebo_to_ros_topic_pub->Publish(connect_gazebo_to_ros_topic_msg, true);
}
// Register this plugin with the simulator
GZ_REGISTER_MODEL_PLUGIN(GazeboOdometryPlugin)
} // namespace gazebo | [
"18231349@sun.ac.za"
] | 18231349@sun.ac.za |
22325739ac6af14ba6795209346593c68b19a410 | 260d4490deac756ba0d61fe4405fda1ed62c2c4a | /bank-view/controllersafety.cpp | 284b4eba1c764fe36f680a321b60c22ebc9d0d83 | [] | no_license | smandyscom/front-base-widget | 68837f93fa19eea74ddbf974f71cdbff20ad152d | e2127833a0b2bfb03053af66306fe619513e6a63 | refs/heads/master | 2021-07-12T18:27:38.309837 | 2018-11-29T08:11:47 | 2018-11-29T08:11:47 | 109,595,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 993 | cpp | #include "controllersafety.h"
ControllerSafety::ControllerSafety(QObject *parent) : QObject(parent)
{
//! Very first shot
__channel = ModbusChannel::Instance();
connect(__channel,&ModbusChannel::readReply,this,&ControllerSafety::onReply);
__channel->beginAccess<MODBUS_U_WORD>(ModbusDriverAddress(MONITOR)); //4-words
//!
__channel->beginAccess<bool>(ModbusDriverAddress(INTERLOCK_BYPASS));
}
void ControllerSafety::onReply()
{
switch (__channel->CachedReplyAddress().getAddress()) {
case MONITOR:
QTimer::singleShot(100,[=](){
__channel->beginAccess<MODBUS_U_WORD>(ModbusDriverAddress(MONITOR));
});
break;
case INTERLOCK_BYPASS:
emit initialized();
break;
default:
break;
}
}
ControllerSafety* ControllerSafety::Instance()
{
if(__instance == nullptr)
__instance = new ControllerSafety();
return __instance;
}
ControllerSafety* ControllerSafety::__instance = nullptr;
| [
"smandyscom@gmail.com"
] | smandyscom@gmail.com |
dbeed0417314c5d518ce52227dc1b0caa21c78a2 | 7dda9160847f4e5199f4a6e1a2aba9d51306a2c1 | /[437]Path Sum III.cpp | adc12f27e3be89685b92d4a93f3f1a3bc077c48d | [] | no_license | stoneheart93/Leetcode | 4e65b94642f449d1bea9674c50b77dbf34407719 | 4b8862f1384a35c9f12afaccffb68eba9f926d8f | refs/heads/master | 2023-05-28T06:06:16.611711 | 2021-06-17T16:40:25 | 2021-06-17T16:40:25 | 372,876,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,001 | cpp | //Given the root of a binary tree and an integer targetSum, return the number of
// paths where the sum of the values along the path equals targetSum.
//
// The path does not need to start or end at the root or a leaf, but it must go
//downwards (i.e., traveling only from parent nodes to child nodes).
//
//
// Example 1:
//
//
//Input: root = [10,5,-3,3,2,null,11,3,-2,null,1], targetSum = 8
//Output: 3
//Explanation: The paths that sum to 8 are shown.
//
//
// Example 2:
//
//
//Input: root = [5,4,8,11,null,13,4,7,2,null,null,5,1], targetSum = 22
//Output: 3
//
//
//
// Constraints:
//
//
// The number of nodes in the tree is in the range [0, 1000].
// -109 <= Node.val <= 109
// -1000 <= targetSum <= 1000
//
// Related Topics Tree
// 👍 5260 👎 324
//leetcode submit region begin(Prohibit modification and deletion)
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {}
* };
*/
class Solution {
void pathSumUtil(struct TreeNode* root, int targetSum, int& result, unordered_map<int, int>& hash, int preSum)
{
if(root == NULL)
return;
preSum += root->val;
result += hash[preSum - targetSum];
hash[preSum]++;
pathSumUtil(root->left, targetSum, result, hash, preSum);
pathSumUtil(root->right, targetSum, result, hash, preSum);
hash[preSum]--;
}
public:
int pathSum(TreeNode* root, int targetSum)
{
unordered_map<int, int> hash;
hash[0] = 1;
int result = 0;
pathSumUtil(root, targetSum, result, hash, 0);
return result;
}
};
//Time Complexity: O(n)
//Space Complexity: O(n)
//leetcode submit region end(Prohibit modification and deletion)
| [
"sohinee93@gmail.com"
] | sohinee93@gmail.com |
793f15314274b8934f21ac3ca61a9892ef0ca0fe | 2cf3ebedd9f0c5a23fe14dd61e15fad9ba3b916f | /programming2lab7/programming2lab7/car.h | 98637bfebe4807bba4f7b8760299949891e1bf0d | [] | no_license | Slidejiveman/Programming1 | 395deaae6de0ff7d6ad4733a7d962af3247c7385 | 273d21641b0f498bf24996438b52ad64aece0c54 | refs/heads/master | 2021-08-19T07:04:44.097280 | 2017-11-25T03:07:40 | 2017-11-25T03:07:40 | 111,948,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 765 | h | #ifndef CAR_H
#define CAR_H
class Car
{
private:
int mileage; //total mileage on the odometer
double fuelLevel; //amount of fuel in the 12 gallon tank. 0-12 permitted
double totalGasUsed; //keeps track of miles driven while program is running.
double totalMPG; //holds the miles per gallon for the total trip
public:
Car(int, double); // accepts mileage and fuel level
void addFuel(double); //adds fuel to the car accepts gallons
bool outOfGasCityDrive(double); //accepts trip miles, returns whether tank empties
bool outOfGasHighwayDrive(double); //accepts trip miles, returns whether tank empties
void showCar(); //prints car status
//double averageTotalMPG(double, double); //calculated and returned, depends on number of miles driven where
};
#endif | [
"rdnotlaw91@outlook.com"
] | rdnotlaw91@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.