length equality update

This commit is contained in:
madrocketsci committed 2025-07-20 17:05:55 -04:00
1 parent cad98f8211
commit 13d73c67eb
33 files changed
+78 -33

No files matched your search

@@ -1,4 +1,4 @@
#include <amscppnarray/amscppnarray.hpp>
#include <amscppnarray25/amscppnarray25.hpp>
namespace ams
{
@@ -1,4 +1,4 @@
#include <amscppnarray/amscppnarray.hpp>
#include <amscppnarray25/amscppnarray25.hpp>
namespace ams
{
@@ -64,6 +64,7 @@ narray<float> linspacef(const float low, const float high, narray_size_t N)
threads.resize(nthreads);
for(J=0;J<nthreads;J++)
{
threads[J] = NULL;
threads[J] = new(std::nothrow) std::thread(
&narray_linspacef_tf,
&ret,
@@ -145,6 +146,7 @@ narray<double> linspace(const double low, const double high, narray_size_t N)
threads.resize(nthreads);
for(J=0;J<nthreads;J++)
{
threads[J] = NULL;
threads[J] = new(std::nothrow) std::thread(
&narray_linspace_tf,
&ret,
@@ -1,4 +1,4 @@
#include <amscppnarray/amscppnarray.hpp>
#include <amscppnarray25/amscppnarray25.hpp>
namespace ams
{
@@ -1,4 +1,4 @@
#include <amscppnarray/amscppnarray.hpp>
#include <amscppnarray25/amscppnarray25.hpp>
namespace ams
{
@@ -66,7 +66,7 @@ namespace rand
return ret;
}
vec2 dpr32_randuvec2(narray_rands_t *seed)
::ams::vec2 dpr32_randuvec2(narray_rands_t *seed)
{
vec2 ret = vec2(0,0);
double th = ams::narray::rand::dpr32_randd(seed)*2.0*pi;
@@ -74,7 +74,7 @@ namespace rand
return ret;
}
vec3 dpr32_randuvec3(narray_rands_t *seed)
ams::vec3 dpr32_randuvec3(narray_rands_t *seed)
{
vec3 ret;
double az,el;
@@ -86,7 +86,7 @@ namespace rand
return ret;
}
vec4 dpr32_randuvec4(narray_rands_t *seed)
ams::vec4 dpr32_randuvec4(narray_rands_t *seed)
{
vec4 ret;
double x,y,z,w;
@@ -101,7 +101,7 @@ namespace rand
return ret;
}
vec2f dpr32_randuvec2f(narray_rands_t *seed)
ams::vec2f dpr32_randuvec2f(narray_rands_t *seed)
{
vec2f ret = vec2f(0,0);
float th = ams::narray::rand::dpr32_randf(seed)*2.0*pi;
@@ -109,7 +109,7 @@ namespace rand
return ret;
}
vec3f dpr32_randuvec3f(narray_rands_t *seed)
ams::vec3f dpr32_randuvec3f(narray_rands_t *seed)
{
vec3f ret;
float az,el;
@@ -121,7 +121,7 @@ namespace rand
return ret;
}
vec4f dpr32_randuvec4f(narray_rands_t *seed)
ams::vec4f dpr32_randuvec4f(narray_rands_t *seed)
{
vec4f ret;
float x,y,z,w;
@@ -217,6 +217,7 @@ namespace rand
}
for(J=0;J<nthreads;J++)
{
threads[J] = NULL;
threads[J] = new(std::nothrow) std::thread(
&narray_rand_threadf1<T>,
out,
@@ -536,6 +537,7 @@ namespace rand
}
for(J=0;J<nthreads;J++)
{
threads[J] = NULL;
threads[J] = new(std::nothrow) std::thread(
&narray_rand_threadf2<T>,
out,
+1 -1
View File
@@ -1,4 +1,4 @@
#include <amscppnarray/amscppnarray.hpp>
#include <amscppnarray25/amscppnarray25.hpp>
int main(int argc, char* argv[])
{