22#include "testing/testing.h"
104 EXPECT_TRUE(a.Contains(last));
105 EXPECT_FALSE(a.Contains(shape));
113 int size = 24 +
sizeof(a);
172 EXPECT_EQ(2, *(a.Data() + a.Stride(0) + a.Stride(1)));
183 EXPECT_EQ(2, *(a.Data() + a.Stride(0) + a.Stride(1) + a.Stride(2)));
194 EXPECT_FLOAT_EQ(1.0f,
b(0, 0, 0));
195 EXPECT_FLOAT_EQ(2.0f,
b(0, 1, 0));
196 EXPECT_FLOAT_EQ(3.0f,
b(1, 0, 0));
197 EXPECT_FLOAT_EQ(4.0f,
b(1, 1, 0));
213 EXPECT_FLOAT_EQ(6, c(0, 0, 0));
214 EXPECT_FLOAT_EQ(10, c(0, 1, 0));
215 EXPECT_FLOAT_EQ(12, c(1, 0, 0));
216 EXPECT_FLOAT_EQ(12, c(1, 1, 0));
231 EXPECT_FALSE(a !=
b);
234 EXPECT_FALSE(a ==
b);
278TEST(Array3Df, SplitChannels) {
288 for (
int row = 0; row < 1; ++row) {
289 for (
int column = 0; column < 2; ++column) {
301 int shape[] = {1, 3, 5, 7, 1};
310 for (
int d0 = 0; d0 < shape[0]; ++d0) {
311 for (
int d1 = 0; d1 < shape[1]; ++d1) {
312 for (
int d2 = 0; d2 < shape[2]; ++d2) {
313 for (
int d3 = 0; d3 < shape[3]; ++d3) {
314 for (
int d4 = 0; d4 < shape[4]; ++d4) {
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
ATTR_WARN_UNUSED_RESULT const BMLoop * l
3D array (row, column, channel).
A multidimensional array class.
void Resize(const Index &new_shape)
Create an array of shape s.
local_group_size(16, 16) .push_constant(Type b
void SplitChannels(const Array3Df &input, Array3Df *channel0, Array3Df *channel1, Array3Df *channel2)
Array3D< float > Array3Df
void MultiplyElements(const AArrayType &a, const BArrayType &b, CArrayType *c)
static void copy(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node)