Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/lsw9021/DexterousManipulation
13 October 2021, 00:36:27 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    No releases to show
  • 7cca30f
  • /
  • fem
  • /
  • Constraint
  • /
  • Cst.h
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:3e25657fefa9a266c6495f87c12cfaad5a730c3f
origin badgedirectory badge
swh:1:dir:7adf1921f8bba74d9a0923d92249b1e3d98bdf1e
origin badgerevision badge
swh:1:rev:11269e20e5283c3f31b6ce1ea9a4805c8bdeecac
origin badgesnapshot badge
swh:1:snp:39de196a0865c6816c958d6b123bc74f85735191

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 11269e20e5283c3f31b6ce1ea9a4805c8bdeecac authored by Lee Seung Hwan on 07 October 2021, 05:40:43 UTC
Create LICENSE
Tip revision: 11269e2
Cst.h
#ifndef __FEM_CST_H__
#define __FEM_CST_H__
#include <Eigen/Core>
#include <Eigen/Sparse>
#include <Eigen/Geometry>
#include <string>
#include <memory>
namespace FEM
{
class Cst
{
public:
	EIGEN_MAKE_ALIGNED_OPERATOR_NEW
	
	virtual void EvaluatePotentialEnergy(const Eigen::VectorXd& x) = 0;
	virtual void EvaluateGradient(const Eigen::VectorXd& x) = 0;
	virtual void EvaluateHessian(const Eigen::VectorXd& x) = 0;

	virtual void GetPotentialEnergy(double& e) = 0;
	virtual void GetGradient(Eigen::VectorXd& g) = 0;
	virtual void GetHessian(std::vector<Eigen::Triplet<double>>& h_triplets) = 0;

	virtual void EvaluateDVector(const Eigen::VectorXd& x) = 0;
	virtual void GetDVector(int& index,Eigen::VectorXd& d) = 0;
	virtual void EvaluateJMatrix(int& index, std::vector<Eigen::Triplet<double>>& J_triplets) = 0;
	virtual void EvaluateLMatrix(std::vector<Eigen::Triplet<double>>& L_triplets) = 0;

	virtual int GetNumHessianTriplets() = 0;
	virtual void AddOffset(int offset) = 0;

	Cst(const Cst& other) = delete;
	Cst& operator=(const Cst& other) = delete;
	virtual std::shared_ptr<Cst> Clone() = 0;

	bool Equal(const std::shared_ptr<Cst>& other){return !(other->mName.compare(this->mName));}
	std::string GetName(){return mName;};
protected:
	Cst(const std::string& name,double k):mName(name),mStiffness(k){};
	double mStiffness;
	std::string mName;

};

};
#endif

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API