Einsums/Tensor/TensorForward.hpp#

Defined in header Einsums/Tensor/TensorForward.hpp.

See Overview for a list of names and headers that are part of the public Einsums API.

Defines

TENSOR_EXPORT_TR(tensortype, type, rank)#

Creates an exported template declaration for a tensor with the given type and rank.

Parameters:
  • tensortype – The kind of tensor to declare.

  • type – The type held by that tensor.

  • rank – The rank of the tensor.

TENSOR_EXPORT_RANK(tensortype, rank)#

Creates exported template declarations for a tensor with the given rank, and for each stored type from float , double , std::complex<float> , and std::complex<double> .

Parameters:
  • tensortype – The type of tensor to declare.

  • rank – The rank of the tensor.

TENSOR_EXPORT(tensortype)#

Creates exported template declarations for a tensor for each stored type from float , double , std::complex<float> , and std::complex<double> , and for all ranks between 1 and 4 inclusive.

Parameters:
  • tensortype – The type of tensor to declare.

TENSOR_DEFINE_TR(tensortype, type, rank)#

Creates an exported template definition for a tensor with the given type and rank.

Parameters:
  • tensortype – The kind of tensor to define.

  • type – The type held by that tensor.

  • rank – The rank of the tensor.

TENSOR_DEFINE_RANK(tensortype, rank)#

Creates exported template definitions for a tensor with the given rank, and for each stored type from float , double , std::complex<float> , and std::complex<double> .

Parameters:
  • tensortype – The type of tensor to define.

  • rank – The rank of the tensor.

TENSOR_DEFINE(tensortype)#

Creates exported template definitions for a tensor for each stored type from float , double , std::complex<float> , and std::complex<double> , and for all ranks between 1 and 4 inclusive.

Parameters:
  • tensortype – The type of tensor to define.

TENSOR_EXPORT_TR_DISK_VIEW(tensortype, type, view_rank, rank)#

Creates an exported template declaration for a tensor with the given type and rank.

Parameters:
  • tensortype – The kind of tensor to declare.

  • type – The type held by that tensor.

  • view_rank – The rank of the view.

  • rank – The rank of the base tensor.

TENSOR_EXPORT_RANK_DISK_VIEW(tensortype, view_rank, rank)#

Creates exported template declarations for a tensor with the given rank, and for each stored type from float , double , std::complex<float> , and std::complex<double> .

Parameters:
  • tensortype – The type of tensor to declare.

  • view_rank – The rank of the view.

  • rank – The rank of the base tensor.

TENSOR_EXPORT_RANK2_DISK_VIEW(tensortype, rank)#

Creates exported template declarations for a tensor for each stored type from float , double , std::complex<float> , and std::complex<double> , and for all view ranks between 1 and 4 inclusive.

Parameters:
  • tensortype – The type of tensor to declare.

  • rank – The rank of the base tensor.

TENSOR_EXPORT_DISK_VIEW(tensortype)#

Creates exported template declarations for a tensor for each stored type from float , double , std::complex<float> , and std::complex<double> , and for all ranks and view ranks between 1 and 4 inclusive.

Parameters:
  • tensortype – The type of tensor to declare.

TENSOR_DEFINE_TR_DISK_VIEW(tensortype, type, view_rank, rank)#

Creates an exported template definition for a tensor with the given type and rank.

Parameters:
  • tensortype – The kind of tensor to define.

  • type – The type held by that tensor.

  • view_rank – The rank of the view

  • rank – The rank of the tensor.

TENSOR_DEFINE_RANK_DISK_VIEW(tensortype, view_rank, rank)#

Creates exported template definitions for a tensor with the given rank, and for each stored type from float , double , std::complex<float> , and std::complex<double> .

Parameters:
  • tensortype – The type of tensor to define.

  • view_rank – The rank of the view.

  • rank – The rank of the base tensor.

TENSOR_DEFINE_RANK2_DISK_VIEW(tensortype, rank)#

Creates exported template definitions for a tensor for each stored type from float , double , std::complex<float> , and std::complex<double> , and for all view ranks between 1 and 4 inclusive.

Parameters:
  • tensortype – The type of tensor to define.

  • rank – The rank of the base tensor.

TENSOR_DEFINE_DISK_VIEW(tensortype)#

Creates exported template definitions for a tensor for each stored type from float , double , std::complex<float> , and std::complex<double> , and for all ranks and view ranks between 1 and 4 inclusive.

Parameters:
  • tensortype – The type of tensor to define.

namespace einsums

Todo:

struct TensorPrintOptions#
#include <TensorForward.hpp>

Represents options and default options for printing tensors.

Public Members

int width = {7}#

How many columns of tensor data are printed per line.

bool full_output = {true}#

Print the tensor data (true) or just name and data span information (false).