SingleCFWavefunction<TIndex>.SelectIndex<TNewIndex> Method

Definition

Changes the indexing scheme of this instance.

public Microsoft.Quantum.Chemistry.Fermion.SingleCFWavefunction<TNewIndex> SelectIndex<TNewIndex> (Func<TIndex,TNewIndex> indexFunction) where TNewIndex : IEquatable<TNewIndex>, IComparable<TNewIndex>;
override this.SelectIndex : Func<'Index, 'NewIndex (requires 'Index :> IEquatable<'Index> and 'Index :> IComparable<'Index> and 'NewIndex :> IEquatable<'NewIndex> and 'NewIndex :> IComparable<'NewIndex>)> -> Microsoft.Quantum.Chemistry.Fermion.SingleCFWavefunction<'NewIndex (requires 'NewIndex :> IEquatable<'NewIndex> and 'NewIndex :> IComparable<'NewIndex>)> (requires 'NewIndex :> IEquatable<'NewIndex> and 'NewIndex :> IComparable<'NewIndex>)
Public Function SelectIndex(Of TNewIndex As {IEquatable(Of TNewIndex), IComparable(Of TNewIndex)}) (indexFunction As Func(Of TIndex, TNewIndex)) As SingleCFWavefunction(Of TNewIndex)

Type Parameters

TNewIndex

Type of the new indexing scheme.

Parameters

indexFunction
Func<TIndex,TNewIndex>

Function for mapping the current scheme to the new scheme.

Returns

SingleCFWavefunction<TNewIndex>

Instance with a new index type.

Applies to