1 #ifndef SimTK_SIMMATRIX_MATRIX_HELPER_H_ 2 #define SimTK_SIMMATRIX_MATRIX_HELPER_H_ 175 int n,
const int* indices);
177 int n,
const int* indices);
231 bool isClear()
const;
238 const S* getElt(
int i,
int j)
const;
239 S* updElt(
int i,
int j);
242 const S* getElt(
int i)
const;
248 void getAnyElt(
int i,
int j, S* value)
const;
251 void getAnyElt(
int i, S* value)
const;
255 void sum(S* eltp)
const;
256 void colSum(
int j, S* eltp)
const;
257 void rowSum(
int i, S* eltp)
const;
266 void fillWith(
const S* eltp);
271 void copyInByRowsFromCpp(
const S* elts);
276 void fillWithScalar(
const StdNumber&);
280 void scaleBy(
const StdNumber&);
285 void invertInPlace();
287 void dump(
const char* msg=0)
const;
296 ptrdiff_t nelt()
const;
307 void resize(
int m,
int n);
313 void resizeKeep(
int m,
int n);
324 bool hasContiguousData()
const;
325 ptrdiff_t getContiguousDataLength()
const;
326 const S* getContiguousData()
const;
327 S* updContiguousData();
329 void replaceContiguousData(S* newData, ptrdiff_t length,
bool takeOwnership);
330 void replaceContiguousData(
const S* newData, ptrdiff_t length);
331 void swapOwnedContiguousData(S* newData, ptrdiff_t length, S*& oldData);
339 void deleteRepIfOwner();
356 template <
class SA,
class SB>
357 void matmul(
const StdNumber& beta,
366 #endif // SimTK_SIMMATRIX_MATRIX_HELPER_H_ Here we define class MatrixHelper<S>, the scalar-type templatized helper class for the more general...
Definition: MatrixHelper.h:79
MatrixHelper(const MatrixCommitment &mc, const MatrixHelper &h, const Array_< int > &indices)
Definition: MatrixHelper.h:180
#define SimTK_SimTKCOMMON_EXPORT
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:218
Definition: MatrixHelper.h:48
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation source
Definition: LICENSE.txt:26
This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition: Assembler.h:37
A MatrixCharacter is a set containing a value for each of the matrix characteristics except element t...
Definition: MatrixCharacteristics.h:597
Definition: MatrixHelper.h:95
size_type size() const
Return the current number of elements stored in this array.
Definition: Array.h:2037
const T * cbegin() const
Return a const pointer to the first element of this array if any, otherwise cend(), which may be null (0) in that case but does not have to be.
Definition: Array.h:2172
m
Definition: CMakeCache.txt:469
ELEM sum(const VectorBase< ELEM > &v)
Definition: VectorMath.h:147
MatrixHelper(const MatrixCommitment &mc, MatrixHelper &h, const Array_< int > &indices)
Definition: MatrixHelper.h:183
K::Precision Precision
Definition: CompositeNumericalTypes.h:164
CNT< S >::Precision Precision
Definition: MatrixHelper.h:86
CNT< S >::StdNumber StdNumber
Definition: MatrixHelper.h:85
This is a user-includable header which includes everything needed to make use of SimMatrix Scalar cod...
MatrixHelperRep< S > * stealRep()
Definition: MatrixHelper.h:336
CNT< S >::Number Number
Definition: MatrixHelper.h:84
~MatrixHelper()
Definition: MatrixHelper.h:92
K::StdNumber StdNumber
Definition: CompositeNumericalTypes.h:163
MatrixHelperRep< S > & updRep()
Definition: MatrixHelper.h:334
gikDdMV wfaIJt A٩t1 JcA nr S q is3 ֧ VK C 9Z D q Fxn n T Y < ['jd< K JvTMH"sw>}o_o? z'z:mV$yng͖i۸J{ Ta*dE|lzbX@!^Ooi_=O}&ŲQUVWTsh!P_7DRAVfʿbOԹɫt0Y!|'x'óݥ:/ V[,}-B֞/܂;:;;Iޘ[nK4#-='Gf\lb41۩> Os7x f pZzB I g n
Definition: SimmathUserGuide.doc:2262
const MatrixHelperRep< S > & getRep() const
Definition: MatrixHelper.h:333
Specialized information about Composite Numerical Types which allows us to define appropriate templat...
Definition: CompositeNumericalTypes.h:136
Definition: MatrixHelper.h:98
K::TNeg TNeg
Definition: CompositeNumericalTypes.h:139
void setRep(MatrixHelperRep< S > *hrep)
Definition: MatrixHelper.h:335
A MatrixCommitment provides a set of acceptable matrix characteristics.
Definition: MatrixCharacteristics.h:832
Definition: MatrixHelper.h:97
K::Number Number
Definition: CompositeNumericalTypes.h:162
K::THerm THerm
Definition: CompositeNumericalTypes.h:144
Definition: MatrixHelper.h:96