/external/eigen/unsupported/doc/examples/ |
FFT.cpp | 34 T mag2(const std::vector<T> & vec) 37 for (size_t k=0;k<vec.size();++k) 38 out += mag2(vec[k]); 43 T mag2(const std::vector<std::complex<T> > & vec) 46 for (size_t k=0;k<vec.size();++k) 47 out += mag2(vec[k]); 61 void RandomFill(std::vector<T> & vec) 63 for (size_t k=0;k<vec.size();++k) 64 vec[k] = T( rand() )/T(RAND_MAX) - .5; 68 void RandomFill(std::vector<std::complex<T> > & vec) [all...] |
/external/jmonkeyengine/engine/src/bullet-native/ |
com_jme3_bullet_joints_SixDofJoint.cpp | 88 btVector3 vec = btVector3(); local 89 jmeBulletUtil::convert(env, vector, &vec); 90 joint->setLinearUpperLimit(vec); 106 btVector3 vec = btVector3(); local 107 jmeBulletUtil::convert(env, vector, &vec); 108 joint->setLinearLowerLimit(vec); 124 btVector3 vec = btVector3(); local 125 jmeBulletUtil::convert(env, vector, &vec); 126 joint->setAngularUpperLimit(vec); 142 btVector3 vec = btVector3() local [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
SkOffsetImageFilter.cpp | 31 SkVector vec; local 32 matrix.mapVectors(&vec, &fOffset, 1); 34 loc->fX += SkScalarRoundToInt(vec.fX); 35 loc->fY += SkScalarRoundToInt(vec.fY); 67 SkVector vec; local 68 ctm.mapVectors(&vec, &fOffset, 1); 71 dst->offset(SkScalarRoundToInt(vec.fX), SkScalarRoundToInt(vec.fY));
|
/external/e2fsprogs/lib/ext2fs/ |
tst_badblocks.c | 68 static errcode_t create_test_list(blk_t *vec, badblocks_list *ret) 79 for (i=0; vec[i]; i++) { 80 retval = ext2fs_badblocks_list_add(bb, vec[i]); 121 static void validate_test_seq(badblocks_list bb, blk_t *vec) 125 for (i = 0; vec[i]; i += 2) { 126 match = ext2fs_badblocks_list_test(bb, vec[i]); 127 if (match == vec[i+1]) 133 printf("\tblock %u is %s --- %s\n", vec[i], 139 static void do_test_seq(badblocks_list bb, blk_t *vec) 143 for (i = 0; vec[i]; i += 2) [all...] |
/external/skia/src/effects/ |
SkOffsetImageFilter.cpp | 31 SkVector vec; local 32 matrix.mapVectors(&vec, &fOffset, 1); 34 loc->fX += SkScalarRoundToInt(vec.fX); 35 loc->fY += SkScalarRoundToInt(vec.fY); 67 SkVector vec; local 68 ctm.mapVectors(&vec, &fOffset, 1); 71 dst->offset(SkScalarRoundToInt(vec.fX), SkScalarRoundToInt(vec.fY));
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
Vector3f.java | 164 * @param vec
168 public Vector3f add(Vector3f vec) {
169 if (null == vec) {
173 return new Vector3f(x + vec.x, y + vec.y, z + vec.z);
181 * @param vec
187 public Vector3f add(Vector3f vec, Vector3f result) {
188 result.x = x + vec.x;
189 result.y = y + vec.y; [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/chacha/ |
chacha_vec.c | 67 typedef unsigned vec __attribute__ ((vector_size (16))); typedef 79 #define ONE (vec)vsetq_lane_u32(1,vdupq_n_u32(0),0) 80 #define LOAD(m) (vec)(*((vec*)(m))) 81 #define STORE(m,r) (*((vec*)(m))) = (r) 82 #define ROTV1(x) (vec)vextq_u32((uint32x4_t)x,(uint32x4_t)x,1) 83 #define ROTV2(x) (vec)vextq_u32((uint32x4_t)x,(uint32x4_t)x,2) 84 #define ROTV3(x) (vec)vextq_u32((uint32x4_t)x,(uint32x4_t)x,3) 85 #define ROTW16(x) (vec)vrev32q_u16((uint16x8_t)x) 87 #define ROTW7(x) (x << ((vec){ 7, 7, 7, 7})) ^ (x >> ((vec){25,25,25,25}) [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
X509KeyManagerImpl.java | 123 Vector vec = new Vector(); local 126 vec.addElement(aliase.nextElement()); 129 String[] res = new String[vec.size()]; 130 for (i = 0; i < vec.size(); i++) { 131 res[i] = vec.elementAt(i).toString(); 167 Vector vec = new Vector(); local 170 vec.addElement(aliase.nextElement()); 173 String[] res = new String[vec.size()]; 174 for (i = 0; i < vec.size(); i++) { 175 res[i] = vec.elementAt(i).toString() [all...] |
/external/chromium_org/base/android/ |
command_line_android.cc | 21 std::vector<std::string> vec; local 23 base::android::AppendJavaStringArrayToStringVector(env, array, &vec); 25 vec.insert(vec.begin(), ""); 26 CommandLine extra_command_line(vec);
|
jni_array_unittest.cc | 21 std::vector<uint8> vec(5); 22 JavaByteArrayToByteVector(env, bytes.obj(), &vec); 23 EXPECT_EQ(4U, vec.size()); 24 EXPECT_EQ(std::vector<uint8>(kBytes, kBytes + kLen), vec); local 26 AppendJavaByteArrayToByteVector(env, bytes.obj(), &vec); 27 EXPECT_EQ(8U, vec.size()); 54 const std::vector<int> vec(kInts, kInts + kLen); 55 CheckIntConversion(env, kInts, kLen, ToJavaIntArray(env, vec)); 82 const std::vector<int64> vec(kLongs, kLongs + kLen); 83 CheckLongConversion(env, kLongs, kLen, ToJavaLongArray(env, vec)); 165 std::vector<std::string> vec; local [all...] |
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/ |
PhysicsRigidBody.java | 213 Vector3f vec = new Vector3f(); local 214 getPhysicsLocation(objectId, vec); 215 return vec; 436 Vector3f vec = new Vector3f(); local 437 getAngularVelocity(objectId, vec); 438 return vec; 441 private native void getAngularVelocity(long objectId, Vector3f vec); 445 * @param vec the vector to store the velocity in 447 public void getAngularVelocity(Vector3f vec) { 448 getAngularVelocity(objectId, vec); 467 Vector3f vec = new Vector3f(); local [all...] |
/external/chromium_org/chrome/browser/component_updater/ |
component_updater_configurator.cc | 61 // Returns true if and only if |test| is contained in |vec|. 62 bool HasSwitchValue(const std::vector<std::string>& vec, const char* test) { 63 if (vec.empty()) 65 return (std::find(vec.begin(), vec.end(), test) != vec.end()); 68 // If there is an element of |vec| of the form |test|=.*, returns the right- 72 std::string GetSwitchArgument(const std::vector<std::string>& vec, 74 if (vec.empty()) 76 for (std::vector<std::string>::const_iterator it = vec.begin() [all...] |
/external/apache-xml/src/main/java/org/apache/xpath/axes/ |
NodeSequence.java | 314 NodeVector vec = getVector(); local 315 if (null != vec) 318 if(m_next < vec.size()) 321 int next = vec.elementAt(m_next); 427 NodeVector vec = getVector(); local 428 if((currentIndex >= 0) && (currentIndex < vec.size())) 429 return vec.elementAt(currentIndex); 540 NodeVector vec = getVector(); local 541 if(null != vec) 543 int oldNode = vec.elementAt(index) 727 NodeVector vec = getVector(); local [all...] |
/external/valgrind/main/memcheck/tests/ |
origin6-fp.c | 24 double** vec; local 26 vec = malloc(nArr * sizeof(double*)); 27 assert(vec); 29 vec[i] = malloc(nArr * sizeof(double)); 30 assert(vec); 32 return vec;
|
/frameworks/native/services/sensorservice/ |
quat.h | 22 #include "vec.h" 30 mat<TYPE, 3, 3> quatToMatrix(const vec<TYPE, 4>& q) { 58 vec<TYPE, 4> matrixToQuat(const mat<TYPE, 3, 3>& R) { 67 vec<TYPE, 4> q; 83 vec<TYPE, 4> normalize_quat(const vec<TYPE, 4>& q) { 84 vec<TYPE, 4> r(q);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
IssuingDistributionPoint.java | 92 ASN1EncodableVector vec = new ASN1EncodableVector(); local 95 vec.add(new DERTaggedObject(true, 0, distributionPoint)); 99 vec.add(new DERTaggedObject(false, 1, ASN1Boolean.getInstance(true))); 103 vec.add(new DERTaggedObject(false, 2, ASN1Boolean.getInstance(true))); 107 vec.add(new DERTaggedObject(false, 3, onlySomeReasons)); 111 vec.add(new DERTaggedObject(false, 4, ASN1Boolean.getInstance(true))); 115 vec.add(new DERTaggedObject(false, 5, ASN1Boolean.getInstance(true))); 118 seq = new DERSequence(vec);
|
/external/clang/test/Sema/ |
vector-init.c | 21 __attribute__((vector_size(16))) float vec = {0.0f, 0.0f, 0.0f}; local 22 return(vec);
|
/external/clang/test/SemaCXX/ |
neon-vector-types.cpp | 35 extern float32x4_t vec; 37 float32x4_t __a = (vec);
|
/external/eigen/demos/opengl/ |
gpuhelper.cpp | 56 void GpuHelper::drawVector(const Vector3f& position, const Vector3f& vec, const Color& color, float aspect /* = 50.*/) 60 float length = vec.norm(); 63 Vector3f ax = Matrix3f::Identity().col(2).cross(vec); 65 Vector3f tmp = vec; 77 void GpuHelper::drawVectorBox(const Vector3f& position, const Vector3f& vec, const Color& color, float aspect) 81 float length = vec.norm(); 84 Vector3f ax = Matrix3f::Identity().col(2).cross(vec); 86 Vector3f tmp = vec;
|
/external/openssh/ |
monitor_fdpass.c | 58 struct iovec vec; local 77 vec.iov_base = &ch; 78 vec.iov_len = 1; 79 msg.msg_iov = &vec; 119 struct iovec vec; local 126 vec.iov_base = &ch; 127 vec.iov_len = 1; 128 msg.msg_iov = &vec;
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
sparse_weight_vector.h | 115 void LoadWeightVector(const SparseWeightVector<Key, Hash> &vec) { 117 w_.insert(vec.w_.begin(), vec.w_.end()); 118 wmax_.insert(vec.wmax_.begin(), vec.wmax_.end()); 119 wmin_.insert(vec.wmin_.begin(), vec.wmin_.end()); 120 normalizer_ = vec.normalizer_;
|
/external/eigen/Eigen/src/Cholesky/ |
LLT_MKL.h | 75 static typename MatrixType::Index rankUpdate(MatrixType& mat, const VectorType& vec, const typename MatrixType::RealScalar& sigma) \ 76 { return Eigen::internal::llt_rank_update_lower(mat, vec, sigma); } \ 86 static typename MatrixType::Index rankUpdate(MatrixType& mat, const VectorType& vec, const typename MatrixType::RealScalar& sigma) \ 89 return llt_inplace<EIGTYPE, Lower>::rankUpdate(matt, vec.conjugate(), sigma); \
|
/external/chromium_org/native_client_sdk/src/examples/demo/flock/ |
vector2.h | 32 // Add |vec| to this vector. Works in-place. 33 void Add(const Vector2& vec) { 34 x_ += vec.x(); 35 y_ += vec.y();
|
/frameworks/native/libs/binder/ |
BufferedTextOutput.cpp | 192 struct iovec vec; local 193 vec.iov_base = (void*)first; 194 vec.iov_len = lastLine-first; 195 //printf("Writing %d bytes of data!\n", vec.iov_len); 196 writeLines(vec, 1); 211 struct iovec vec; local 212 vec.iov_base = b->buffer; 213 vec.iov_len = b->bufferPos; 214 //printf("Writing %d bytes of data!\n", vec.iov_len); 215 writeLines(vec, 1) 252 struct iovec vec; local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
texcompress_fxt1.c | 290 fxt1_bestcol (GLfloat vec[][MAX_COMP], GLint nv, 299 e += (vec[j][i] - input[i]) * (vec[j][i] - input[i]); 312 fxt1_worst (GLfloat vec[MAX_COMP], 321 e += (vec[i] - input[k][i]) * (vec[i] - input[k][i]); 364 fxt1_choose (GLfloat vec[][MAX_COMP], GLint nv, 375 vec[j][i] = input[m][i]; 435 vec[j][i] = (GLfloat)input[hist[j].idx][i]; 440 vec[j][i] = vec[0][i] 564 GLfloat vec[MAX_VECT][MAX_COMP]; local 606 GLfloat vec[MAX_VECT][MAX_COMP]; local 658 GLfloat vec[1 + 1 + 1][MAX_COMP]; \/* 1.5 extrema for each sub-block *\/ local 891 GLubyte vec[2 * 2][MAX_COMP]; \/* 2 extrema for each sub-block *\/ local 1029 GLubyte vec[2 * 2][MAX_COMP]; \/* 2 extrema for each sub-block *\/ local [all...] |