Real intnl_old,constRankTwoTensor& stress, Real intnl,constRankFourTensor & E_ijkl,conststd::vector<Real> & cumulative_pm)const{if(!_use_custom_cto)returnTensorMechanicsPlasticModel::consistentTangentOperator(trial_stress, intnl_old, stress, intnl, E_ijkl, cumulative_pm); ...
equiformer_v2.equiformer_v2 import eqv2_init_weights from fairchem.core.models.equiformer_v2.layer_norm import get_normalization_layer class Rank2Block(nn.Module): """ Output block for predicting rank-2 tensors (stress, dielectric tensor). Applies outer product between edges and computes ...
classSum(object):rank=Nonedefget_shape(self,sy):returnsy[:-1]definterp(self,sy,vy,vz):p=product(sy[:-1])foriinxrange(p):vz[i]=0foriinxrange(sy[-1]):vyi=vy.subview(i,sy[-1])forjinxrange(p):vz[j]+=vyi[j] 先算出dimension的积,这样多个循环就合并成了一个循环 defproduct(...
If we say that a tensor is a rank 2 tensor, we mean that the tensor has 2 dimensions, or equivalently, the tensor has two axes. Elements are said to exist or run along an axis. This running is constrained by the length of each axis. Let's look at the length of an axis now. ...
Structured Rank-(r1, . . . , rd) Decomposition of Function-related Tensors in R_D The structured tensor-product approximation of multidimensional nonlocal operators by a two-level rank-(r1, . . . , rd) decomposition of related higher-ord... Khoromskij,N B. - 《Computational Methods in...
Straightforward intermediate rank tensor product smoothing in mixed models. Statistics and Computing, 23, 341-3601.Wood, S. N., F. Scheipl, and J. J. Faraway (2013). "Straightforward intermediate rank tensor product smoothing in mixed models". In: Statistics and Computing 23.3, pp. 341-360...
We consider the case of a bilinear tensor product in detail and show that the conserved currents built from bilinear of rank-1 fields in M M satisfy the field equations for rank-2 fields in M M. We also show that rank-2 fields in M M are equivalent to rank-1 fields in M 2M...
self.assertEqual(2, tf.rank(t).eval()) 开发者ID:Qstar,项目名称:tensorflow,代码行数:11,代码来源:array_ops_test.py 示例3: testSparseShape ▲点赞 3▼ deftestSparseShape(self):withself.test_session(): sp_value = tf.SparseTensorValue(indices=((0,1), (1,0)), values=(42,24), shape...
6) second-order anti-symmetrical tensor 二阶反对称张量 1. Based on the conception of velocity of rotation around a fixed point of rigid body, this paper rigidly proves that angular velocity is second-order anti-symmetrical tensor, and velocity vector is vector product of angular velocity and ...
Tensor rank decomposition