22#include "testing/testing.h"
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));
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) {
Tuple< int, N > Index
Type for the multidimensional indices.
3D array (row, column, channel).
A multidimensional array class.
const Index & Shape() const
Return a tuple containing the length of each axis.
#define EXPECT_FALSE(result)
#define EXPECT_TRUE(result)
#define EXPECT_EQ(result, expect)
struct bMotionPath * copy(const struct bMotionPath *mpath_src)
int size(const AssetLibraryReference *library_reference)
ATTR_WARN_UNUSED_RESULT const BMLoop * l
void SplitChannels(const Array3Df &input, Array3Df *channel0, Array3Df *channel1, Array3Df *channel2)
Array3D< float > Array3Df
void MultiplyElements(const AArrayType &a, const BArrayType &b, CArrayType *c)