Lines Matching refs:v1
76 v1 = rand(CeedScalar, n)
77 v2 = CeedVector(c, v1)
78 @test @witharray_read(a = v2, mtype = MEM_HOST, a == v1)
79 @test Vector(v2) == v1
80 v[] = v1
82 @test norm(v, p) ≈ norm(v1, p)
85 @test witharray_read(sum, v) == sum(v1)
87 @test @witharray(a = v, mtype = MEM_HOST, all(a .== CeedScalar(1.0)./v1))
101 setarray!(v, MEM_HOST, USE_POINTER, v1)
103 @test @witharray_read(a = v, a == v1)
105 @test p == pointer(v1)
244 v1 = CeedVector(c, v)
246 apply!(op, v1, v2)
247 @test @witharray_read(a1 = v1, @witharray_read(a2 = v2, a1 == a2))
248 apply_add!(op, v1, v2)
249 @test @witharray_read(a1 = v1, @witharray_read(a2 = v2, a1 + a1 == a2))
338 v1 = CeedVector(c, v)
340 apply!(id, Q, [v1], [v2])
345 apply!(id2, Q, [v1], [v2])
367 v1 = rand(CeedScalar, dim)
369 cv1 = CeedVector(c, v1)
374 @test @witharray_read(v3 = cv3, v3[1] == v2[1]*sum(v1))
426 v1 = apply(b1, u1)
429 @test v1[i] ≈ -1.0
430 @test v1[q1+i] ≈ 1.0