Searched refs:array (Results 1 - 25 of 82) sorted by relevance

1234

/gem5/src/systemc/tests/systemc/datatypes/fx/constructors/
H A Dmain.cpp59 extern void array();
69 array();
/gem5/src/systemc/tests/systemc/datatypes/fx/fast_constructors/
H A Dmain.cpp61 extern void array();
71 array();
/gem5/ext/pybind11/tests/
H A Dtest_numpy_vectorize.py11 assert np.isclose(m.vectorized_func3(np.array(3 + 7j)), [6 + 14j])
18 assert np.isclose(f(np.array(1), np.array(2), 3), 6)
21 assert np.allclose(f(np.array([1, 3]), np.array([2, 4]), 3), [6, 36])
27 a = np.array([[1, 2], [3, 4]], order='F')
28 b = np.array([[10, 20], [30, 40]], order='F')
41 a, b, c = np.array([[1, 3, 5], [7, 9, 11]]), np.array([[2, 4, 6], [8, 10, 12]]), 3
52 a, b, c = np.array([[
[all...]
H A Dtest_numpy_array.py27 return np.array([[1, 2, 3], [4, 5, 6]], '=u2')
31 a = np.array(0, 'f8')
47 a = np.array([[1, 2, 3], [4, 5, 6]], 'u2').view()
82 assert str(excinfo.value) == 'too many indices for an array: 3 (ndim = 2)'
118 assert str(excinfo.value) == 'array is not writeable'
186 a1 = np.array([1, 2], dtype=np.int16)
191 a1 = np.array([[1, 2], [3, 4]], dtype=np.float32, order='F')
196 a1 = np.array([[1, 2], [3, 4]], dtype=np.float32, order='C')
223 assert np.all(ac_view_1 == np.array([1, 2], dtype=np.int32))
252 assert m.isinstance_untyped(np.array([
[all...]
H A Dtest_numpy_vectorize.cpp2 tests/test_numpy_vectorize.cpp -- auto-vectorize functions over NumPy array
41 m.def("selective_func", [](py::array_t<int, py::array::c_style>) { return "Int branch taken."; });
42 m.def("selective_func", [](py::array_t<float, py::array::c_style>) { return "Float branch taken."; });
43 m.def("selective_func", [](py::array_t<std::complex<float>, py::array::c_style>) { return "Complex float branch taken."; });
80 py::array_t<int, py::array::forcecast> arg1,
81 py::array_t<float, py::array::forcecast> arg2,
82 py::array_t<double, py::array::forcecast> arg3
86 std::array<py::buffer_info, 3> buffers {{ arg1.request(), arg2.request(), arg3.request() }};
H A Dtest_eigen.py10 ref = np.array([[ 0., 3, 0, 0, 0, 11],
44 ref2 = np.array([[0., 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]])
89 m.fixed_mutator_a(np.array([[1, 2], [3, 4]], dtype='float32'))
102 z = np.array([[5., 6], [7, 8]])
156 copy or const reference, we can pass a numpy array that has negative strides. Otherwise, an
157 exception will be thrown as Eigen will not be able to map the numpy array."""
184 Invoked with: """ + repr(np.array([ 5., 4., 3.], dtype='float32')) # noqa: E501 line too long
192 Invoked with: """ + repr(np.array([ 7., 4., 1.], dtype='float32')) # noqa: E501 line too long
209 mymat = chol(np.array([[1., 2, 4], [2, 13, 23], [4, 23, 77]]))
210 assert np.all(mymat == np.array([[
[all...]
H A Dtest_buffers.py14 m.Matrix(np.array([1, 2, 3])) # trying to assign a 1D array
17 m3 = np.array([[1, 2, 3], [4, 5, 6]]).astype(np.float32)
35 # PyPy: Memory leak in the "np.array(m, copy=False)" call
50 mat2 = np.array(mat, copy=False)
H A Dtest_numpy_dtypes.cpp77 std::array<char, 3> b;
92 std::array<uint8_t, 3> c;
93 std::array<float, 2> d[4];
143 py::array mkarray_via_buffer(size_t n) {
144 return py::array(py::buffer_info(nullptr, sizeof(T),
195 auto fill = [](py::array arr) {
204 case 11: return py::array(shape, strides, ptr);
205 case 12: return py::array(dtype, shape, strides, vptr);
207 case 14: return py::array(shape, ptr);
208 case 15: return py::array(dtyp
[all...]
/gem5/src/mem/cache/compressors/
H A Dcpack.hh47 #include <array>
84 const std::array<uint8_t, 4>& bytes,
85 const std::array<uint8_t, 4>& dict_bytes, const int match_location)
109 const std::array<uint8_t, 4>& bytes,
110 const std::array<uint8_t, 4>& dict_bytes, const int match_location)
127 std::vector<std::array<uint8_t, 4>> dictionary;
363 virtual bool decompress(const std::array<uint8_t, 4> dict_bytes,
364 std::array<uint8_t, 4>& data) const = 0;
370 PatternZZZZ(const std::array<uint8_t, 4> bytes, const int match_location)
373 static bool isPattern(const std::array<uint8_
[all...]
/gem5/src/systemc/tests/systemc/misc/synth/blast/blast1/
H A Dblast1.cpp40 SC_MODULE( array )
42 SC_HAS_PROCESS( array );
54 array( sc_module_name NAME, function
72 array::entry()
/gem5/src/systemc/tests/systemc/misc/synth/blast/blast2/
H A Dblast2.cpp40 SC_MODULE( array )
42 SC_HAS_PROCESS( array );
54 array( sc_module_name NAME, function
72 array::entry()
/gem5/src/systemc/tests/systemc/misc/synth/blast/blast3/
H A Dblast3.cpp40 SC_MODULE( array )
42 SC_HAS_PROCESS( array );
55 array( sc_module_name NAME, function
75 array::entry()
/gem5/src/cpu/
H A Dfunc_unit.hh34 #include <array>
88 std::array<unsigned, Num_OpClasses> opLatencies;
89 std::array<bool, Num_OpClasses> pipelined;
/gem5/src/cpu/o3/
H A Dfu_pool.hh46 #include <array>
75 std::array<Cycles, Num_OpClasses> maxOpLatencies;
77 std::array<bool, Num_OpClasses> pipelined;
/gem5/ext/systemc/src/sysc/datatypes/fx/
H A Dscfx_mant.cpp110 scfx_mant::free_word( word* array, std::size_t size ) argument
112 if( array && size )
115 word_list* wl_p = (word_list*)array;
/gem5/src/systemc/dt/fx/
H A Dscfx_mant.cc106 scfx_mant::free_word(word *array, std::size_t size) argument
108 if (array && size) {
110 word_list *wl_p = (word_list *)array;
/gem5/src/arch/x86/
H A Dmemhelpers.hh35 #include <array>
79 getPackedMem(PacketPtr pkt, std::array<uint64_t, N> &mem, unsigned dataSize)
81 std::array<T, N> real_mem = pkt->getLE<std::array<T, N> >();
88 getMem(PacketPtr pkt, std::array<uint64_t, N> &mem, unsigned dataSize,
125 readPackedMemAtomic(ExecContext *xc, Addr addr, std::array<uint64_t, N> &mem,
128 std::array<T, N> real_mem;
142 std::array<uint64_t, N> &mem, unsigned dataSize,
164 writePackedMem(ExecContext *xc, std::array<uint64_t, N> &mem, Addr addr,
167 std::array<
[all...]
/gem5/ext/googletest/googlemock/include/gmock/internal/
H A Dgmock-internal-utils.h351 // DecayArray<T>::type turns an array type U[N] to const U* and preserves
391 // native array, class StlContainerView<RawContainer> has the
420 // This specialization is used when RawContainer is a native array type.
426 // NativeArray<T> can represent a native array either by value or by
428 // can be used to reference a const native array. We cannot
433 static const_reference ConstReference(const Element (&array)[N]) {
449 // conversion of it doesn't help - only the conversion of the array).
450 return type(const_cast<Element*>(&array[0]), N,
453 return type(array, N, RelationToSourceReference());
456 static type Copy(const Element (&array)[
475 ConstReference( const ::testing::tuple<ElementPointer, Size>& array) argument
479 Copy(const ::testing::tuple<ElementPointer, Size>& array) argument
[all...]
/gem5/src/sim/
H A Dmathexpr.hh44 #include <array>
88 std::array<OpSearch, uNeg + 1> ops;
H A Dfd_array.hh39 #include <array>
49 * Initialize the file descriptor array and set the standard file
74 * @param tgt_fd Use target file descriptors to index the array.
80 * Treat this object like a normal array in using the subscript operator
82 * @param tgt_fd Use target file descriptors to index the array.
96 * Step through the file descriptor array and find the first available
111 * @param tgt_fd Use target file descriptors to index the array.
127 * provided. (The index is protected with bounds checking on the array
128 * size without the use of the array's at operator.)
129 * @param tgt_fd Use target file descriptors to index the array
[all...]
/gem5/util/
H A Drundiff115 my ($fh, $array) = @_;
117 while (@$array < $lookahead_lines) {
120 push @$array, $line;
124 # Print and delete n lines from front of given array with given prefix.
127 my ($array, $n, $prefix) = @_;
130 my $line = shift @$array;
/gem5/util/stats/
H A Dbarchart.py32 from matplotlib.numerix import array, arange, reshape, shape, transpose, zeros
69 data = array(data)
78 self.chartdata = array([[data]])
81 # chart with groups. The matrix being an array of groups of
86 # If the input data is a 3d matrix, then it describes an array
87 # of groups of bars with each bar being an array of stacked
103 err = array(err)
110 self.charterr = array([[err]])
172 colors = array(colors)
207 bottom = array([0.
[all...]
/gem5/ext/pybind11/include/pybind11/
H A Dnumpy.h16 #include <array>
40 class array; // Forward declaration
274 template <typename T, size_t N> struct is_std_array<std::array<T, N>> : std::true_type { };
285 // Computes underlying type and a comma-separated list of extents for array
286 // types (any mix of std::array and built-in arrays). An array of char is
289 template <typename T, size_t N> struct array_info<std::array<T, N>> {
306 // the size in the array extents.
308 template <size_t N> struct array_info<std::array<char, N>> : array_info_scalar<std::array<cha
[all...]
/gem5/src/base/gtest/
H A Dlogging.cc30 #include <array>
/gem5/tests/test-progs/asmtest/src/riscv/isa/rv64uamt/
H A Damoor_d.S76 la t0, array
78 ld t0, (t0) // get array[array_index]

Completed in 30 milliseconds

1234