Skip to content

Missing basic Matrix Operations #87

@Xyhlon

Description

@Xyhlon

In the commit history a trace method used to exits, why doesn't it exist anymore. 215ccdc
I would be great to support this because the following code is a bit unergonomic.

        let trace_val = exp_neg_beta_H.trace();

instead of:

        let trace_val = exp_neg_beta_H.to_diag().reduce(C64::new(0.0,0.0), |acc, elem| acc+elem);

Furthermore other Matrix Operations like:
Hermitian Conjugation

exp_neg_beta_H.t().fmap(|x| x.conj())
// vs
exp_neg_beta_H.h()

real and imaginary part operators.

Support for rusts built-in iter trait.

Matrix Exponentials

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions