Skip to content

Instantly share code, notes, and snippets.

Felipe Cortés fcortes

Block or report user

Report or block fcortes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am fcortes on github.
  • I am cortes (https://keybase.io/cortes) on keybase.
  • I have a public key whose fingerprint is 4B48 B656 55A6 56CC 148B C092 3507 A48C CDEC E80B

To claim this, I am signing this object:

View linear_operator.cpp
#include "linear_operator.h"
template<class F, class G>
Vector<G> LinearOperator<F, G>::Apply(const Vector<F>& vec) const {
G* dt = new G[vec.GetLength()];
for(int i = 0; i < vec.GetLength(); i++) {
dt[i] = vec.Get(i) * 2;
}
return Vector<G>(vec.GetLength(), dt);
You can’t perform that action at this time.