Home
last modified time | relevance | path

Searched refs:NDIMS (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/dports/science/axom/axom-0.6.1/src/axom/primal/geometry/
H A DVector.hpp43 AXOM_HOST_DEVICE Vector<T, NDIMS> operator+(const Vector<T, NDIMS>& A,
53 AXOM_HOST_DEVICE Point<T, NDIMS> operator+(const Point<T, NDIMS>& P,
63 AXOM_HOST_DEVICE Point<T, NDIMS> operator+(const Vector<T, NDIMS>& V,
92 Vector<T, NDIMS> operator-(const Vector<T, NDIMS>& vec1);
199 Vector(const Point<T, NDIMS>& A, const Point<T, NDIMS>& B) in Vector()
274 Vector<T, NDIMS>& operator+=(const Vector<T, NDIMS>& v);
282 Vector<T, NDIMS>& operator-=(const Vector<T, NDIMS>& v);
414 inline Vector<T, NDIMS>& Vector<T, NDIMS>::operator*=(T scalar) in operator *=()
430 inline Vector<T, NDIMS>& Vector<T, NDIMS>::operator+=(const Vector<T, NDIMS>& v) in operator +=()
438 inline Vector<T, NDIMS>& Vector<T, NDIMS>::operator-=(const Vector<T, NDIMS>& v) in operator -=()
[all …]
H A DOrientedBoundingBox.hpp316 const Vector<T, NDIMS> u[NDIMS], in vertex_enum() argument
396 numerics::Matrix<T> covar = numerics::Matrix<T>(NDIMS, NDIMS); in OrientedBoundingBox()
424 T u[NDIMS * NDIMS]; in OrientedBoundingBox()
425 T lambdas[NDIMS]; in OrientedBoundingBox()
434 this->m_u[i] = Vector<T, NDIMS>(u + NDIMS * i); in OrientedBoundingBox()
499 void OrientedBoundingBox<T, NDIMS>::addPoint(Point<T, NDIMS> pt) in addPoint()
579 OrientedBoundingBox<T, NDIMS>& OrientedBoundingBox<T, NDIMS>::shift( in shift()
595 OrientedBoundingBox<T, NDIMS>& OrientedBoundingBox<T, NDIMS>::operator=( in operator =()
667 Point<T, NDIMS> OrientedBoundingBox<T, NDIMS>::toLocal(const Point<T, NDIMS>& pt) const in toLocal()
726 Vector<T, NDIMS> c1 = Vector<T, NDIMS>(this->m_c); in bisect()
[all …]
H A DBoundingBox.hpp26 template <typename T, int NDIMS>
36 template <typename T, int NDIMS>
44 template <typename T, int NDIMS>
381 bool BoundingBox<T, NDIMS>::contains(const Point<OtherT, NDIMS>& otherPt) const in contains()
458 void BoundingBox<T, NDIMS>::addPoint(const Point<OtherT, NDIMS>& pt) in addPoint()
479 void BoundingBox<T, NDIMS>::addBox(const BoundingBox<OtherT, NDIMS>& bbox) in addBox()
509 BoundingBox<T, NDIMS>& BoundingBox<T, NDIMS>::expand(T expansionAmount) in expand()
523 BoundingBox<T, NDIMS>& BoundingBox<T, NDIMS>::scale(double scaleFactor) in scale()
538 BoundingBox<T, NDIMS>& BoundingBox<T, NDIMS>::shift(const VectorType& disp) in shift()
665 bool operator==(const BoundingBox<T, NDIMS>& lhs, const BoundingBox<T, NDIMS>& rhs) in operator ==()
[all …]
H A DPoint.hpp22 template <typename T, int NDIMS>
31 template <typename T, int NDIMS>
38 template <typename T, int NDIMS>
39 bool operator!=(const Point<T, NDIMS>& lhs, const Point<T, NDIMS>& rhs);
44 template <typename T, int NDIMS>
65 DIMENSION = NDIMS,
66 NBYTES = NDIMS * sizeof(T)
270 inline Point<T, NDIMS> Point<T, NDIMS>::make_point(const T& x, in make_point()
280 inline Point<T, NDIMS> Point<T, NDIMS>::midpoint(const Point<T, NDIMS>& A, in midpoint()
283 Point<T, NDIMS> mid_point; in midpoint()
[all …]
H A DSphere.hpp25 template <typename T, int NDIMS>
28 template <typename T, int NDIMS>
44 template <typename T, int NDIMS>
168 template <typename T, int NDIMS>
171 AXOM_STATIC_ASSERT_MSG((NDIMS == 2) || (NDIMS == 3), in Sphere()
174 for(int i = 0; i < NDIMS; ++i) in Sphere()
181 template <typename T, int NDIMS>
184 AXOM_STATIC_ASSERT_MSG((NDIMS == 2) || (NDIMS == 3), in Sphere()
196 Sphere<T, NDIMS>::~Sphere() in ~Sphere()
259 inline bool Sphere<T, NDIMS>::intersectsWith(const Sphere<T, NDIMS>& sphere, in intersectsWith()
[all …]
H A DPlane.hpp24 template <typename T, int NDIMS>
27 template <typename T, int NDIMS>
97 template <typename T, int NDIMS>
232 template <typename T, int NDIMS>
235 AXOM_STATIC_ASSERT_MSG((NDIMS == 2) || (NDIMS == 3), in Plane()
246 template <typename T, int NDIMS>
249 AXOM_STATIC_ASSERT_MSG((NDIMS == 2) || (NDIMS == 3), in Plane()
258 template <typename T, int NDIMS>
259 inline typename Plane<T, NDIMS>::PointType Plane<T, NDIMS>::projectPoint( in projectPoint()
270 template <typename T, int NDIMS>
[all …]
H A DBezierCurve.hpp35 template <typename T, int NDIMS>
39 template <typename T, int NDIMS>
54 template <typename T, int NDIMS>
58 using PointType = Point<T, NDIMS>;
59 using VectorType = Vector<T, NDIMS>;
77 (NDIMS == 2) || (NDIMS == 3), in BezierCurve()
102 (NDIMS == 2) || (NDIMS == 3), in BezierCurve()
116 for(int j = 0; j < NDIMS; j++) in BezierCurve()
135 (NDIMS == 2) || (NDIMS == 3), in BezierCurve()
221 for(int i = 0; i < NDIMS; ++i) in evaluate()
[all …]
H A DRay.hpp28 template <typename T, int NDIMS>
41 template <typename T, int NDIMS>
46 using PointType = Point<T, NDIMS>;
47 using SegmentType = Segment<T, NDIMS>;
48 using VectorType = Vector<T, NDIMS>;
122 template <typename T, int NDIMS>
131 template <typename T, int NDIMS>
140 template <typename T, int NDIMS>
141 inline Point<T, NDIMS> Ray<T, NDIMS>::at(const T& t) const in at()
144 for(int i = 0; i < NDIMS; ++i) in at()
[all …]
H A DSegment.hpp30 template <typename T, int NDIMS>
31 bool operator==(const Segment<T, NDIMS>& lhs, const Segment<T, NDIMS>& rhs);
36 template <typename T, int NDIMS>
37 bool operator!=(const Segment<T, NDIMS>& lhs, const Segment<T, NDIMS>& rhs);
42 template <typename T, int NDIMS>
43 std::ostream& operator<<(std::ostream& os, const Segment<T, NDIMS>& seg);
57 template <typename T, int NDIMS>
61 using PointType = Point<T, NDIMS>;
62 using VectorType = Vector<T, NDIMS>;
192 template <typename T, int NDIMS>
[all …]
H A DTriangle.hpp27 template <typename T, int NDIMS>
33 template <typename T, int NDIMS>
44 template <typename T, int NDIMS>
48 using PointType = Point<T, NDIMS>;
112 return (NDIMS == 3) in normal()
125 SLIC_CHECK_MSG(NDIMS == 2 || NDIMS == 3, in area()
155 if(NDIMS < 3) in ppedVolume()
316 template <typename T, int NDIMS>
317 Triangle<T, NDIMS>::Triangle() in Triangle()
322 template <typename T, int NDIMS>
[all …]
/dports/devel/rkcommon/rkcommon-1.8.0/rkcommon/utility/
H A Dmultidim_index_sequence.h12 template <int NDIMS>
15 template <int NDIMS>
18 static_assert(NDIMS == 2 || NDIMS == 3,
42 template <int NDIMS>
83 template <int NDIMS>
120 template <int NDIMS>
126 template <int NDIMS>
132 template <int NDIMS>
138 template <int NDIMS>
146 template <int NDIMS>
[all …]
/dports/science/axom/axom-0.6.1/src/axom/spin/
H A DUniformGrid.hpp53 template <typename T, int NDIMS>
222 int m_resolution[NDIMS];
223 int m_strides[NDIMS];
248 template <typename T, int NDIMS>
253 SLIC_ASSERT((NDIMS == 3) || (NDIMS == 2)); in UniformGrid()
260 template <typename T, int NDIMS>
268 SLIC_ASSERT((NDIMS == 3) || (NDIMS == 2)); in UniformGrid()
286 SLIC_ASSERT((NDIMS == 3) || (NDIMS == 2)); in UniformGrid()
309 const int numBins = m_strides[NDIMS - 1] * m_resolution[NDIMS - 1]; in initialize()
444 SLIC_ASSERT((NDIMS == 3) || (NDIMS == 2)); in insert()
[all …]
H A DRectangularLattice.hpp56 using GridCell = primal::Point<CellCoordType, NDIMS>;
57 using SpacePoint = primal::Point<SpaceCoordType, NDIMS>;
58 using SpaceVector = primal::Vector<SpaceCoordType, NDIMS>;
59 using SpatialBoundingBox = primal::BoundingBox<SpaceCoordType, NDIMS>;
146 for(int i = 0; i < NDIMS; ++i) in gridCell()
161 for(int i = 0; i < NDIMS; ++i) in spacePoint()
207 for(int i = 0; i < NDIMS; ++i) in initializeSpacingAndInvSpacing()
244 RectangularLattice<NDIMS, SpaceCoordType, CellCoordType>
246 const primal::BoundingBox<SpaceCoordType, NDIMS>& bbox, in rectangular_lattice_from_bounding_box()
247 const primal::NumericArray<CellCoordType, NDIMS>& gridRes) in rectangular_lattice_from_bounding_box()
[all …]
/dports/science/axom/axom-0.6.1/src/axom/primal/operators/
H A Dcompute_bounding_box.hpp41 template <typename T, int NDIMS>
43 const Point<T, NDIMS> *pts, in compute_oriented_bounding_box()
58 template <typename T, int NDIMS>
59 OrientedBoundingBox<T, NDIMS> merge_boxes(const OrientedBoundingBox<T, NDIMS> &l, in merge_boxes()
76 const int size = (1 << NDIMS); in merge_boxes()
78 Point<T, NDIMS> pts[2 * size]; in merge_boxes()
97 template <typename T, int NDIMS>
98 BoundingBox<T, NDIMS> merge_boxes(const BoundingBox<T, NDIMS> &l, in merge_boxes()
101 BoundingBox<T, NDIMS> res(l); in merge_boxes()
111 template <typename T, int NDIMS>
[all …]
H A Dsquared_distance.hpp57 template <typename T, int NDIMS>
61 Vector<T, NDIMS> v(A, B); in squared_distance()
72 template <typename T, int NDIMS>
83 Point<T, NDIMS> cp; in squared_distance()
84 for(int i = 0; i < NDIMS; ++i) in squared_distance()
109 template <typename T, int NDIMS>
113 Vector<T, NDIMS> ab(S.source(), S.target()); in squared_distance()
114 Vector<T, NDIMS> ac(S.source(), P); in squared_distance()
130 Vector<T, NDIMS> bc(S.target(), P); in squared_distance()
147 template <typename T, int NDIMS>
[all …]
/dports/science/axom/axom-0.6.1/src/axom/primal/tests/
H A Dprimal_sphere.cpp26 template <int NDIMS>
34 primal::Sphere<double, NDIMS> S0; in check_constructor()
52 template <int NDIMS>
69 for(int j = 0; j < NDIMS; ++j) in check_signed_distance_and_orientation()
116 template <int NDIMS>
122 primal::Sphere<double, NDIMS> S0; in check_sphere_intersection()
142 template <int NDIMS>
154 for(int i = 0; i < NDIMS; ++i) in check_copy_constructor()
165 template <int NDIMS>
173 primal::Sphere<double, NDIMS> s2; in check_assignment_operator()
[all …]
/dports/science/axom/axom-0.6.1/src/axom/primal/operators/detail/
H A Dintersect_bezier_impl.hpp60 template <typename T, int NDIMS>
100 template <typename T, int NDIMS>
101 bool intersect_2d_linear(const Point<T, NDIMS> &a,
102 const Point<T, NDIMS> &b,
103 const Point<T, NDIMS> &c,
104 const Point<T, NDIMS> &d,
110 template <typename T, int NDIMS>
123 using BCurve = BezierCurve<T, NDIMS>; in intersect_bezier_curves()
124 SLIC_ASSERT(NDIMS == 2); in intersect_bezier_curves()
188 template <typename T, int NDIMS>
[all …]
H A Dclip_impl.hpp58 template <typename T, int NDIMS>
92 template <typename T, int NDIMS>
93 Point<T, NDIMS> findIntersectionPoint(const Point<T, NDIMS>& a, in findIntersectionPoint()
98 using PointType = Point<T, NDIMS>; in findIntersectionPoint()
132 template <typename T, int NDIMS>
195 template <typename T, int NDIMS>
253 template <typename T, int NDIMS>
351 template <typename T, int NDIMS>
358 Polyhedron<T, NDIMS> old_poly; in poly_clip_reindex()
407 template <typename T, int NDIMS>
[all …]
/dports/science/minc2/minc-release-2.2.00/libsrc2/test/
H A Dcreate-test-images.c17 #define NDIMS 3 macro
22 midimhandle_t hdim[NDIMS-1]; in create_2D_image()
26 double start_values[NDIMS-1]={-1.01, -2.02}; in create_2D_image()
28 long count[NDIMS-1]; in create_2D_image()
29 long start[NDIMS-1]; in create_2D_image()
69 midimhandle_t hdim[NDIMS]; in create_3D_image()
73 long count[NDIMS]; in create_3D_image()
74 long start[NDIMS]; in create_3D_image()
123 midimhandle_t hdim[NDIMS+1]; in create_4D_image()
127 long count[NDIMS+1]; in create_4D_image()
[all …]
H A Dcreate-test-images-2.c16 #define NDIMS 3 macro
21 double start_values[NDIMS]={-6.96, -12.453, -9.48}; in create_real_as_int_image()
22 double separations[NDIMS]={0.09,0.09,0.09}; in create_real_as_int_image()
23 midimhandle_t hdim[NDIMS]; in create_real_as_int_image()
27 long count[NDIMS]; in create_real_as_int_image()
28 long start[NDIMS]; in create_real_as_int_image()
75 double start_values[NDIMS]={-6.96, -12.453, -9.48}; in create_real_as_float_image()
76 double separations[NDIMS]={0.09,0.09,0.09}; in create_real_as_float_image()
77 midimhandle_t hdim[NDIMS]; in create_real_as_float_image()
81 long count[NDIMS]; in create_real_as_float_image()
[all …]
/dports/science/axom/axom-0.6.1/src/axom/spin/tests/
H A Dspin_bvh.cpp239 constexpr int NDIMS = 2; in check_build_bvh2d() local
281 constexpr int NDIMS = 3; in check_build_bvh3d() local
317 constexpr int NDIMS = 3; in check_find_bounding_boxes3d() local
439 constexpr int NDIMS = 2; in check_find_bounding_boxes2d() local
543 constexpr int NDIMS = 3; in check_find_rays3d() local
669 constexpr int NDIMS = 2; in check_find_rays2d() local
804 constexpr int NDIMS = 3; in check_find_points3d() local
903 constexpr int NDIMS = 2; in check_find_points2d() local
995 constexpr int NDIMS = 2; in check_single_box2d() local
1060 constexpr int NDIMS = 3; in check_single_box3d() local
[all …]
/dports/math/libmesh/libmesh-1.6.2/contrib/netcdf/netcdf-c-4.6.2/nc_test/
H A Dtestnc3perf.c58 #define NDIMS 4 macro
210 struct ncdim dims[NDIMS];
212 long corner[NDIMS], edge[NDIMS], point[NDIMS];
215 {"byte_var", NC_BYTE, NDIMS, 0, 0},
216 {"char_var", NC_CHAR, NDIMS, 0, 0},
218 {"long_var", NC_LONG, NDIMS, 0, 0},
229 assert(NDIMS <= LEN_OF(dnames));
467 for (i=0; i < NDIMS; i++)
480 int w[NDIMS];
482 if (argc != NDIMS+1) {
[all …]
/dports/science/netcdf/netcdf-c-4.7.4/nc_test/
H A Dtestnc3perf.c59 #define NDIMS 4 macro
211 struct ncdim dims[NDIMS];
213 long corner[NDIMS], edge[NDIMS], point[NDIMS];
216 {"byte_var", NC_BYTE, NDIMS, 0, 0},
217 {"char_var", NC_CHAR, NDIMS, 0, 0},
219 {"long_var", NC_LONG, NDIMS, 0, 0},
230 assert(NDIMS <= LEN_OF(dnames));
468 for (i=0; i < NDIMS; i++)
481 int w[NDIMS];
483 if (argc != NDIMS+1) {
[all …]
/dports/science/pnetcdf/parallel-netcdf-1.8.1/examples/C/
H A Dtranspose.c43 #define NDIMS 3 macro
66 int *buf, psizes[NDIMS], dimids[NDIMS], dimidsT[NDIMS]; in main()
68 MPI_Offset gsizes[NDIMS], starts[NDIMS], counts[NDIMS], imap[NDIMS]; in main()
69 MPI_Offset startsT[NDIMS], countsT[NDIMS]; in main()
95 for (i=0; i<NDIMS; i++) in main()
99 MPI_Dims_create(nprocs, NDIMS, psizes); in main()
102 for (i=0; i<NDIMS; i++) sprintf(str+strlen(str), "%d ",psizes[i]); in main()
109 for (i=NDIMS-1; i>=0; i--) { in main()
120 for (i=0; i<NDIMS; i++) { in main()
154 for (i=0; i<NDIMS; i++) { in main()
[all …]
/dports/science/axom/axom-0.6.1/src/axom/primal/utils/
H A DZipBoundingBox.hpp25 template <typename T, int NDIMS>
26 struct ZipBase<BoundingBox<T, NDIMS>>
28 using GeomType = BoundingBox<T, NDIMS>;
46 AXOM_STATIC_ASSERT_MSG(Size1 >= NDIMS, "Must provide at least NDIMS arrays"); in ZipBase()
47 AXOM_STATIC_ASSERT_MSG(Size2 >= NDIMS, "Must provide at least NDIMS arrays"); in ZipBase()
48 for(int i = 0; i < NDIMS; i++) in ZipBase()
62 StackArray<T, NDIMS> min_data, max_data; in operator []()
63 for(int d = 0; d < NDIMS; d++) in operator []()
72 const T* bb_min_arrays[NDIMS];
73 const T* bb_max_arrays[NDIMS];

12345678910>>...16