27#include "neml2/tensors/TensorBase.h"
109Tensor
operator*(
const Tensor & a,
const Tensor & b);
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:56
NEML2's enhanced tensor type.
Definition TensorBase.h:46
TensorBase()=default
Default constructor.
static Tensor empty(const TensorShapeRef &base_shape, const torch::TensorOptions &options=default_tensor_options())
Unbatched empty tensor given base shape.
Definition Tensor.cxx:30
static Tensor ones(const TensorShapeRef &base_shape, const torch::TensorOptions &options=default_tensor_options())
Unbatched tensor filled with ones given base shape.
Definition Tensor.cxx:60
static Tensor zeros(const TensorShapeRef &base_shape, const torch::TensorOptions &options=default_tensor_options())
Unbatched tensor filled with zeros given base shape.
Definition Tensor.cxx:45
static Tensor identity(Size n, const torch::TensorOptions &options=default_tensor_options())
Unbatched identity tensor.
Definition Tensor.cxx:91
static Tensor full(const TensorShapeRef &base_shape, Real init, const torch::TensorOptions &options=default_tensor_options())
Unbatched tensor filled with a given value given base shape.
Definition Tensor.cxx:75
Tensor bmv(const Tensor &a, const Tensor &v)
Batched matrix-vector product.
Definition Tensor.cxx:120
Tensor bvv(const Tensor &a, const Tensor &b)
Batched vector-vector (dot) product.
Definition Tensor.cxx:135
Tensor bmm(const Tensor &a, const Tensor &b)
Batched matrix-matrix product.
Definition Tensor.cxx:105
Definition CrossRef.cxx:30
Vec operator*(const Derived1 &A, const Derived2 &b)
matrix-vector product
Definition R2Base.cxx:233
torch::TensorOptions & default_tensor_options()
Definition types.cxx:30
double Real
Definition types.h:31
int64_t Size
Definition types.h:33
torch::IntArrayRef TensorShapeRef
Definition types.h:35